Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Thomas99
 
Posts: n/a
Default How do you enter a negative time number in Excel?

I am trying to create a spreadsheet to track employee time records, and I
need a way to enter "negative" time numbers.

In order to correct data entry errors, I need the ability to enter "-8:30",
for example, and include that figure when totaling the column.


  #2   Report Post  
Myrna Larson
 
Posts: n/a
Default

Then you'll have to switch the workbook to the 1904 date system
(Tools/Options/Calculation). Be forewarned that if you already have dates on
the worksheet, they will change by 1462 days (4 years + 1 day). If that's a
problem, post back and we'll tell you how to fix it.

On Thu, 17 Mar 2005 14:25:06 -0800, "Thomas99"
wrote:

I am trying to create a spreadsheet to track employee time records, and I
need a way to enter "negative" time numbers.

In order to correct data entry errors, I need the ability to enter "-8:30",
for example, and include that figure when totaling the column.


  #3   Report Post  
Dave Peterson
 
Posts: n/a
Default

If you change the base year
tools|options|calculation tab|check 1904 date system

Then you can enter negative time:
=-TIME(8,30,0)

-8:30 or =0-8:30
won't work

You can give it the format you like:
hh:mm:ss
???

But be aware that any date in your workbook will now be 4 years and one day
different.

This can be a problem if you copy and paste from workbooks that use different
date systems.

Thomas99 wrote:

I am trying to create a spreadsheet to track employee time records, and I
need a way to enter "negative" time numbers.

In order to correct data entry errors, I need the ability to enter "-8:30",
for example, and include that figure when totaling the column.


--

Dave Peterson
  #4   Report Post  
Sandy Mann
 
Posts: n/a
Default

Myrna,

Even switching to 1904 date system I can't get XL (97) to accept a negative
tieme entry directly. It will *accept* and show a negative time if I enter
it
as a formula as in =A1 -B1 with 00:00 in A1 and 8:00 in B1, and then
copy/paste special/values back into the same cell or
run a macro like:

Sub Test()
t = InputBox("Tim")
n = TimeValue("00:00")
n = n - TimeValue(t)
ActiveCell.Value = n
End Sub


but it will not accept a direct entry. Is it different in other versions?

Regards

sandy
--
to e-mail direct replace @mailinator.com with @tiscali.co.uk


"Myrna Larson" wrote in message
...
Then you'll have to switch the workbook to the 1904 date system
(Tools/Options/Calculation). Be forewarned that if you already have dates

on
the worksheet, they will change by 1462 days (4 years + 1 day). If that's

a
problem, post back and we'll tell you how to fix it.

On Thu, 17 Mar 2005 14:25:06 -0800, "Thomas99"
wrote:

I am trying to create a spreadsheet to track employee time records, and I
need a way to enter "negative" time numbers.

In order to correct data entry errors, I need the ability to enter

"-8:30",
for example, and include that figure when totaling the column.






  #5   Report Post  
Sandy Mann
 
Posts: n/a
Default

Never mind Myrna, I see that Dave has answered my question.

Regards

Sandy

--
to e-mail direct replace @mailinator.com with @tiscali.co.uk


"Sandy Mann" wrote in message
...
Myrna,

Even switching to 1904 date system I can't get XL (97) to accept a

negative
tieme entry directly. It will *accept* and show a negative time if I

enter
it
as a formula as in =A1 -B1 with 00:00 in A1 and 8:00 in B1, and then
copy/paste special/values back into the same cell or
run a macro like:

Sub Test()
t = InputBox("Tim")
n = TimeValue("00:00")
n = n - TimeValue(t)
ActiveCell.Value = n
End Sub


but it will not accept a direct entry. Is it different in other versions?

Regards

sandy
--
to e-mail direct replace @mailinator.com with @tiscali.co.uk


"Myrna Larson" wrote in message
...
Then you'll have to switch the workbook to the 1904 date system
(Tools/Options/Calculation). Be forewarned that if you already have

dates
on
the worksheet, they will change by 1462 days (4 years + 1 day). If

that's
a
problem, post back and we'll tell you how to fix it.

On Thu, 17 Mar 2005 14:25:06 -0800, "Thomas99"
wrote:

I am trying to create a spreadsheet to track employee time records, and

I
need a way to enter "negative" time numbers.

In order to correct data entry errors, I need the ability to enter

"-8:30",
for example, and include that figure when totaling the column.








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 let me circle a cell or number in the spreadsheet fo. BTaylor Excel Discussion (Misc queries) 2 March 8th 05 03:00 PM
Where is DateDiff function in Excel 2002 ? Nigel Welch Excel Worksheet Functions 4 March 4th 05 03:18 PM
Excel 2003 - long closing time when have many add-ins installed David Welch Excel Discussion (Misc queries) 0 January 11th 05 02:38 PM
How do I pick a number from a list in Excel? pugsly8422 Excel Worksheet Functions 4 January 3rd 05 06:07 PM
How do I automatically pull a new invoice number into an excel te. Hube Excel Discussion (Misc queries) 3 December 28th 04 11:27 PM


All times are GMT +1. The time now is 06:36 AM.

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

About Us

"It's about Microsoft Excel"