Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
PCERM
 
Posts: n/a
Default How do I display time in a negative format?

I am trying to set up a sheet to display flexi time with all amployees
working a 7 hour day. When they work more than 7 hours this is calculated in
numbers and converted to time using the 24 hour clock method. However when
someone works less than 7 hours the time converison is shown as ##########.
Can anyone tell me how to make this display as a negative time please.

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default How do I display time in a negative format?

You need to calculate it as a positive number, and test the original data to
see if it is less than 7, something like

=IF(A1<7,TEXT(TIME(7-A1,0,0),"hh:mm:ss")&"(Db)",TEXT(TIME(A1-7,0,0),"hh:mm:s
s")&"(Cr)")

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"PCERM" wrote in message
...
I am trying to set up a sheet to display flexi time with all amployees
working a 7 hour day. When they work more than 7 hours this is calculated

in
numbers and converted to time using the 24 hour clock method. However

when
someone works less than 7 hours the time converison is shown as

##########.
Can anyone tell me how to make this display as a negative time please.

Thanks



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
PCERM
 
Posts: n/a
Default How do I display time in a negative format?

Thanks Bob

That's useful. I actually managed to get around the problem in the end by
adopting the 1904 date system suggested by someone else on this forum which
is within the tools, options menu. As soon as I clicked this wo apply to the
page all negatives appeared as minus times.

Thanks again

Peter

"Bob Phillips" wrote:

You need to calculate it as a positive number, and test the original data to
see if it is less than 7, something like

=IF(A1<7,TEXT(TIME(7-A1,0,0),"hh:mm:ss")&"(Db)",TEXT(TIME(A1-7,0,0),"hh:mm:s
s")&"(Cr)")

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"PCERM" wrote in message
...
I am trying to set up a sheet to display flexi time with all amployees
working a 7 hour day. When they work more than 7 hours this is calculated

in
numbers and converted to time using the 24 hour clock method. However

when
someone works less than 7 hours the time converison is shown as

##########.
Can anyone tell me how to make this display as a negative time please.

Thanks




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default How do I display time in a negative format?

I never use the 1904 system as it differs from the 1900 system by 4 years
(no!), and this is too problematical to bother with IMO.

Glad you are sorted though.

Bob

"PCERM" wrote in message
...
Thanks Bob

That's useful. I actually managed to get around the problem in the end by
adopting the 1904 date system suggested by someone else on this forum

which
is within the tools, options menu. As soon as I clicked this wo apply to

the
page all negatives appeared as minus times.

Thanks again

Peter

"Bob Phillips" wrote:

You need to calculate it as a positive number, and test the original

data to
see if it is less than 7, something like


=IF(A1<7,TEXT(TIME(7-A1,0,0),"hh:mm:ss")&"(Db)",TEXT(TIME(A1-7,0,0),"hh:mm:s
s")&"(Cr)")

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"PCERM" wrote in message
...
I am trying to set up a sheet to display flexi time with all amployees
working a 7 hour day. When they work more than 7 hours this is

calculated
in
numbers and converted to time using the 24 hour clock method. However

when
someone works less than 7 hours the time converison is shown as

##########.
Can anyone tell me how to make this display as a negative time please.

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
Excel should format time down to the hundredth/sec. John Krick Excel Discussion (Misc queries) 3 November 28th 05 09:23 PM
Display a number as Kilometers and k/hr & as Time Gonzo Excel Discussion (Misc queries) 6 November 25th 05 09:15 AM
Adding Time Format jtinne Excel Discussion (Misc queries) 0 November 1st 05 11:05 PM
Imported Date & Time format with calcs. managed in excel from imrp Todd F. Excel Worksheet Functions 0 July 8th 05 09:03 PM
Calculating negative time & creating scrol bars for fixed size txt box. Jonathan hill via OfficeKB.com Excel Discussion (Misc queries) 4 February 12th 05 02:08 AM


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