Index Max Formulla #ref

lukestkd

Board Regular
Joined
Jul 30, 2012
Messages
57
Hi,
I have an index match formula returning the value from a range based on a criteria for Row 1 and another criteria for Column A:

Code:
=INDEX($B$2:$AH$5,MATCH($AL1,$B$1:$AH$1),MATCH($AK$1,$A$2:$A$5,0))

However this is returning a #ref ! error.

HOWEVER, if I reduce the number of columns in the match from 33 to 30 then the formula works.

So this works:
Code:
=INDEX($B$2:$AE$5,MATCH($AL1,$B$1:$AE$1),MATCH($AK$1,$A$2:$A$5,0))

Is there a way around this?
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Sure its rows first then columns:

=INDEX($B$2:$AH$5,MATCH($AK$1,$A$2:$A$5,0),MATCH($AL1,$B$1:$AH$1,0))

You had columns then rows.
 
Upvote 0

Forum statistics

Threads
1,216,075
Messages
6,128,665
Members
449,462
Latest member
Chislobog

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