Index plus match with multiple tabs

mgeiss

New Member
Joined
Sep 12, 2014
Messages
14
Hi there,

Below is a formula I’m working on. I want, if possible, for excel to look in tabs "acctg" through "RM finish Bundling" for the text that i have in '2015 Consolidated!A96'. The formula works if i only use one tab, but if I could have it look through all those tabs, it would help me significantly. Can i do that with an index/match formula? What am I doing wrong? Any help is appreciated.</SPAN>

=IF(IFNA(MATCH(A96,'Labor & Depr.'!B:B,0),0),INDEX('Labor & Depr.'!X:X,MATCH('2015 Consolidated'!A96,'Labor & Depr.'!B:B,0)),INDEX('Acctg:RM Finish Bundling'!X:X,MATCH('2015 Consolidated'!A96,'Acctg:RM Finish Bundling'!B:B)))
 

BiocideJ

Well-known Member
Joined
Jan 23, 2012
Messages
1,733
To my knowledge, Index/Match formulas are NOT compatible with 3D (multisheet) ranges like you are trying to use.

So long as there are just those three tabs, I believe this substitute formula will do what you are looking for by searching in each tab successively.

=IF(ISNA(MATCH('2015 Consolidated'!A96,'Labor & Depr.'!B:B,0)),IF(ISNA(MATCH('2015 Consolidated'!A96,acctg!B:B,0)),IF(ISNA(MATCH('2015 Consolidated'!A96,'RM Finish Bundling'!B:B,0)),"NOT FOUND",INDEX('RM Finish Bundling'!X:X,MATCH('2015 Consolidated'!A96,'RM Finish Bundling'!B:B,0))),INDEX(acctg!X:X,MATCH('2015 Consolidated'!A96,acctg!B:B,0))),INDEX('Labor & Depr.'!X:X,MATCH('2015 Consolidated'!A96,'Labor & Depr.'!B:B,0)))
 

mgeiss

New Member
Joined
Sep 12, 2014
Messages
14
Darn. thanks for letting me know. There are actually 40+/- tabs. do you know of a formula that would search that many tabs?
 

BiocideJ

Well-known Member
Joined
Jan 23, 2012
Messages
1,733
Nothing directly.
A work-around could be to create a vlookup on each tab in a cell somewhere outside of the used range (e.g. Z1) that returns the value in col X (if it exists) and "" if not
i.e. =IFERROR(INDEX(X:X,MATCH('2015 Consolidated'!A96,B:B,0)),"")
And then where you were doing the original 3D Vlookup something that concatenates all of those cell values.

i.e. =Sheet1!Z1&Sheet2!Z1&...&Sheet40!Z1

not a very elegant solution but it might be the easiest way to do what you require.
 

Forum statistics

Threads
1,082,295
Messages
5,364,359
Members
400,792
Latest member
Dxmiian

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top