From PM:
NBVC,
You kindly resolved a problem I had yesterday through a post entitled 'Advanced VLOOKUP'. Since implementing your solution it got me wondering about whether or not the formula could be adapted to accomodate nested IF statements.
If you remember you showed me how INDEX could be used with MATCH to reference a cells value. You may also recall this was based on an item number and a quantity. The quantities were laid out 25,50,100,250,500,1000 and 5000.
How would i get the formula to say if the quantity is 25 or less use column B if quantity is 50 or less use column C etc. as the column of reference?
Kind regards
Perhaps:
I deleted the last 0 in the 2nd Match() function... This makes the Match find the largest value in an ascending order list that is Less than or equal to the lookup value and uses that to get your table result.
Bookmarks