Sum problem

Mel Smith

Well-known Member
Joined
Dec 13, 2005
Messages
1,041
Office Version
  1. 365
Platform
  1. Windows
I am trying to add a series of cells using a simple sum formula. The cells (which are formatted as m:ss) will get values from other cells when they are populated. This means that some cells in my series will be blank. How can i avoid getting the #VALUE! error message and just add, say 10 of the 15 cells that have a value?

Mel
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Are your cells actually blank or are they formulas returning ""?
 
Upvote 0
Hello Mark, They are returning "" from a formula: =if(I21="","",F21/(60*60*24)) and so on...

Mel
 
Upvote 0
Hello Mel

You are not using a simple SUM() formula but rather adding cells.
Do NOT add cells. Use the SUM() function.
Better: Change your formula to F21/(60*60*24).
 
Upvote 0
Hi Mark,

Then i get the cell showing 0:00 which when i later try to average them, it counts the 0:00 too.

Mel
 
Upvote 0
Last edited:
Upvote 0
Hi Mark,

Sorry for the delay. Just the job, thank you!

Mel
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,906
Members
452,366
Latest member
TePunaBloke

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