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

DATADESIRED RESULT
TEXTHEROTEXTTEXT1TEXT2TEXT3TEXT4CODETEXT1TEXT2TEXT3TEXT4
UK5848ORDERUSUSUSUS68798USUKCHINANZ
CHINA6847ORDERUKUKUKUK4587USUKCHINANZ
NZ68798ORDERCHINACHINACHINACHINA22235#ref !#ref !#ref !#ref !
AUS4587ORDERNZNZNZNZ
EUR1112ORDERAUSAUSAUSAUS
RUS22235ORDEREUREUREUREUR
ERA456ORDERRUSRUSRUSRUS
NIPA487REJERAERAERAERA
BAN587PENDINGNIPANIPANIPANIPA
NA657ORDERBANBANBANBAN

<colgroup><col><col><col><col span="4"><col><col span="5"></colgroup><tbody>
</tbody>

 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
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,214,918
Messages
6,122,257
Members
449,075
Latest member
staticfluids

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