Summing with Blanks

kenpcli

Board Regular
Joined
Oct 24, 2017
Messages
129
How do i sum a column but omit if the cell is blank? This is the formula I have now:

=SUM(L87,L83,L79,L75,L71,L67,L63,L59,L55,L51,L47,L43,L39,L35,L31,L27,L23,L19,L15,L11)

I can't do the sum(L11:L87) because it gives be the numbers in between as well.

Thank you,
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Dont know quite what you mean by if the cell is blank but maybe:

=SUMPRODUCT(L11:L87,--(MOD(ROW(L11:L87),4)=3))
 
Upvote 0
Dont know quite what you mean by if the cell is blank but maybe:

=SUMPRODUCT(L11:L87,--(MOD(ROW(L11:L87),4)=3))

If the account the report is running has no data it comes back blank, but I just need it to add the subtotal lines which are above regardless if they are blank or have a total. The formula you provided doesn't give me the correct total.
 
Upvote 0
The formula i gave you is the same as =SUM(L87,L83,L79,L75,L71,L67,L63,L59,L55,L51,L47,L43,L39,L35,L31,L27,L23,L19,L15,L11) so if it isnt that you want what is it you want? SUM wont sum blanks anyway..
 
Upvote 0
The formula i gave you is the same as =SUM(L87,L83,L79,L75,L71,L67,L63,L59,L55,L51,L47,L43,L39,L35,L31,L27,L23,L19,L15,L11) so if it isnt that you want what is it you want? SUM wont sum blanks anyway..


Correct, so how do I get a formula that will add those cell, but ignore them if they are blank?
 
Upvote 0
Then you either have cells with reference error within your range of cells or you have deleted some rows and if you look at the formula in the formula bar you will see #REF ! somewhere.
 
Upvote 0

Forum statistics

Threads
1,215,063
Messages
6,122,935
Members
449,094
Latest member
teemeren

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