Forum Discussion
Index match with multiple sheets
It very depends on how your data is structured, could you provide small sample file to illustrate?
I attached here is example of what I am trying to do.Basically I want to pull the data to my master so that I can create a dynamic chart.
- SergeiBaklanJan 14, 2021Diamond Contributor
I'd transform other sheets data to tables (DamA, DamB, etc), it'll be more flexible. With that
Years: =TRANSPOSE(INDIRECT($F$3 & "[Year]")) Data: =TRANSPOSE(INDIRECT($F$3 & "[" & $B7 & "]" ))
like
- LiphorJan 15, 2021Brass Contributor
I am a little confused as I did not see you reference any of the data sheets. I also attached another example for you to look at. Can this be done by index match?
- SergeiBaklanJan 15, 2021Diamond Contributor
In addition to JMB17 post - if for some reasons you don't want to use Tables (which is highly recommended) at least clean the structure of your sheets. Start in each range in the same cell of the sheet, e.g. in C4, not in any random place. Not critical, but desirably to have same column names, e.g. Jun for the month in all places, not Jun or June. With that and assuming you have no other data down fro each range, formula in C7 of master sheet could be
=IFNA( INDEX( INDIRECT("'" & $H$3 & "'!$D$5"): INDEX( INDIRECT("'" & $H$3 & "'!$D$5:$O$200"), COUNTA( INDIRECT("'" & $H$3 & "'!$C$5:$C$200")),12), MATCH($B7,INDIRECT("'" & $H$3 & "'!$C$5"): INDEX(INDIRECT("'" & $H$3 & "'!$C$5:$C$200"), COUNTA(INDIRECT("'" & $H$3 & "'!$C$5:$C$200"))),0), COLUMN()-COLUMN($B$5) ), "-")
and drag it to the right.
One more comment - please mention on which version of Excel you are (365, 2016, Online, etc).
- LiphorJan 15, 2021Brass Contributor
Since my knowledge of excel is quite limited, Can I say that there is no need for index match in this case as all you need is to indirectly transpose the results.