我想要設定將
VLOOKUP(A2,'Sheet2'!$A:$C,2,FALSE)
VLOOKUP(B2,'Sheet2'!$A:$C,2,FALSE)
VLOOKUP(C2,'Sheet2'!$A:$C,2,FALSE)
設定成同一個公式
也就是說A2 VLOOKUP不到時就改B2 VLOOKUP,B2又VLOOKUP不到時就改C2,這三欄都比對不到就為#N/A或FALSE,
請問這樣的公式要如何設定?
=if(isna(VLOOKUP(A2,'Sheet2'!$A:$C,2,FALSE)),繼續找B2,VLOOKUP(A2,'Sheet2'!$A:$C,2,FALSE))
IF(ISNA(VLOOKUP(A2,Sheet2!$A:$C,2,FALSE)), IF(ISNA(VLOOKUP(B2,Sheet2!$A:$C,2,FALSE)),VLOOKUP(C2,Sheet2!$A:$C,2,FALSE),VLOOKUP(B2,Sheet2!$A:$C,2,FALSE)),VLOOKUP(A2,Sheet2!$A:$C,2,FALSE))