sumifs to add up by criteria if it there only?

tonywatsonhelp

Well-known Member
Joined
Feb 24, 2014
Messages
3,194
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
Hi Everyone,

I want to do a sumifs formula but need some help,

the formula is "=SUMIFS('PL Raw'!I:I,'PL Raw'!E:E,Sheet5!A1,'PL Raw'!C:C,Sheet5!A3,'PL Raw'!A:A,Sheet5!A5)"

I have three dropdown boxes
Sheet5!A1
Sheet5!A3
Sheet5!A5
which are the 3 criteria,
but i have a problem,
if Sheet5!A3 = "" for example it takes this as my criteria, but i want it to sum everything unless there something in one of these cells,
so in other words if that critria is blank ignore it.

any ideas how i can do this?

thanks

Tony
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
It depends if the criteria are text or numbers, for text you could use this as the criteria in sumifs IF(Sheet5!A3="","*",Sheet5!A3)

For numbers, possibly IF(Sheet5!A3="","<>0",Sheet5!A3) although that would exclude any rows that actually contain 0 in the criteria range so may not be ideal.
 
Upvote 0
Thanks Jason, but I've been playing about with your ideas cant seam to get anything
Anyone else got any ideas I can try,
you think it would be simple, if its easier, I could put the word "All" in instead of a blank
thanks
Tony
 
Upvote 0
It may not be the most suitable but it was the best I could offer based on the information that you provided.
It depends if the criteria are text or numbers,
Simply clarifying points that are raised by people trying to help you can make a lot of difference in the answers provided.
 
Upvote 0

Forum statistics

Threads
1,214,515
Messages
6,119,972
Members
448,933
Latest member
Bluedbw

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