Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 516
Default negative time in Hours and mins

is there a way i can show negative time eg needs to work 3:00 hours but only
works 2:00 hours it will come up as -1:00hours but if then they do an extra
2:00 hours it will show 1:00
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default negative time in Hours and mins

With hours to work in A1 and
actual worked in B1 try the below formula in C1

=IF(B1=A1,B1-A1,"-"&TEXT(ABS(B1-A1),"hh:mm"))

PS: This is only for display and not for calculations; as excel do not
display negative time..

If this post helps click Yes
---------------
Jacob Skaria


"Matt" wrote:

is there a way i can show negative time eg needs to work 3:00 hours but only
works 2:00 hours it will come up as -1:00hours but if then they do an extra
2:00 hours it will show 1:00

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 31
Default negative time in Hours and mins


"Matt" wrote in message ...
is there a way i can show negative time eg needs to work 3:00 hours but only
works 2:00 hours it will come up as -1:00hours but if then they do an extra
2:00 hours it will show 1:00


Hi Matt.
The [h] formatting can show negative hours.
But you can not have negative minutes shown also.
Try this user formatting
[h]:mm;-[h]:--
It will show 3:00 for the positives, and -1:-- for the negatives.
When only the format is fiddled with, the underlying numbers don't change,
and can be used in further calculations.
Hans T.
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
using if statement to subtract 24 hours from time still shows as a negative time from both responses under 24 hours richard.littlewing Excel Worksheet Functions 2 September 15th 08 08:05 AM
Adding minutes showing total in hours/minutes, i.e., 60 mins + 60 mins + 15 mins to total of 2 hours 15 mins? StargateFan Excel Discussion (Misc queries) 8 January 7th 06 07:35 PM
How do I time Hours & mins in excel - Time sheet Helen Excel Discussion (Misc queries) 5 September 17th 05 11:42 AM
Need Time Sheet that calculates hours/mins from input of times Steve Excel Worksheet Functions 1 May 10th 05 12:28 AM
Tracking Time (Hours/Mins) sdmccabe Excel Discussion (Misc queries) 1 February 1st 05 04:39 PM


All times are GMT +1. The time now is 09:04 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"