Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
purtech
 
Posts: n/a
Default Adding or combining time problem.

I am trying to simply add times h:mm format.

=TEXT(F22-"37:30","h:mm")
=TEXT(F49-"37:30","h:mm")

These can and do give negative results because I am using the 1904 date
system.
But, if I try to sum the result of these two if any have a negative result I
get an error. I am using the below for the sum:

=F23+F50 all h:mm

So how do I add values when one is negative? Or is there another way?

Thanks!







  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default Adding or combining time problem.

Hi!

Why are you using the TEXT function?

This is one of those "quirky" things where I can't explain why it works the
way it does, I just know that it works the way it does!

The minus sign in a negative (TEXT) value can't be coerced into a numeric
negative so the value remains a TEXT value. When both values are positive
the act of adding them together:

value1 + value2

coerces them into numeric numbers. If you tried using =SUM(value1,value2),
that would return 0 since both values are TEXT and SUM ignores text.

If you try to coerce -value1 using the unary operator it still errors
because -value1 is a TEXT value.

So, why are you using the TEXT function? Why not just: cell_ref-"37:30"

Then =F23+F50 will work.

Biff

"purtech" wrote in message
...
I am trying to simply add times h:mm format.

=TEXT(F22-"37:30","h:mm")
=TEXT(F49-"37:30","h:mm")

These can and do give negative results because I am using the 1904 date
system.
But, if I try to sum the result of these two if any have a negative result
I
get an error. I am using the below for the sum:

=F23+F50 all h:mm

So how do I add values when one is negative? Or is there another way?

Thanks!









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
Adding small units of time and entering them quickly ckdkvk Excel Discussion (Misc queries) 1 January 4th 06 08:15 AM
Time log adding time from separate sheets teastman New Users to Excel 1 December 31st 05 04:14 PM
Problem with formatting time Tcs Excel Discussion (Misc queries) 2 November 3rd 05 06:48 PM
Date time problem FSt1 Excel Discussion (Misc queries) 1 September 26th 05 03:35 PM
1/0/1900 10:18:48 AM Time problem canix Excel Worksheet Functions 7 August 6th 05 03:41 AM


All times are GMT +1. The time now is 10:23 PM.

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"