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.
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
* 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)
 
Upvote 0
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)
 
Upvote 0
Solution
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)
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,580
Messages
6,125,654
Members
449,245
Latest member
PatrickL

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