Adding Criteria to Index Match

jharvey87

New Member
Joined
Nov 11, 2015
Messages
29
Office Version
  1. 2016
Platform
  1. Windows
Can anyone point out what I'm doing wrong.

This formula works fine:
=INDEX('Revenue Spread'!$F$8:$BP$10000,MATCH($D670,'Revenue Spread'!$H$8:$H$10000,0),MATCH(TEXT(BC$4,"Mmm-YYYY"),'Revenue Spread'!$F$7:$BP$7,0))


However, when I tried to add a third set of criteria, it does not work.

=INDEX('Revenue Spread'!$K$8:$BP$10000,MATCH($D670,'Revenue Spread'!$H$8:$H$10000,0),MATCH($F670,'Revenue Spread'!$J$8:$J$10000,0),MATCH(TEXT(BC$4,"Mmm-YYYY"),'Revenue Spread'!$K$7:$BP$7,0))
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
syntax of the command INDEX(array, row_num, [column_num])

=INDEX('Revenue Spread'!$K$8:$BP$10000 -- array
,MATCH($D670,'Revenue Spread'!$H$8:$H$10000,0) -- row
,MATCH($F670,'Revenue Spread'!$J$8:$J$10000,0) - col
,MATCH(TEXT(BC$4,"Mmm-YYYY"),'Revenue Spread'!$K$7:$BP$7,0)
)
Normally, the index takes 3 arguments, you are giving 4.
Is that intentional or by mistake or you have a special need
 
Upvote 0
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

How about
Excel Formula:
=INDEX('Revenue Spread'!$K$8:$BP$10000,MATCH($D670&"|"&$F670,'Revenue Spread'!$H$8:$H$10000&"|"&'Revenue Spread'!$J$8:$J$10000,0),MATCH(TEXT(BC$4,"Mmm-YYYY"),'Revenue Spread'!$K$7:$BP$7,0))
May need array entry depending on you version.
 
Upvote 0
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

How about
Excel Formula:
=INDEX('Revenue Spread'!$K$8:$BP$10000,MATCH($D670&"|"&$F670,'Revenue Spread'!$H$8:$H$10000&"|"&'Revenue Spread'!$J$8:$J$10000,0),MATCH(TEXT(BC$4,"Mmm-YYYY"),'Revenue Spread'!$K$7:$BP$7,0))
May need array entry depending on you version.
That worked. thank you. I will update my information as suggested as well.
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,943
Messages
6,122,380
Members
449,080
Latest member
Armadillos

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