Value to blank cells

MickB

New Member
Joined
Oct 21, 2020
Messages
6
Office Version
  1. 2007
Platform
  1. Windows
I am trying to give a time value to blank cells containing an existing formula; this formula enters the value I want .....

=IF(ISBLANK(E5),"8:00",MOD(E5-D5,1)

......but if I drag the formula down through 5 cells and use the sum function to add the totals it returns 0:00 instead of the 40:00 I was expecting.

I am a new user and until this point I was managing okay by watching the online tutorials but this one has got me stuck so any help would be appreciated.
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
this is a text: "8:00", so try 8:00
or
=IF(ISBLANK(E5),0.333333333333333,MOD(E5-D5,1) and format [h]:mm
sum format the same
Book1
EF
58:00
68:00
78:00
88:00
98:00
1040:00
Sheet1
Cell Formulas
RangeFormula
F5:F9F5=IF(ISBLANK(E5),0.333333333333333,MOD(E5-D5,1))
F10F10=SUM(F5:F9)
 
Last edited:
Upvote 0
Yeh ..... that works.
0.4166667 = 10 hours?
So happy, thank you so much!
 
Upvote 0
you are welcome
also you can use
Excel Formula:
=IF(ISBLANK(E5),TIMEVALUE("08:00"),MOD(E5-D5,1)
format the same as above
 
Upvote 0
Solution

Forum statistics

Threads
1,213,546
Messages
6,114,256
Members
448,558
Latest member
aivin

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