INDEX - correct row/col - returns incorrect value?

Camel123

Board Regular
Joined
Jun 5, 2018
Messages
186
Hi,

Please see formula:
=IFERROR(INDEX('hours'!F5:BF2000;MATCH(P3;'hours'!A:A;0);MATCH(Q2;'hours'!2:2;0));"")

It identifies row 6 & col 6= correct. But it does not return that value. What might be the issue?
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
The fact that your index array starts at row 5 and column 6 whilst your match formulas start at row 1 and column 1. They must be the same for that to work properly.
 
Upvote 0
Like this:

=IFERROR(INDEX('hours'!F5:BF2000;MATCH(P3;'hours'!A5:A2000;0);MATCH(Q2;'hours'!F2:BF2;0));"")
 
Upvote 0
Thank you,

Are there any work arounds on this issue? Can't change where the information appears due to the sheets being standard templates.
 
Upvote 0
It isnt an issue. You have an index array and you provide it, in your case, the row number and the column number. Do not confuse those with the actual row and column number. They are the row and column of the index array. So =INDEX('hours'!F5:BF2000,1,1) will produce whatever is in F5 not whatever is in A1.
 
Upvote 0

Forum statistics

Threads
1,215,510
Messages
6,125,234
Members
449,216
Latest member
biglake87

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