Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
lee lee is offline
external usenet poster
 
Posts: 184
Default Formula for a time sheet

I want to make the cell show the sum of a group of cells but stop at 40. For
example, a row of 7 cells labeled Mon thru Sun. A seperate cell is progammed
to shw the sum of those cells however I want the max to be 40 and anything
over 40 be deverted to seperate cell marked for overtime.
--
Lee Davenport
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 430
Default Formula for a time sheet

You could use this formula to sum the hours.

=IF(SUM(A2:G2)40,40,SUM(A2:G2))

You could then put this formula in the cell where you want to show overtime
hours if any.

=IF(SUM(A2:G2)-400,SUM(A2:G2)-40,0)

(In the examples I have the day headings monday, tuesday etc at the top in
Row 1 and then the data starting in column 2)

"Lee" wrote:

I want to make the cell show the sum of a group of cells but stop at 40. For
example, a row of 7 cells labeled Mon thru Sun. A seperate cell is progammed
to shw the sum of those cells however I want the max to be 40 and anything
over 40 be deverted to seperate cell marked for overtime.
--
Lee Davenport

  #3   Report Post  
Posted to microsoft.public.excel.misc
Liz Liz is offline
external usenet poster
 
Posts: 8
Default Formula for a time sheet

Straight time
=IF(SUM(x)40,40,SUM(x)) where X is your cell range

Overtime
=IF(SUM(x)40,SUM(x)-40,0)

"Lee" wrote in message
...
I want to make the cell show the sum of a group of cells but stop at 40.
For
example, a row of 7 cells labeled Mon thru Sun. A seperate cell is
progammed
to shw the sum of those cells however I want the max to be 40 and anything
over 40 be deverted to seperate cell marked for overtime.
--
Lee Davenport



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,345
Default Formula for a time sheet

Lee,

For a Maximum of 40 try:

=MIN(40,SUM(B2:B8))

for the Overtime try:

=MAX(SUM(B2:B8)-40,0)

--
HTH

Sandy
In Perth, the ancient capital of Scotland


with @tiscali.co.uk


"Lee" wrote in message
...
I want to make the cell show the sum of a group of cells but stop at 40.
For
example, a row of 7 cells labeled Mon thru Sun. A seperate cell is
progammed
to shw the sum of those cells however I want the max to be 40 and anything
over 40 be deverted to seperate cell marked for overtime.
--
Lee Davenport



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
Is it possible? DakotaNJ Excel Worksheet Functions 25 September 18th 06 09:30 PM
Formula to deduct unpaid breaks in time sheet Rick Excel Discussion (Misc queries) 3 August 26th 05 11:53 PM
Excel formula for a time sheet HRMSN Excel Worksheet Functions 1 August 10th 05 03:07 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 07:48 PM
How do I set up a formula on a time sheet to calculate time in 1/. gschmid Excel Discussion (Misc queries) 2 January 18th 05 01:48 PM


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