Sreamline Sum If formula

howard

Well-known Member
Joined
Jun 26, 2006
Messages
6,568
Office Version
  1. 2021
Platform
  1. Windows
I have descriptions in Col B and values in Col C


I have the following SumIF formula to extract the various values based on the descriptions that I which to extract their values

The formula gives me the correct result, but slow down my Laptop

I would like to know if this formula can be simplified

Your assistance in this regard is most appreciated

Code:
 =SUM(SUMIFS(C:C,B:B,({"*lab Ret*","*lab Trade*","*S/Let Ret*","*s/let Trade*","*access?SVC*","*breakdown?*svc*","*oils Ret*","*Oils War*","*Con?*ret*","*Sale?*F&I*","*Sale*RO*RET*Br1*PARTS*","*Sale*RO*FLT*Br1*PARTS*","*Sale*RO*RET*BZ1*PARTS*","*Sale*RO*FLT*BZ1*PARTS*","*Sale*RO*RET*Non*PARTS*","*Sale*RO*FLT*Non*PARTS*","*Sale*RO*RET*access*PARTS*","*Sale*RO*FLT*access*","*DISC*RO*Ret*Br1*PARTs*","*DISC*RO*FLT*Br1*PARTs*","*DISC*RO*Ret*BZ1*PARTs*","*DISC*RO*FLT*BZ1*PARTs*","*DISC*RO*Ret*Non-Fr*PARTs*","*DISC*RO*FLT*Non-fr*PARTs*","*Sale*RO*RET*Oils*","*Sale*RO*FLT*Oils*","*Disc*RO*RET*Oils*","*Disc*RO*FLT*Oils*"})))
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Why do you need the first SUM function?
Also try using shorter ranges.
 
Upvote 0
I have descriptions in Col B and values in Col C


I have the following SumIF formula to extract the various values based on the descriptions that I which to extract their values

The formula gives me the correct result, but slow down my Laptop

I would like to know if this formula can be simplified

Your assistance in this regard is most appreciated
Try...

=SUMPRODUCT(SUMIFS(C:C,B:B,CondList))

where CondList refers to a range which houses all of your conditions as follows...

*lab Ret*
*lab Trade*
*S/Let Ret*
*s/let Trade*
*access?SVC*
*breakdown?*svc*

etc.
etc.
 
Upvote 0
Thanks for your input Arthur

I thought that one needs to use =sum(Sumifs.... when adding a range of criteria

I will shorten the range
 
Upvote 0

Forum statistics

Threads
1,215,674
Messages
6,126,149
Members
449,294
Latest member
Jitesh_Sharma

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