Problem with Negative differences of Time

OldSwimmer1650

New Member
Joined
Dec 3, 2020
Messages
38
Office Version
  1. 365
Platform
  1. Windows
I want column G to display the change in time from the previous days run. If I run faster that is a positive number, if slower that's a negative number. The problem is with negative numbers. The positive numbers are fine.

D Previous Day should be Delta Previous Day (G5)

Column I is what I'm looking to display.

I understand that subtracting a larger time from a smaller time creates a very large number(not what i want) G16





TimeQuestions.xlsx
BCDEFGHI
3
4General FormatTYPED IN BY HAND
5DateDistanceAve HRMax HRTimeD Previous DayConvert to Sec'sWhat I'm Looking for
65/1/2022#N/A#N/A#N/A#N/A
75/2/20224.0410313101:28:26#N/A#N/A
85/3/20224.048411301:28:2100:00:05500:00:05
95/4/20224.049312201:24:3200:03:4922900:03:49
105/5/20224.0410512901:15:2600:09:0654600:09:06
115/6/20224.0410613301:12:0100:03:2520500:03:25
125/7/2022#N/A#N/A#N/A#N/A#N/A#N/A
135/8/20224.088611201:26:30#N/A#N/A
145/9/20224.0411416001:19:0000:07:3045000:07:30
155/10/20224.0511814301:10:4100:08:1949900:08:19
165/11/20224.0510713601:15:53##################-312-00:05:12
17
Sheet1
Cell Formulas
RangeFormula
G7:G16G7=F6-F7
H7:H16H7=HOUR(F6)*3600+MINUTE(F6)*60+SECOND(F6)-(HOUR(F7)*3600+MINUTE(F7)*60+SECOND(F7))
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
I'm sure someone on here will think of a better solution than mine. But this seems to be working for me:
Excel Formula:
=IF(F8>F7,"-"&TEXT(MAX(F7:F8)-MIN(F7:F8),"HH:MM:SS"),TEXT(MAX(F7:F8)-MIN(F7:F8),"HH:MM:SS"))
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,323
Members
452,635
Latest member
laura12345

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