normally you wouldnt need to use choose in the manner i showed in my previous post but you insisted vlookup be in the equation and be first
that whole if loop is just to facilitate that
i redid the formula without CHOOSE but IF instead
Formula:
=VLOOKUP(I2,IF(I2="YES",IF({1,0},I2,F2*0.5),IF({1,0},I2,F2)),2,0)
alternatively you can just manually type in the array
Formula:
=VLOOKUP(I2,{"YES",0.5;"NO",1},2,0)*F2
Re:
So is that it? No way to add "non-contiguous ranges" to "table array" parameter
Formula:
=VLOOKUP("yes",IF({1,0},W2:W3,T2:T3),2,0)
yes you can ....you can even do it right to left but not in the manner you want in your example
oh the {}
http://office.microsoft.com/en-au/ex...001087291.aspx
Bookmarks