Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
dvonj
 
Posts: n/a
Default Found Mistake can't correct.

In my haste to show off what I created for my company I overlooked a minor
detail. A major one if any one else finds it. I put together a spreadsheet
time card that will total driver hours but overlooked if a driver goes over
40 hours in a week. I am trying to correct this without having to start all
over again. I need to return one of two values based on the total hours for
the week. If Total Hours is < 40, I need to return those hours as regular
hours, if the Total Hours is 40 I need to return 40.00 in one cell and the
remaining hour as overtime hours in another cell. I have tried several
different fomulas for this and can get it to work if the Total Hours are 40
but it won't work if they are < 40. I need a quick and dirty fix before we
put this into production this Wednesday.

Thanks.
  #2   Report Post  
Chip Pearson
 
Posts: n/a
Default

See www.cpearson.com/excel/overtime.htm for example formulas for
dealing with time sheets and overtime.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"dvonj" wrote in message
...
In my haste to show off what I created for my company I
overlooked a minor
detail. A major one if any one else finds it. I put together a
spreadsheet
time card that will total driver hours but overlooked if a
driver goes over
40 hours in a week. I am trying to correct this without having
to start all
over again. I need to return one of two values based on the
total hours for
the week. If Total Hours is < 40, I need to return those hours
as regular
hours, if the Total Hours is 40 I need to return 40.00 in one
cell and the
remaining hour as overtime hours in another cell. I have tried
several
different fomulas for this and can get it to work if the Total
Hours are 40
but it won't work if they are < 40. I need a quick and dirty
fix before we
put this into production this Wednesday.

Thanks.



  #3   Report Post  
Aladin Akyurek
 
Posts: n/a
Default

=MIN(40,TotalHoursCalculation)

=MAX(0,TotalHoursCalculation-40)

dvonj wrote:
In my haste to show off what I created for my company I overlooked a minor
detail. A major one if any one else finds it. I put together a spreadsheet
time card that will total driver hours but overlooked if a driver goes over
40 hours in a week. I am trying to correct this without having to start all
over again. I need to return one of two values based on the total hours for
the week. If Total Hours is < 40, I need to return those hours as regular
hours, if the Total Hours is 40 I need to return 40.00 in one cell and the
remaining hour as overtime hours in another cell. I have tried several
different fomulas for this and can get it to work if the Total Hours are 40
but it won't work if they are < 40. I need a quick and dirty fix before we
put this into production this Wednesday.

Thanks.

  #4   Report Post  
Ken Wright
 
Posts: n/a
Default

=MIN(40,Your_formula) will return everything up to and including 40 hours

=MAX(0,Your_Formula-40) will return all hours over 40, or 0 if none.

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

----------------------------------------------------------------------------
It's easier to beg forgiveness than ask permission :-)
----------------------------------------------------------------------------

"dvonj" wrote in message
...
In my haste to show off what I created for my company I overlooked a minor
detail. A major one if any one else finds it. I put together a spreadsheet
time card that will total driver hours but overlooked if a driver goes

over
40 hours in a week. I am trying to correct this without having to start

all
over again. I need to return one of two values based on the total hours

for
the week. If Total Hours is < 40, I need to return those hours as regular
hours, if the Total Hours is 40 I need to return 40.00 in one cell and

the
remaining hour as overtime hours in another cell. I have tried several
different fomulas for this and can get it to work if the Total Hours are

40
but it won't work if they are < 40. I need a quick and dirty fix before we
put this into production this Wednesday.

Thanks.



  #5   Report Post  
JE McGimpsey
 
Posts: n/a
Default

one way:

Assume your hours are in A2:G2. Then calculate regular hours as

H2: =MIN(40,SUM(A2:G2))

and OT hours:

I2: =MAX(SUM(A2:G2)-H2,0)


For additional approaches, see:

http://cpearson.com/excel/overtime.htm

and

http://www.j-walk.com/ss/excel/files/timesht.htm

In article ,
"dvonj" wrote:

In my haste to show off what I created for my company I overlooked a minor
detail. A major one if any one else finds it. I put together a spreadsheet
time card that will total driver hours but overlooked if a driver goes over
40 hours in a week. I am trying to correct this without having to start all
over again. I need to return one of two values based on the total hours for
the week. If Total Hours is < 40, I need to return those hours as regular
hours, if the Total Hours is 40 I need to return 40.00 in one cell and the
remaining hour as overtime hours in another cell. I have tried several
different fomulas for this and can get it to work if the Total Hours are 40
but it won't work if they are < 40. I need a quick and dirty fix before we
put this into production this Wednesday.

Thanks.



  #6   Report Post  
Trevor Shuttleworth
 
Posts: n/a
Default

Are you looking for something like:

=IF(D1<=40,0,D1-40) if the total hours are in cell D1

or maybe:

=IF(D1<=40,"",D1-40)

Or have I missed something ?

Regards

Trevor


"dvonj" wrote in message
...
In my haste to show off what I created for my company I overlooked a minor
detail. A major one if any one else finds it. I put together a spreadsheet
time card that will total driver hours but overlooked if a driver goes
over
40 hours in a week. I am trying to correct this without having to start
all
over again. I need to return one of two values based on the total hours
for
the week. If Total Hours is < 40, I need to return those hours as regular
hours, if the Total Hours is 40 I need to return 40.00 in one cell and
the
remaining hour as overtime hours in another cell. I have tried several
different fomulas for this and can get it to work if the Total Hours are
40
but it won't work if they are < 40. I need a quick and dirty fix before we
put this into production this Wednesday.

Thanks.



  #7   Report Post  
dvonj
 
Posts: n/a
Default

Thanks for your help. After playing around with it for a couple of hours I
was able to make your formulas fit. Appreciate your help.

"Ken Wright" wrote:

=MIN(40,Your_formula) will return everything up to and including 40 hours

=MAX(0,Your_Formula-40) will return all hours over 40, or 0 if none.

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

----------------------------------------------------------------------------
It's easier to beg forgiveness than ask permission :-)
----------------------------------------------------------------------------

"dvonj" wrote in message
...
In my haste to show off what I created for my company I overlooked a minor
detail. A major one if any one else finds it. I put together a spreadsheet
time card that will total driver hours but overlooked if a driver goes

over
40 hours in a week. I am trying to correct this without having to start

all
over again. I need to return one of two values based on the total hours

for
the week. If Total Hours is < 40, I need to return those hours as regular
hours, if the Total Hours is 40 I need to return 40.00 in one cell and

the
remaining hour as overtime hours in another cell. I have tried several
different fomulas for this and can get it to work if the Total Hours are

40
but it won't work if they are < 40. I need a quick and dirty fix before we
put this into production this Wednesday.

Thanks.




  #8   Report Post  
Ken Wright
 
Posts: n/a
Default

LOL - When you get 5 answers that are virtually identical then you can feel
pretty safe that it's going to work :-)

--
Regards
Ken.......................

<snip


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
File not found prompting Emily Edgington Excel Worksheet Functions 0 March 3rd 05 03:41 PM
pmt function in Excel does not return correct monthly payment amou Harraman@Bangalore Excel Worksheet Functions 6 March 3rd 05 01:28 PM
move data/row when certain words are found in cell [email protected] Excel Discussion (Misc queries) 1 January 27th 05 10:31 PM
Link sources not found Brian Excel Worksheet Functions 2 December 9th 04 04:15 PM
Previous Post - Correct Syntax Query Clarence Crow Excel Worksheet Functions 0 December 7th 04 05:35 AM


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