Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Chris01623
 
Posts: n/a
Default working with time functions

i am making a spreadsheet of hours people have worked in a week. People
should work 37 hours, anything above that is credit, and below it debit. In
my spreadsheet, the "hours worked" cell is displayed in 37:00 format (as is
all other times in the worksheet) if someone works 37:30, that 30 minutes is
displayed in the credit/debit cell fine, but if someone works less than 37:00
in the week nothing i do works to show the debit people are accrueing. So if
someone works 35:00 i would like it to show that they are in 02:00 debit. Has
anyone got any suggestions?
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

Chris,

I guess that the problem you get for a it is seeing ####.

This is not a problem apart from presentation, there is still a negative
time in there with you can do arithmetic on.

One way would be to work in decimal hours, =(B1-A1)*24, and format as
general.

A better way would be to have a credit and debit cell separately, and then
sum those and take individually and subtract debit from credit.
=(B1-A10)*(B1-A1)
=(A1-B10)*(A1-B1)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Chris01623" wrote in message
...
i am making a spreadsheet of hours people have worked in a week. People
should work 37 hours, anything above that is credit, and below it debit.

In
my spreadsheet, the "hours worked" cell is displayed in 37:00 format (as

is
all other times in the worksheet) if someone works 37:30, that 30 minutes

is
displayed in the credit/debit cell fine, but if someone works less than

37:00
in the week nothing i do works to show the debit people are accrueing. So

if
someone works 35:00 i would like it to show that they are in 02:00 debit.

Has
anyone got any suggestions?



  #3   Report Post  
Jerry W. Lewis
 
Posts: n/a
Default

In Excel, time is a formated decimal fraction of 24 hour days so credit
would be
=IF(worked37/24,worked-37/24,"")
and debit would be
=IF(worked<37/24,37/24-worked,"")

Jerry

Chris01623 wrote:

i am making a spreadsheet of hours people have worked in a week. People
should work 37 hours, anything above that is credit, and below it debit. In
my spreadsheet, the "hours worked" cell is displayed in 37:00 format (as is
all other times in the worksheet) if someone works 37:30, that 30 minutes is
displayed in the credit/debit cell fine, but if someone works less than 37:00
in the week nothing i do works to show the debit people are accrueing. So if
someone works 35:00 i would like it to show that they are in 02:00 debit. Has
anyone got any suggestions?


  #4   Report Post  
Dodo
 
Posts: n/a
Default

"?B?Q2hyaXMwMTYyMw==?="
wrote in :

i am making a spreadsheet of hours people have worked in a week.
People should work 37 hours, anything above that is credit, and below
it debit. In my spreadsheet, the "hours worked" cell is displayed in
37:00 format (as is all other times in the worksheet) if someone works
37:30, that 30 minutes is displayed in the credit/debit cell fine, but
if someone works less than 37:00 in the week nothing i do works to
show the debit people are accrueing. So if someone works 35:00 i would
like it to show that they are in 02:00 debit. Has anyone got any
suggestions?


You can change a setting in Excel to show negative time:

http://support.microsoft.com/default...b;en-us;182247

Doing so has a drawback but I cannot remember what it is.


--

It is I, DeauDeau
(Free after monsieur Leclerc in 'Allo, 'allo)
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
How to use solver to schedule part time and full time workforce? The Ooz Excel Discussion (Misc queries) 0 August 18th 05 06:53 AM
how do i count how many people are working between two times in e APYDS Excel Worksheet Functions 4 August 16th 05 08:11 PM
Working w/ non-standard Time Format carl Excel Worksheet Functions 2 March 30th 05 07:13 PM
Time Sheets Lady Layla Excel Discussion (Misc queries) 1 March 23rd 05 03:22 PM
Time Functions carl Excel Worksheet Functions 2 January 7th 05 02:34 PM


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