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

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

jsb1921

Board Regular
Joined
Aug 14, 2020
Messages
70
Office Version
  1. 2007
Platform
  1. Windows
  2. Web
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
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
56,406
Office Version
  1. 365
Platform
  1. Windows
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.
 

jharvey87

New Member
Joined
Nov 11, 2015
Messages
29
Office Version
  1. 2016
Platform
  1. Windows
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.
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
56,406
Office Version
  1. 365
Platform
  1. Windows
Glad we could help & thanks for the feedback.
 

Watch MrExcel Video

Forum statistics

Threads
1,129,259
Messages
5,635,126
Members
416,842
Latest member
Ateen4ever

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