Index match on multiple sheets

CV12

Board Regular
Joined
Apr 6, 2020
Messages
82
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hello,

I have got a formula where I search a value on one sheet. However, I would like to search on multiple sheets.

My formula is:

Excel Formula:
=INDEX(INDIRECT($H$8&"!D:D");MATCH(F38;(INDIRECT($H$8&"!G:G"));0))

In this formula, I am searching on the sheet name that is packed in the indirect
Excel Formula:
$H$8&"!
(2 times).

To $H$8&"!, I would like to add cell H9. How can I do this? I cannot find a solution by simply adding that cell to my formula. The columns D and G stay the same.

Any suggestions?

Thanks in advance
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
I presume that you mean if the lookup value is not found in the first sheet then you want to look in the second sheet?
If that is so, try this (after changing the formula separators from my commas to your semicolons :))

Excel Formula:
=IFNA(INDEX(INDIRECT($H$8&"!D:D"),MATCH(F38,(INDIRECT($H$8&"!G:G")),0)),INDEX(INDIRECT($H$9&"!D:D"),MATCH(F38,(INDIRECT($H$9&"!G:G")),0)))
 
Upvote 0

Forum statistics

Threads
1,216,373
Messages
6,130,239
Members
449,568
Latest member
mwl_y

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