INDEX, MATCH, MATCH returning wrong value

richlud

New Member
Joined
Oct 6, 2017
Messages
2
I am using the following formula to return values from a different worksheet but its pulling in the value 2 rows down and 2 columns across from what it should be returning.

=IFERROR(INDEX('Numbers input'!$C$3:$Q$300,MATCH($B7,'Numbers input'!$B:$B,0),MATCH(D$5,'Numbers input'!$3:$3,0)),0)

Probably something really simple, but can't work it out! Can anybody help?
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Hi. Your match formula needs to be looking in the same rows/columns as your index range so something like:

=IFERROR(INDEX('Numbers input'!$C$3:$Q$300,MATCH($B7,'Numbers input'!$B$3:$B$300,0),MATCH(D$5,'Numbers input'!$C$3:$Q$3,0)),0)

Note the first match starts at row 3 and the 2nd match starts at column C.
 
Upvote 0
because your index start on C3, i.e. always 2 behind the match().

simple fix

=IFERROR(INDEX('Numbers input'!$C$3:$Q$300,MATCH($B7,'Numbers input'!$B:$B,0)+2,MATCH(D$5,'Numbers input'!$3:$3,0)+2),0)
 
Upvote 0

Forum statistics

Threads
1,216,074
Messages
6,128,652
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