Index Match Error #REF

SAXON10

Board Regular
Joined
Jun 1, 2017
Messages
109
Hi,

I am apply the following index match formula in G3 but I get a error #ref .

G3=INDEX($D$3:$G$12,MATCH(J$2,$D$2:$G$2,0),MATCH($I3,$B$3:$B$12,0))

I would appreciate if anyone can give me some guidance.


Data range A2:G12 and Desired result range I2:M5

[TABLE="width: 719"]
<colgroup><col><col><col><col span="4"><col><col span="5"></colgroup><tbody>[TR]
[TD="colspan: 7"]DATA[/TD]
[TD][/TD]
[TD="colspan: 5"]DESIRED RESULT[/TD]
[/TR]
[TR]
[TD]TEXT[/TD]
[TD]HERO[/TD]
[TD]TEXT[/TD]
[TD]TEXT1[/TD]
[TD]TEXT2[/TD]
[TD]TEXT3[/TD]
[TD]TEXT4[/TD]
[TD][/TD]
[TD]CODE[/TD]
[TD]TEXT1[/TD]
[TD]TEXT2[/TD]
[TD]TEXT3[/TD]
[TD]TEXT4[/TD]
[/TR]
[TR]
[TD]UK[/TD]
[TD]5848[/TD]
[TD]ORDER[/TD]
[TD]US[/TD]
[TD]US[/TD]
[TD]US[/TD]
[TD]US[/TD]
[TD][/TD]
[TD]68798[/TD]
[TD]US[/TD]
[TD]UK[/TD]
[TD]CHINA[/TD]
[TD]NZ[/TD]
[/TR]
[TR]
[TD]CHINA[/TD]
[TD]6847[/TD]
[TD]ORDER[/TD]
[TD]UK[/TD]
[TD]UK[/TD]
[TD]UK[/TD]
[TD]UK[/TD]
[TD][/TD]
[TD]4587[/TD]
[TD]US[/TD]
[TD]UK[/TD]
[TD]CHINA[/TD]
[TD]NZ[/TD]
[/TR]
[TR]
[TD]NZ[/TD]
[TD]68798[/TD]
[TD]ORDER[/TD]
[TD]CHINA[/TD]
[TD]CHINA[/TD]
[TD]CHINA[/TD]
[TD]CHINA[/TD]
[TD][/TD]
[TD]22235[/TD]
[TD]#ref ![/TD]
[TD]#ref ![/TD]
[TD]#ref ![/TD]
[TD]#ref ![/TD]
[/TR]
[TR]
[TD]AUS[/TD]
[TD]4587[/T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D][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
D3:G12 is 9 rows by 4 columns.

My guess is that MATCH($I3,$B$3:$B$12,0) is returning a value greater than 4.
 
Upvote 0
Hi!

The correct formula is:

=INDEX($D$3:$G$12,MATCH($I3,$B$3:$B$12,0),MATCH(J$2,$D$2:$G$2,0))

Markmzz
 
Upvote 0
You reversed the parameters - it should be INDEX(range,row_num,column_num), not INDEX(range,column_num, row_num)

Try
=INDEX($D$3:$G$12,MATCH($I3,$B$3:$B$12,0),MATCH(J$2,$D$2:$G$2,0))

M.
 
Upvote 0

Forum statistics

Threads
1,223,910
Messages
6,175,320
Members
452,635
Latest member
laura12345

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top