各位大大:
請問我有一個程式
A式
K1=COUNTIF(A1:C1,INDIRECT(ADDRESS(ROW(A1),$A$12)))+COUNTIF(A1:C1,INDIRECT(ADDRESS(ROW(A1),$B$12)))+COUNTIF(A1:C1,INDIRECT(ADDRESS(ROW(A1),$C$12))),K1=1.
OR
B式
K1=COUNTIF(A1:C1,INDEX($E$1:$J$10,ROW(A1),$A$12-4))+COUNTIF(A1:C1,INDEX($E$1:$J$10,ROW(A1),$B$12-4))+COUNTIF(A1:C1,INDEX($E$1:$J$10,ROW(A1),$C$12-4))
我使用陣列將A式它改成K1=SUM(COUNTIF(A1:C1,INDIRECT(ADDRESS(ROW(A1),$A$12:$C$12)))),K1=0,經評估值公式顯示為如下:
=SUM(COUNTIF($A$1:$C$1,{#VALUE!,#VALUE!,#VALUE!})),請問陣列哪裡出錯,如何修正才能與原式結果相同,或是B式要如何改成陣列公式,謝謝!
K1輸入
=COUNTIF(A1:C1,INDEX($E$1:$J$10,ROW(A1),($A$12:$C$12)-4))
再按CTRL+SHIFT+ENTER鍵
再將公式複製到K2:K10