SUMIF l;ooks for multiple text options

RodneyW

Active Member
Joined
Sep 24, 2010
Messages
443
Office Version
  1. 2013
Platform
  1. Windows
I’m using these two formulas to sum the data in the appropriatecells:

=SUMIF($C$4:$C$200,"ORANGE",D$4:D$200)

=SUMIF($C$4:$C$200,"BLUE",D$4:D$200)

Both work perfectly. Now I need a formula that will sum thetotal if instead of looking specifically for ORANGE or BLUE, it looks for GREENor PURPLE or RED or YELLOW and totals the number if any of the cells meet thatcriteria. How do I modify?

TY in advance


 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Like this:

=SUM(SUMIF($C$4:$C$200,{"ORANGE","BLUE"},D$4:D$200))

=SUM(SUMIF($C$4:$C$200,{"GREEN","PURPLE","RED","YELLOW"},D$4:D$200))
 
Upvote 0
Like this:

=SUM(SUMIF($C$4:$C$200,{"GREEN","PURPLE","RED","YELLOW"},D$4:D$200))
 
Upvote 0
can just add them together

=SUMIF($C$4:$C$200,"ORANGE",D$4:D$200) + SUMIF($C$4:$C$200,"BLUE",D$4:D$200) + etc etc
 
Upvote 0
Love it, several options! Started with the first one and it worked. Thank you all
 
Upvote 0

Forum statistics

Threads
1,216,081
Messages
6,128,695
Members
449,464
Latest member
againofsoul

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