Forum Discussion

Daveway69's avatar
Daveway69
Copper Contributor
Jun 05, 2023

Combining INDEX MATCH Formulas

I have a cell with a dropdown list. I am trying to INDEX MATCH from 2 tables depending on what I select from the dropdown list.  Tables are called MAIN_EQUIPMENT and INSTRUMENT_ FIELD.  They are located on 'System & FL Codes' tab.  

 

The independent formulas below work, but is there a way to join them together? 

 

MAIN_EQUIPMENT index match formula

=(INDEX('System & FL Codes'!B3:B112,MATCH(Sheet4!E4,MAIN_EQUIPMENT,0)))

 

INSTRUMENT_ FIELD index match formula

=(INDEX('System & FL Codes'!F6:F466,MATCH(Sheet4!E4,INSTRUMENT_FIELD,0)))

19 Replies

  • Daveway69's avatar
    Daveway69
    Copper Contributor
    This worked, but is a bit long and messy.
    =IFERROR(IF(D3="MAIN_EQUIPMENT",INDEX('System & FL Codes'!$B$3:$B$112,MATCH(H3,MAIN_EQUIPMENT,0)),INDEX('System & FL Codes'!$F$6:$F$466,MATCH(H3,INSTRUMENT_FIELD,0))),"")
    • Daveway69's avatar
      Daveway69
      Copper Contributor

      Sheet4!E4 has the dropdown list. Selections from it are MAIN_EQUIPMENT and INSTRUMENT_ FIELD. I named the tables the same.

       

      The tables are System & FL Codes'!B3:B112 and System & FL Codes'!F6:F466

      • HansVogelaar's avatar
        HansVogelaar
        MVP

        Daveway69 

        I don't understand - you also use Sheet4!E4 as the value to look up in the MATCH part of the formulas.

        Can you try to explain in more detail and more clearly what you want to do?

         

        Also: the ranges used in INDEX and MATCH should have the same size.