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

Camel123

Board Regular
Joined
Jun 5, 2018
Messages
185
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

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).

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
56,416
Office Version
  1. 365
Platform
  1. Windows
At a guess, because you have a space after the sheet name in the final match
 

JoeMo

MrExcel MVP
Joined
May 26, 2009
Messages
17,417
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
The "chosen array" appears to be:

'190708'!H2:H3333

containing only one column. Should that be '190708'!A2:H3333 ??
 

Marcelo Branco

MrExcel MVP
Joined
Aug 23, 2010
Messages
16,510
Office Version
  1. 2019
  2. 2010
Platform
  1. Windows
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.
 

Camel123

Board Regular
Joined
Jun 5, 2018
Messages
185
I added all columns to the aray rather than just one and it solved the issue, thanks to everyone. (Y)
 

Watch MrExcel Video

Forum statistics

Threads
1,129,310
Messages
5,635,468
Members
416,859
Latest member
GowthamiSita

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
Top