# Using multiple match criteria across multiple sheets with indirect

#### Conrider

##### New Member
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

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
* 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
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)``

#### Conrider

##### New Member
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

#### Fluff

##### MrExcel MVP, Moderator
You're welcome & thanks for the feedback.

Replies
3
Views
221
Replies
4
Views
116
Replies
6
Views
474
Replies
1
Views
60
Replies
1
Views
147

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.

### Which adblocker are you using?

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

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