INDEX+MATCH: finds row+col but returns #ref (?)

Camel123

Board Regular
Joined
Jun 5, 2018
Messages
186
Hi,

{=INDEX('190708'!H2:H3333;MATCH(1;('190708'!A2:A3333=Sheet1!A3)*('190708'!B2:B3333=Sheet1!B3);0);MATCH(Sheet1!H2;'190708'!2:2;0))}

In this case, row 2 and column 8 in the chosen array, the value in that cell is 9 but excel returns #REF . What is wrong?
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
At a guess, because you have a space after the sheet name in the final match
 
Upvote 0
The "chosen array" appears to be:

'190708'!H2:H3333

containing only one column. Should that be '190708'!A2:H3333 ??
 
Upvote 0
The INDEX function refers to the eighth column (H2:H3333), so the last MATCH is not necessary.
See if this works
=INDEX('190708'!H2:H3333;MATCH(1;('190708'!A2:A3333=Sheet1!A3)*('190708'!B2:B3333=Sheet1!B3);0))
Ctrl+Shift+Enter

M.
 
Upvote 0
I added all columns to the aray rather than just one and it solved the issue, thanks to everyone. (Y)
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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