SUMIFS formula with texts and using OR

korhan

Board Regular
Joined
Nov 6, 2009
Messages
215
I am trying to use an "OR" statement or something similar to capture multiple scenarios in my SUMIFS formula.

=SUMIFS(sumrange,criteria_range_1,"2017"&" "&"*WITHHOLD *",criteria_range_2,criteria_2)

When the year is in the beginning, my formula has no problem and it captures but there some situations where the year is at the end so I am looking for "*WITHHOLD *" & "2017".
How can I incorporate this into my formula so sumifs captures either or.

Below is what I am thinking. How can I translate it into Excel's language?

=SUMIFS(sumrange,criteria_range_1,OR("2017"&" "&"*WITHHOLD *","*WITHHOLD *" & "2017"),,criteria_range_2,criteria_2)
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
The SUMIFS are structured to treat additional criteria as AND instead of OR.
If you want to do OR-type criteria, one way is to structure it like this:
Code:
=SUMIF(first criteria) + SUMIF(second criteria) - SUMIFS(both criteria)
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,183
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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