Multiple IFs=Vlookups. Is there a shorter way of doing it?

zx6roo

New Member
Joined
Feb 17, 2006
Messages
15
I have the below formulae on a tab called Tracking Sheet. It current has 3 levels but I need to push it out to 15 levels as I have separate choices.


=IF(H1="Unit 11",VLOOKUP(A1,Unit11,1,FALSE),IF(H1="Unit 13",VLOOKUP(A1,Unit13,1,FALSE),IF(H1="Unit 14",VLOOKUP(A1,Unit14,1,FALSE),"No")))


H1 equals text from a drop down saying unit 11, Unit 12, Unit 13, etc.
A1 equals a concatenated field from other columns on tab Tracking Sheet.
Unit11, Unit12, Unit13 are name ranges on their respective tab.

Instead of building it out this way for all 15 levels is there a shorter way of doing it with INDEX MATCH or something else? Basically what I am doing is looking at a field on one tab and showing is it exists on any of the other tabs or not.
 
maybe?

=iferror(vlookup(a1,indirect(Substitute(H1,"Unit ","Unit")&"!q:q"),1,0),"")
 
Upvote 0

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Wait I have it !
=IFERROR(VLOOKUP(A1,INDIRECT(TRIM(SUBSTITUTE(H14,CHAR(32),""))),1,0),"No")

You guys are legends ! Thank you :)
 
Upvote 0

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,633
Latest member
DougMo

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top