A Second Lookup If The First Fails

MrRosco

New Member
Joined
May 12, 2016
Messages
47
Hey everyone,

My spreadsheet is getting rather large and slowing down some what, mainly due to several VLOOKUP's running which i know takes a lot of processing power,
what i am trying to achieve using INDEX/MATCH is this =IFERROR(VLOOKUP(L:L,dItemLookUp,2,FALSE),VLOOKUP(L:L,dNPDItems,2,FALSE))

as you can see if the first lookup fails to find a match it will then reference another table.

any help on this will be greatly appreciated.

Thanks
Rosco
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
For a start change the range reference L:L and place row numbers in there to speed it up, e.g. L1:L1000, adjust as required dependend on maximum number of rows.
 
Upvote 0
Upvote 0
It shouldn't even be that. The first argument should be a single cell, not a whole range - it is what value you are trying to look up.
https://exceljet.net/excel-functions/excel-vlookup-function

Thanks for your help, after playing around abit i have managed to work it out using Index and Match.
Seems to be working fine.

=IFERROR(INDEX(dProductionPool[Production Pool],MATCH(Pipeline_2018!L:L,dProductionPool[Item Code],0)),(INDEX(dNPDItems[SO99 Production Pool],MATCH(Pipeline_2018!L:L,dNPDItems[Item No.],0))))

Rosco
 
Upvote 0

Forum statistics

Threads
1,223,908
Messages
6,175,306
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