Current time minus deadline time sometimes begins count 24 hours early

Royzer

Board Regular
Joined
Jun 22, 2010
Messages
51
I'd really appreciate any help I can get for this one.

When I subtract the Ticket Deadline time (screenshot) from the current time shown in D1 I get the correct time difference until the Ticket Deadline gets to a certain time in the afternoon. As shown in the yellow highlighted cells, the result is off by 24 hours. I've tried everything I can think of to set that result back by 24 hours. I think it is happening when the formula results in a negative number.

The column E formula is the Current Time in cell D1 minus the Ticket Deadline. In the screenshot you can see the formula, and it is working in that cell. It works fine most of the time, but goes crazy when the deadline time is at a certain point in the afternoon.

If I cannot get the difference between times, simply determining if the deadline has passed would work. If I could just get to a TRUE/FALSE result, I should be able to use it to conditionally format the cells that are past the deadline.

Thank you.
 

Attachments

  • Time Screenshot.png
    Time Screenshot.png
    18.6 KB · Views: 7

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Go to Options, Advanced, scroll down quite a way to the section 'When Calculating this Workbook' and tick the 'Use 1904 date system'. You'll then be able to use negative times, which is likely your problem.
 
Upvote 0
Solution
I hope I read your request right

Book6
DE
112:29:02 PM
2Ticket DeadlineHow Late?
38:00:00 AM4:29 Overdue
49:00:00 AM3:29 Overdue
510:00:00 AM2:29 Overdue
611:00:00 AM1:29 Overdue
712:00:00 PM0:29 Overdue
81:00:00 PM0:30 Left
92:00:00 PM1:30 Left
103:00:00 PM2:30 Left
114:00:00 PM3:30 Left
125:00:00 PM4:30 Left
136:00:00 PM5:30 Left
147:00:00 PM6:30 Left
158:00:00 PM7:30 Left
169:00:00 PM8:30 Left
1710:00:00 PM9:30 Left
1811:00:00 PM10:30 Left
1912:00:00 AM11:30 Left
201:00:00 AM12:30 Left
212:00:00 AM13:30 Left
223:00:00 AM14:30 Left
234:00:00 AM15:30 Left
Sheet1
Cell Formulas
RangeFormula
D1D1=NOW()-INT(NOW())
E3:E23E3=IF(D3>$D$1,TEXT(D3-$D$1,"h:mm")&" Left",TEXT($D$1-D3,"h:mm")&" Overdue")
 
Upvote 0

Forum statistics

Threads
1,225,738
Messages
6,186,736
Members
453,369
Latest member
juliewar

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