Formula shows ####### instead of 00:00 in cell

Spicegold

New Member
Joined
Sep 6, 2023
Messages
8
Office Version
  1. 2021
Platform
  1. Windows
The formula works perfectly, except when I insert formula in H13 it shows ####### instead of 00:00 in H13 Actual overtime

=IF(F13<=TIME(10,0,0), IF(C13>F13-TIME(8,48,0)>=TIME(1,0,0),C13-TIME(8,48,0),0), IF(C13>F13-TIME(8,48,0)>=TIME(1,0,0),F13-TIME(8,48,0),0))

Dates and times that are negative or too large show as #######

This is where my problem is.

Only after I enter times from C13 to E13, it shows time in H13

So, when I insert the formula in column H downwards for each day of the month, it shows #######.

There are days when I’m not working, it show ####### and not 00:00

At the bottom in Total =SUM(H13:H44) it shows ####### and no time for the days I worked

New Formula.xlsx
CDEFGH
12Shift lengthStart timeEnd timeTotal timeOver timeActual overtime
1310:0006:0014:4808:4800:0001:12
1410:0006:0017:0011:0002:1202:12
1512:0006:0018:0012:0003:1203:12
16###############
1712:0006:0014:4503:12
18#################
Sheet2
Cell Formulas
RangeFormula
F13:F15F13=E13-D13
G13:G15G13=F13-TIME(8,48,0)
H13:H18H13=IF(F13<=TIME(10,0,0), IF(C13>F13-TIME(8,48,0)>=TIME(1,0,0),C13-TIME(8,48,0),0), IF(C13>F13-TIME(8,48,0)>=TIME(1,0,0),F13-TIME(8,48,0),0))
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Try this in H13:

=Max(0, IF(F13<=TIME(10,0,0), IF(C13>F13-TIME(8,48,0)>=TIME(1,0,0),C13-TIME(8,48,0),0), IF(C13>F13-TIME(8,48,0)>=TIME(1,0,0),F13-TIME(8,48,0),0)))
 
Upvote 0
Solution
Try this in H13:

=Max(0, IF(F13<=TIME(10,0,0), IF(C13>F13-TIME(8,48,0)>=TIME(1,0,0),C13-TIME(8,48,0),0), IF(C13>F13-TIME(8,48,0)>=TIME(1,0,0),F13-TIME(8,48,0),0)))
Thanks

Formula is working
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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