ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Formatting a weekly time sheet (https://www.excelbanter.com/excel-worksheet-functions/212922-formatting-weekly-time-sheet.html)

Sparky

Formatting a weekly time sheet
 
I'm a newbie using excel 2003, and trying to format a weekly time sheet that
totals the hours worked for several different activities. I would like to
format two more cells labeled "regular hours" and "overtime hours" so that
the total of hours worked up to and including 40 hours appears in one, and
the total of hours worked over 40 appears in the other.
For example, J30 has the formula =SUM(J4:J29). When that total exceeds 40,
how do I format D32 to include the hours up to and including 40, and format
D34 to include everything over 40?

Chip Pearson

Formatting a weekly time sheet
 

The following formulas will give you regular hours and overtime hours
given a total number of hours in cell A1.

=MIN(A1,40)
will return the regular hours, up to a maximum of 40.

=MAX(0,A1-40)
will return the overtime hours. If A1<40, it returns 0.

Cordially,
Chip Pearson
Microsoft MVP
Excel Product Group
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)


On Mon, 8 Dec 2008 13:10:01 -0800, Sparky
wrote:

I'm a newbie using excel 2003, and trying to format a weekly time sheet that
totals the hours worked for several different activities. I would like to
format two more cells labeled "regular hours" and "overtime hours" so that
the total of hours worked up to and including 40 hours appears in one, and
the total of hours worked over 40 appears in the other.
For example, J30 has the formula =SUM(J4:J29). When that total exceeds 40,
how do I format D32 to include the hours up to and including 40, and format
D34 to include everything over 40?


Gord Dibben

Formatting a weekly time sheet
 
See Chip Pearson's site for setup and formulas for timesheets and overtime.

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


Gord Dibben MS Excel MVP

On Mon, 8 Dec 2008 13:10:01 -0800, Sparky
wrote:

I'm a newbie using excel 2003, and trying to format a weekly time sheet that
totals the hours worked for several different activities. I would like to
format two more cells labeled "regular hours" and "overtime hours" so that
the total of hours worked up to and including 40 hours appears in one, and
the total of hours worked over 40 appears in the other.
For example, J30 has the formula =SUM(J4:J29). When that total exceeds 40,
how do I format D32 to include the hours up to and including 40, and format
D34 to include everything over 40?




All times are GMT +1. The time now is 12:45 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com