Index match a cell to mutiple spreadsheets

lwhyatt

New Member
Joined
May 26, 2010
Messages
33
I am using the formula:

=INDEX('[NP8 Nov 2015.xls]EHC NDT Phase 2'!$E:$E,MATCH(B2,'[NP8 Nov 2015.xls]EHC NDT Phase 2'!$D:$D,0))

to find the occurrence of B2 in the worksheet of another spreadsheet '[NP8 Nov 2015.xls]EHC NDT Phase 2'. This works fine.

However if it doesn't find it there, I'd like the formula to go looking in '[NP8 Nov 2015.xls]EHC NDT Phase 1' then, if it still can't find it, look in '[NP8 Nov 2015.xls]EP NDT' My question is, how do I join these INDEX MATCH searches together into one formula?
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
How about something like:

=IFERROR(formula1,IFERROR(formula2,IFERROR(formula3,"")))

so:

=IFERROR(INDEX('[NP8 Nov 2015.xls]EHC NDT Phase 2'!$E:$E,MATCH(B2,'[NP8 Nov 2015.xls]EHC NDT Phase 2'!$D:$D,0)),IFERROR(INDEX('[NP8 Nov 2015.xls]EHC NDT Phase 1'!$E:$E,MATCH(B2,'[NP8 Nov 2015.xls]EHC NDT Phase 1'!$D:$D,0)),IFERROR(INDEX('[NP8 Nov 2015.xls]EP NDT'!$E:$E,MATCH(B2,'[NP8 Nov 2015.xls]EP NDT'!$D:$D,0)),"")))
 
Upvote 0
Great that works perfectly, I have even managed to nest in another formula! Presumably I can keep going on like that ad infinitum?
 
Upvote 0
You're welcome. I think the limit on nested formulas is 64.
 
Upvote 0

Forum statistics

Threads
1,216,110
Messages
6,128,892
Members
449,477
Latest member
panjongshing

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