Hi,
Im trying to use the Vlookup function with IF conditions for the array but to no avail:
=VLOOKUP(A198,IF(AND(Dashboard!R2="Revenue",Dashboard!T2="10x10"),$A$42:$N$51,IF(AND(Dashboard!R2="Revenue",Dashboard!T2="5x5"),$A$91:$N$100,IF(AND(Dashboard!R2="Revenue",Dashboard!T2="5x20"),$A$139:$N$148,IF(AND(Dashboard!R2="Units",Dashboard!T2="10x10"),$A$58:$N$67,IF(AND(Dashboard!R2="Units",Dashboard!T2="5x5"),$A$107:$N$116,IF(AND(Dashboard!R2="Units",Dashboard!T2="5x20"),$A$155:$N$164,IF(AND(Dashboard!R2="Price",Dashboard!T2="10x10"),$A$74:$N$83,IF(AND(Dashboard!R2="Price",Dashboard!T2="5x5"),$A$123:$N$132,IF(AND(Dashboard!R2="Price",Dashboard!T2="5x20"),$A$171:$N$180,""))))))))),6,FALSE)
is there a limit on the amount of IF's that can be used. I would also like to use IF's for the Col_index_num can this be done or will i need to use VBA? Should i be putting the Vlookup inside the if statement instead?
Thanks,
SPM
Bookmarks