with Vlookup first without changing anything.......
Formula:
=VLOOKUP(I2,IF(I2="YES",CHOOSE({1,2},I2,F2*0.5),CHOOSE({1,2},I2,F2)),2,0)
with Vlookup first without changing anything.......
Formula:
=VLOOKUP(I2,IF(I2="YES",CHOOSE({1,2},I2,F2*0.5),CHOOSE({1,2},I2,F2)),2,0)
If you are satisfied with the solution(s) provided, please mark your thread as Solved.
Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.
I tried to do it just with the included ifs instead, but it didn't work. Is there a way to use the regular formulas along the vlookup? "choose" seems unfamiliar to me.
Also, what do these braces:
{} - mean? It seems that in this case the formula "choose" always returns the first value, which is I2.
If you put: "{2,1} in these braces, then it will return the second value, which is F2*0.5
BTW, does anyone know why vlookup stops working if for table array parameter you set two different columns that have a gap? I thought parentheses solve this issue of including columns that are separated by a gap...
So is that it? No way to add "non-contiguous ranges" to "table array" parameter?
The screenshot, file is attached.
Last edited by dramadeur; 10-15-2014 at 03:15 AM.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks