Rreplace SUMIFS with INDEX/MATCH

STEVEMILLS04

Board Regular
Joined
Oct 8, 2009
Messages
113
I have read here: https://professor-excel.com/performance-excel-study/ that INDEX/MATCH or VLOOKUPS can be up to 50% faster than SUMIFS but for some reason I am having a hard time replacing a SUMIF formula with either Index/Match or Vlookup. Has anyone done this in the past?

Code:
=SUMIFS(D2:D8,B2:B8,"West",C2:C8,"<="&40)

NameRegionAgeDollars
KyleWest21100
TonyEast2198
LyleEast3654
SeanWest4614
JohnWest4713
KevinCentral5498
StephenCentral58250

<tbody>
</tbody>
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Hi, have you read the article on that site about the difference between VLOOKUP, SUMIF(S), and INDEX/MATCH ?

They are not completely interchangeable.

There are some situations where, for example, VLOOKUP and INDEX/MATCH can deliver identical results, and same for VLOOKUP and SUMIFS etc.
But these functions also have key differences which make them each useful in different situations.

In the specific example you have given, they will all provide the same results but that is because there is only one data item for WEST where AGE is less than 40.
But if you had more than one entry where AGE is less than 40, then SUMIFS would definitely be the way to go.

EDIT to add . . . actually, I don't think VLOOKUP is applicable to this situation at all, at least not easily.
And INDEX/MATCH again is applicable only with some difficulty.
 
Last edited:
Upvote 0
One way


Excel 2013/2016
ABCDE
1NameRegionAgeDollars
2KyleWest21100100
3TonyEast2198
4LyleEast3654
5SeanWest4614
6JohnWest4713
7KevinCentral5498
8StephenCentral58250
Sheet1
Cell Formulas
RangeFormula
E2{=INDEX(D2:D8,MATCH(1,(B2:B8="West")*(C2:C8<40),0))}
Press CTRL+SHIFT+ENTER to enter array formulas.


But if you have a lot of data I'd tend to stick with the sumif
 
Last edited:
Upvote 0
That makes sense and is what I thought. I guess I don't understand why they would compare the three when they are in fact not completely interchangeable. Thanks!
 
Upvote 0

Forum statistics

Threads
1,214,606
Messages
6,120,487
Members
448,967
Latest member
visheshkotha

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