• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 892
  • Last Modified:

Excel Index/Match, Dynamic Column

In attached file, 'rec' tab, the sys1/sys2 lookup formulas are identical, except, they are hardcoded to column g/b respectively.

There has to be a way to locate these columns dynamically, right?
1 Solution
barry houdiniCommented:
You can use another INDEX/MATCH like you used for the sum range but looking to match "This ID", i.e.

=SUMIFS(INDEX(INDIRECT(rec!D$1&"!$A:$EO"),0,MATCH(rec!D$2,INDIRECT(rec!D$1&"!$1:$1"),0)),INDEX(INDIRECT(rec!D$1&"!$A:$EO"),0,MATCH("This ID",INDIRECT(rec!D$1&"!$1:$1"),0)),rec!$A3)

Do the same for "that ID"

regards, barry
newparadigmzAuthor Commented:
YUP, Thanks!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now