Excel: Index/ match across multiple tabs using headings from a row to search tab

Chris 20 Reputation points
2025-11-27T22:17:53.05+00:00

I am using the index/ match function to pickup data from different tabs to draw the data into a summary tab, however I have a data set with lots of tabs and would like to automatically search the tab based on the heading in the summary tab. So looking at the below example data set, instead of manually typing the tab name in each column (eg, “Data1”, “Data2”, etc), I would like it to look up the tab name in row 1 so I can drag the formula across.

User's image

Microsoft 365 and Office | Excel | Other | Windows
0 comments No comments
{count} votes

Answer accepted by question author
  1. Ashish Mathur 100.8K Reputation points Volunteer Moderator
    2025-11-27T23:18:17.3966667+00:00

    Hi,

    In cell B3, enter this formula and drag to the right.

    =index(indirect("'"&B$1&"'!B:B),match($A3,indirect("'"&B$1&"'!A:A),0))

    Hope this helps.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.