Subtracting Time

bbabine

New Member
Joined
Apr 28, 2002
Messages
47
I have been trying to subtract time and have tried all the suggestion I have reviewed on the message board and external links and still cannot get it to work. The spreadsheet originally had time displayed as 11:20:01 a.m. I used text-to-column and separated the time from a.m. Looking at the spreadsheet everything is working except when the time changes from a.m. to p.m. When I look at the p.m. time field, it shows as a.m. and I am getting a negative number. See row D.

Any help would be appreciated. Thanks!!
Book1
ABCDE
1DateLogin/LogoutTimeCalculation
205/09/200211:20:01a.m.
305/09/200211:20:07a.m.0:00:06
405/09/20021:49:37p.m.-9:30:30
505/09/20021:58:21p.m.0:08:44
605/09/20023:15:27p.m.1:17:06
705/09/20023:47:03p.m.0:31:36
805/09/20024:37:29p.m.0:50:26
905/09/20024:38:06p.m.0:00:37
1005/09/20024:38:54p.m.0:00:48
1105/09/20024:39:29p.m.0:00:35
1205/09/20024:57:34p.m.0:18:05
1305/09/20025:06:30p.m.0:08:56
1405/09/20026:01:38p.m.0:55:08
1505/09/20026:16:50p.m.0:15:12
1605/09/20026:16:50p.m.0:00:00
1705/09/20026:50:52p.m.0:34:02
1805/09/20026:50:52p.m.0:00:00
1905/09/20027:11:15p.m.0:20:23
2005/09/20027:11:15p.m.0:00:00
2105/09/20027:43:34p.m.0:32:19
2205/09/20027:43:34p.m.0:00:00
2305/09/20028:03:38p.m.0:20:04
2405/09/20028:03:38p.m.
Sheet1

This message was edited by bbabine on 2002-07-03 04:02
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"

Forum statistics

Threads
1,215,409
Messages
6,124,743
Members
449,186
Latest member
HBryant

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