Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Negative and Positive Time

I have a cell in whic the formula may return a positive time or negative time
depending on the hours worked.
I can format the cell to display a positive time or a negative time but not
to switch between the 2.
I have tried formatting the cell to h:mm;(h:mm) and using the 1904 date
system but neither work
HELP!!!!!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 427
Default Negative and Positive Time

Most likely you're calculating time based on a timestamp rather than a
datestamp, and if you subtract a PM hour from an AM hour you will get a
negative number (for instance 2 AM - 1 PM = -11, or 2 - 13.. On the
other hand if you use a datestamp that includes a fractional portion of
a day and format the cells to show time only, you can subtract
yesterday's PM time from today's AM time and still get a positive
result.

In a blank cell in a sprdsht enter =NOW() then format that cell as a
number including a comma and several decimal points. 6:30 PM or so
yields 38,980.770. You may want to consult Help to read up on serial
dates.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Negative and Positive Time

maybe this will help

=MOD(B1-A1,1)

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"DazedandConfused" wrote in
message ...
I have a cell in whic the formula may return a positive time or negative

time
depending on the hours worked.
I can format the cell to display a positive time or a negative time but

not
to switch between the 2.
I have tried formatting the cell to h:mm;(h:mm) and using the 1904 date
system but neither work
HELP!!!!!



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
Add sequences of positive then negative numbers judoist Excel Discussion (Misc queries) 6 November 26th 05 05:51 AM
Formula to make Negative Values Positive & Positive Values Negative? mustard Excel Discussion (Misc queries) 4 September 26th 05 10:05 PM
Summing negative time Bumblebee Excel Discussion (Misc queries) 8 July 29th 05 02:02 AM
Negative Time Values B. Baumgartner Excel Discussion (Misc queries) 1 July 1st 05 10:16 AM
How can I change positive numbers to negative, i.e. change 50 to - godwingi Excel Discussion (Misc queries) 5 February 28th 05 05:41 PM


All times are GMT +1. The time now is 03:04 AM.

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

About Us

"It's about Microsoft Excel"