Simple SUMIFS using multiple criteria for one range

cappla011

New Member
Joined
Mar 13, 2013
Messages
37
Office Version
  1. 365
Platform
  1. Windows
Hey all, this is probably a really simple question but I've been pulling my hair out and my Google-fu isn't apparently working. The SUMIFS formula in question is --

=SUMIFS($X:$X,$AH:$AH,"12"&"*",...other non-important criteria

Basically my issue is I want to sum everything in column X if column AH starts with 12 AND if it also starts with 13. I've tried

=SUMIFS($X:$X,$AH:$AH,AND("12"&"*","13"&"*"),...
=SUMIFS($X:$X,$AH:$AH,{"12"&"*","13"&"*"},...
=SUMIFS($X:$X,$AH:$AH,["12"&"*","13"&"*"],...

I also saw some things online about wrapping the whole formula in a =SUM but didn't fully understand.
I also know i could do =SUMIFS($X:$X,$AH:$AH,"12"&"*",... +SUMIFS($X:$X,$AH:$AH,"13"&"*",... but was hoping there was a way to do it only using the one SUMIFS formula?

Please let me know if you can help. Thanks!
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
When you use an array of criteria, you get an array of results, which is why you need to wrap the whole thing in SUM() as well:

Excel Formula:
=SUM(SUMIFS($X:$X,$AH:$AH,{"12","13"}&"*"))

for example.
 
Upvote 0
Solution
Thank you so much! Yeah I think the {"12","13"}&"*" part was where I really stuck at. That makes sense though.

Appreciate the help.
 
Upvote 0

Forum statistics

Threads
1,226,074
Messages
6,188,727
Members
453,494
Latest member
Alt F11

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