Using multiple match criteria across multiple sheets with indirect

Conrider

New Member
Joined
Feb 7, 2021
Messages
3
Office Version
  1. 2019
Platform
  1. Windows
I wonder if someone can help me. I've been stuck on this for a while. I have identical multiple sheets in the same book. I am creating a sheet where I can pull data from the various sheets depending on the value in a certain cell which will reference the sheet title I want to get the data from. When the sheet has been identified I then want it to match certain criteria to get to a certain value. I've been trying to use indirect, index, multiple match but can't seem to do it. Here is my code.... =INDEX(INDIRECT("'"&B11&"'!$N$39:$AY$62"),MATCH(1,(INDIRECT(D11,"B11"!$E$N$39:$N$62)*(INDIRECT(B11&"'!$O$39:$O$62"=E11)*(INDIRECT("'"&B11&"'!$Q$39:$Q$62"=H11),0)))),26)

B11 is the cell in my main sheet that will change depending what sheet I need to get the values from. I then need to match certain criteria ( d11, e11, h11,) with ranges in that specified sheet.
 

Some videos you may like

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.

Conrider

New Member
Joined
Feb 7, 2021
Messages
3
Office Version
  1. 2019
Platform
  1. Windows
* The line of code is actually =INDEX(INDIRECT("'"&B11&"'!$N$39:$AY$62"),MATCH(1,(INDIRECT("B11"!$E$N$39:$N$62=D11)*(INDIRECT(B11&"'!$O$39:$O$62"=E11)*(INDIRECT("'"&B11&"'!$Q$39:$Q$62"=H11),0)))),26)
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
55,805
Office Version
  1. 365
Platform
  1. Windows
Hi & welcome to MrExcel.
Try
Excel Formula:
=INDEX(INDIRECT("'"&B11&"'!$N$39:$AY$62"),MATCH(1,(INDIRECT("'"&B11&"'!$N$39:$N$62")=D11)*(INDIRECT("'"&B11&"'!$O$39:$O$62")=E11)*(INDIRECT("'"&B11&"'!$Q$39:$Q$62")=H11),0),26)
 
Solution

Conrider

New Member
Joined
Feb 7, 2021
Messages
3
Office Version
  1. 2019
Platform
  1. Windows
Hi & welcome to MrExcel.
Try
Excel Formula:
=INDEX(INDIRECT("'"&B11&"'!$N$39:$AY$62"),MATCH(1,(INDIRECT("'"&B11&"'!$N$39:$N$62")=D11)*(INDIRECT("'"&B11&"'!$O$39:$O$62")=E11)*(INDIRECT("'"&B11&"'!$Q$39:$Q$62")=H11),0),26)
Thank you so much. Worked first time. What a brilliant resource. Have a great day:)(y)
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
55,805
Office Version
  1. 365
Platform
  1. Windows
You're welcome & thanks for the feedback.
 

Watch MrExcel Video

Forum statistics

Threads
1,128,165
Messages
5,629,068
Members
416,363
Latest member
zaveedd

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
Top