The other alternative for SUMIF formula

hudan

New Member
Joined
Jun 6, 2019
Messages
7
the disadvantage of sumif is that if we use a different source file, then when we close the current file, the results of our formula will change to #value .
Do you know what the other alternatives besides sumif
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
the disadvantage of sumif is that if we use a different source file, then when we close the current file, the results of our formula will change to #value .
Do you know what the other alternatives besides sumif

Use SUMPRODUCT(--(A:A="Criteria"), SumRange)
ranges must be the same size

you can set whatever criteria you want so instead of A:A="Criteria" you could maybe want, if it's for customer john in column B
B:B="John" or if column c is >100, C:C>100, etc

and for your sum range you can just grab the same as the sum range for a sum if
 
Last edited:
Upvote 0
Use SUMPRODUCT(--(A:A="Criteria"), SumRange)
ranges must be the same size

you can set whatever criteria you want so instead of A:A="Criteria" you could maybe want, if it's for customer john in column B
B:B="John" or if column c is >100, C:C>100, etc

and for your sum range you can just grab the same as the sum range for a sum if

you can also have multiple criteria for instance we want to sum if when column A = "John" and Column B = "June" and we want to sum the number in column C

AND Criteria, both conditions need to be true
SUMPRODUCT((A:A = "John")*(B:B = "June"), (C:C)) or SUMPRODUCT(--(A:A = "John"),--(B:B = "June"), (C:C))

either condition is true
SUMPRODUCT((A:A = "John")+(A:A = "James"), (C:C))
 
Last edited:
Upvote 0
but Sumproduct formula will cause the computer to work slow if it works with many rows.
 
Upvote 0
Sorry friend I'm not sure of another formula that will work with a closed source file, someone else on here might know though
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,910
Messages
6,175,318
Members
452,634
Latest member
cpostell

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