Forum Discussion

Pravcha19's avatar
Pravcha19
Copper Contributor
Mar 09, 2025
Solved

Index & Match formula not working on multiple column

https://onedrive.live.com/personal/8419718c3ad8f98c/_layouts/15/Doc.aspx?resid=8419718C3AD8F98C!s94600d3fa0044d418fefd1508e44c0e2&cid=8419718C3AD8F98C&migratedtospo=true&app=Excel

Hi Folks,

I'm facing error on the match formula, which I tried to apply, I'm getting #N/A error... I tried few trouble shoots to make it work (adding helper column, broke the formula with "&" to make it work, checking for any additional characters & checking the format etc) but it is not working.

I have used Match formula earlier, but never had this issue.  I want a single  formula to MATCH & verify multiple column to return the desired output, I can do single column verification & again to do the next column verification and get the result but it is tedious and not time saving. Kindly help me to learn how to make a formula work to one validation of multiple column.

Kindly attaching the sheet above for reference. Highlighted the error in yellow hue(Sheet name - result).

 

m_tarler  & HansVogelaar  - Please help, Thanks in advance

  • You might use

    =IFERROR(IFERROR(INDEX('RAW - reference '!$A$2:$A$72,MATCH(A2,'RAW - reference '!$B$2:$B$72,0)), INDEX('RAW - reference '!$A$2:$A$72,MATCH(A2,'RAW - reference '!$D$2:$D$72,0))),"")

    If you have a recent version of Excel, you can also use

    =XLOOKUP(A2,'RAW - reference '!$B$2:$B$72,'RAW - reference '!$A$2:$A$72,XLOOKUP(A2,'RAW - reference '!$D$2:$D$72,'RAW - reference '!$A$2:$A$72,""))

7 Replies

    • Pravcha19's avatar
      Pravcha19
      Copper Contributor

      Thanks, but it is not desired outcome, even in the attached the result is not intact

      • HansVogelaar's avatar
        HansVogelaar
        MVP

        You might use

        =IFERROR(IFERROR(INDEX('RAW - reference '!$A$2:$A$72,MATCH(A2,'RAW - reference '!$B$2:$B$72,0)), INDEX('RAW - reference '!$A$2:$A$72,MATCH(A2,'RAW - reference '!$D$2:$D$72,0))),"")

        If you have a recent version of Excel, you can also use

        =XLOOKUP(A2,'RAW - reference '!$B$2:$B$72,'RAW - reference '!$A$2:$A$72,XLOOKUP(A2,'RAW - reference '!$D$2:$D$72,'RAW - reference '!$A$2:$A$72,""))

Resources