SUMIF only if range is all blanks

buyshirts

Banned user
Joined
Aug 19, 2015
Messages
37
Office Version
  1. 365
Platform
  1. Windows
In column C i have weekly totals in Column E i sum every 4 weeks to give me a monthly totals.
Problem im having is getting Column E to be blank when Column C has 4 blanks.

I'm currently using =SUM(C26:C29) but this is giving me a 0 in Column E which in turns is giving me a false reading on my worst month (because unless i have a value beloew zero its take total's for months that have not happened yet)

I have tried =SUMIF(C26:C29,"<>",C26:C29) but i'm still getting 0 when the cells are blank

ANy help would be much appreicated
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Hi, SUM() or SUMIF() will always return a number - but you could try something like this to supress the zero's when no cells are populated.

=IF(COUNT(C26:C29),SUM(C26:C29),"")
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
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