PC Review


Reply
Thread Tools Rate Thread

How to calculate positive and negative time

 
 
simpleandfree36
Guest
Posts: n/a
 
      13th Mar 2010
I have a the following series of times in my worksheet (formatted as
general). What im trying to achieve is a total in h:mm or decimal format. Im
using 2003 excel. I have had no success with any formula ive tried. Can
anyone help me with this? it would be much appreciated.
-04:45
-03:47
00:11
00:14
-02:43
-01:10
-02:35
-01:04
00:19
-01:26
-04:32
-04:25
00:15
01:07
-01:23
-02:57

 
Reply With Quote
 
 
 
 
ker_01
Guest
Posts: n/a
 
      15th Mar 2010
Excel doesn't play well with negative date/time values. When formatted as
date/time the cell will just show ##### because it doesn't know what to do
with "negative time". If you paste the text representation of a value in to a
general cell it will remain, but you can't edit it because the leading
negative makes Excel think that you have an incomplete formula.

Do you need to represent time in a way that can be manipulated/calculated,
or do you need a negative value for display?

If for diplay, I would keep a 'positive' version of your number, then
concatenate for display:
A B C
4:22 0 =if (b1 = 0, a1, "-" & text(a1,"HH:MM"))
2:12 1 [shows as] -2:22

If you need to calculate these numbers (avg number of minutes, etc) then
just format as a number (minutes will show as a decimal number, .5= noon, .25
= 6am, .75= 6pm)- do your calculations, then convert back to a date/time at
the very end.

HTH,
Keith

"simpleandfree36" wrote:

> I have a the following series of times in my worksheet (formatted as
> general). What im trying to achieve is a total in h:mm or decimal format. Im
> using 2003 excel. I have had no success with any formula ive tried. Can
> anyone help me with this? it would be much appreciated.
> -04:45
> -03:47
> 00:11
> 00:14
> -02:43
> -01:10
> -02:35
> -01:04
> 00:19
> -01:26
> -04:32
> -04:25
> 00:15
> 01:07
> -01:23
> -02:57
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Subtracting positive amts from negative and positive from positive bwbmom Microsoft Excel Worksheet Functions 3 12th Feb 2010 03:15 PM
calculate formula if cell value is positive, show 0 if negative KB Microsoft Excel Misc 3 28th Jan 2010 10:02 PM
how do i add negative time to positive time =?Utf-8?B?c21vcnJpc3J1cw==?= Microsoft Excel Programming 4 11th Oct 2007 11:51 AM
calculate the difference between negative and positive values watty Microsoft Excel Worksheet Functions 6 19th Oct 2006 07:30 PM
Negative and Positive Time =?Utf-8?B?RGF6ZWRhbmRDb25mdXNlZA==?= Microsoft Excel Misc 2 20th Sep 2006 11:34 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:39 PM.