Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Mally
 
Posts: n/a
Default I need 19:00 - 7:00 to display 12:00

My sheet shows tool down times for a works project

A1 = 19:00 (in time format)
B1 = 7:00 (in time format)

C1 = =B1-A1 which displays #############
How do i minus time after 00:00 0:00

If i take 19:00(B1) from 19:01(C1) it gives me the correct answer of 0:01,
its just with numbers after 00:00.
  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default

The WinXL default 1900 date system can't show negative times (times are
stored as fractional days, so 19:00 = 0.791666667). The (Mac default)
1904 date system (Tools/Options/Calculation, check the 1904 date system
checkbox) can, but the result would be -12:00

One solution would be to add 1 if the number to be subtracted is larger
than the number to be subtracted from. One can do that using XL's
implicit conversion of a boolean (TRUE/FALSE) value to 1/0 in math
operations:

=(B1<A1)+B1-A1

or, one could use the more obscure MOD() solution:

=MOD(B1-A1,1)



In article ,
"Mally" wrote:

My sheet shows tool down times for a works project

A1 = 19:00 (in time format)
B1 = 7:00 (in time format)

C1 = =B1-A1 which displays #############
How do i minus time after 00:00 0:00

If i take 19:00(B1) from 19:01(C1) it gives me the correct answer of 0:01,
its just with numbers after 00:00.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need to sort dates before 1900 in proper order sandage_2000 Excel Discussion (Misc queries) 3 January 8th 05 03:31 AM
Find & Replace results to display specified chosen fields samuel Excel Discussion (Misc queries) 1 December 28th 04 08:43 AM
Axis display as category doco Charts and Charting in Excel 4 December 12th 04 04:45 PM
Help Q: Entering 7 p time format, does not convert to 19:00 Frank Kabel Excel Discussion (Misc queries) 0 December 7th 04 07:20 AM
Conditional display of a .jpeg file? sbhogle Excel Discussion (Misc queries) 2 November 30th 04 05:57 AM


All times are GMT +1. The time now is 02:51 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"