Share via

#REF Error in Index/Match Formula

Anonymous
2016-04-26T17:02:25+00:00

I am again having a problem with am Index/Match formula. I have 2 tables. The first table is the one I am matching to and the 2nd table is where I am matching from. The formula I typed in cell E1 was the following:

Index(d100:d105,Match(b1,b100:b105,0),MATCH(c1,c100:c105,0),MATCH(D1,d100:G100,0))

I get a #REF error. Can someone please provide me with a fix? I very much appreciate your help.

Row
A B Cancer D E
Column State City Disease Period Rate
1 CA San Francisco Diabetes 1
2 CA Tiburon Cancer 1
3 CA Novato Depression 1
4 OR Portland Diabetes 1
OR Eugene Cancer 1
OR Coos Bay Depression 1
CA San Francisco Diabetes 2
CA Tiburon Cancer 2
CA Novato Depression 2
OR Portland Diabetes 2
OR Eugene Cancer 2
OR Coos Bay Depression 2
A B Cancer D E F G
Column State City Disease 1 2 3 4
100 CA San Francisco Diabetes $500 $540 $583 $630
101 CA Tiburon Cancer $550 $594 $642 $693
102 CA Novato Depression $600 $648 $700 $756
103 OR Portland Diabetes $400 $432 $467 $504
104 OR Eugene Cancer $450 $486 $525 $567
105 OR Coos Bay Depression $475 $513 $554 $598
Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

HansV 462.6K Reputation points
2016-04-26T20:20:39+00:00

As far as I can tell, it should be

=INDEX('Enter PHS Rates'!$D$3:$M$189,MATCH(C20&$A20,'Enter PHS Rates'!$C$3:$C$189&'Enter PHS Rates'!$A$3:$A$189&,0),MATCH($G20,'Enter PHS Rates'!$D$2:$M$2,0))

confirmed with Ctrl+Shift+Enter.

Was this answer helpful?

0 comments No comments

8 additional answers

Sort by: Most helpful
  1. Anonymous
    2016-04-26T19:31:12+00:00

    Below is my exact formula on my data set:

    =INDEX('Enter PHS Rates'!$D$3:$M$189,MATCH(C20,'Enter PHS Rates'!$C$3:$C$189,0),MATCH($A20,'Enter PHS Rates'!$A$3:$A$189,0),MATCH($G20,'Enter PHS Rates'!$D$2:$M$2,0))

    Does anything stand out to you of why I get that #REF error? Is there a formula that would work?

    Was this answer helpful?

    0 comments No comments
  2. HansV 462.6K Reputation points
    2016-04-26T19:23:40+00:00

    I assumed that D99:G99 contain the numbers 1 to 4. It works for me:

    See sample workbook https://www.dropbox.com/s/tx1t7ux1p3cptcn/IndexMatch.xlsx?dl=1

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2016-04-26T18:52:52+00:00

    That did not work. When I hit Ctrl+Shift+Enter, the resulting value is zero. Suggestions?

    Was this answer helpful?

    0 comments No comments
  4. HansV 462.6K Reputation points
    2016-04-26T18:36:23+00:00

    In E2 as an Array Formula, confirmed with Ctrl+Shift+Enter:

    =INDEX($D$100:$G$105,MATCH(A2&B2&C2,$A$100:$A$105&$B$100:$B$105&$C$100:$C$105,0),MATCH(D2,$D$99:$G$99,0))

    This can be filled down.

    Was this answer helpful?

    0 comments No comments