Automatic Monthly Timesheet

Bongards

New Member
Joined
Apr 29, 2011
Messages
7
Dear Fellows,

I just joined this forum and found it so useful with great talents from member about MS Excel.

Hoping somebody can help me out with this problem that I struggled to figure out how to come up with formula to compute the monthly time sheet automatically. It's somehow complicated and I don't know if it's possible.

Calculation is based in daily regular hours work of 8 hours (by default minus 1 hr. for lunch break), so In -8:00AM; Out - 5:30PM should result 8 hrs. and 30 min.

The formula should calculate with the following conditions:

In excess of 8 hours multiplied by 1.5 (Mon-Fri), if less than 8, tardiness must be deducted)
Total hours work multiplied by 1.75 when the day falls on Sat & Sun
Total hours work multiplied by 2.0 when the day falls on Holidays

It should also deduct the total hours of tardiness, absence and unpaid leave.

To generate the monthly time sheet, it should total total hours, total over time, deduction for total tardiness, absence and unpaid leave.

Please, all ideas will be highly appreciate. I don't know how can I post the sample sheet itself to make it clear.


Regards,
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Hi, welcome to the board. It would help if you gave a general layout of your report. Employees in rows? Day 1 thru Day 31 in columns? Looks like you want to enter Start Time and Stop Time--where would these entries go? Don't know what "tardiness should be deducted" means exactly. Are you wanting one formula or several formulas? Might help to give a specific example, then it should be easy for somebody to come up with a formula(s) for you.
 
Upvote 0
Thank you Scott for replying. It is individual time sheet consists of:

Columns for:
Date (rows 1-31), Day, Time-In, Time-Out, Daily Total Hrs, Reg. Hrs (8 hr), Overtime (in excess of 8 hrs), Tardiness (less than 8 hrs work), Sick Leave, Absence, Unpaid Leave. (OT varies if particular date falls on weekend or holiday).

Result should display: Total Hours, Total OT
 
Upvote 0
Hi,

Welcome to MrExcel...

Is this something like you require?
I have had to split the worksheet in 2 so I can post a sample.....


Excel Workbook
ABCDEFGHIJKL
1DateDayTime-InTime-OutDaily Total HrsReg. Hrs (8 hr)OvertimeTardinessSick LeaveAbsenceUnpaid LeaveHoliday
201/04/2011Fri8:00 AM5:30 PM08:3008:0000:30*****
302/04/2011Sat**********
403/04/2011Sun**********
504/04/2011Mon8:00 AM6:00 PM09:0008:0001:00*****
605/04/2011Tue8:00 AM5:00 PM08:0008:0000:00*****
706/04/2011Wed8:00 AM4:00 PM07:00**Left early****
807/04/2011Thu8:00 AM7:00 PM10:0008:0002:00*****
908/04/2011Fri8:30 AM5:00 PM07:30**Started Late****
1009/04/2011Sat8:00 AM5:00 PM08:0000:0008:00*****
1110/04/2011Sun**********
1211/04/2011Mon8:15 AM5:00 PM07:45**Started Late****
1312/04/2011Tue8:00 AM4:00 PM07:00**Left early****
1413/04/2011Wed*********H
1514/04/2011Thu*******A**
1615/04/2011Fri******S***
Sheet1


And this.....


Excel Workbook
NOPQRS
1Total HoursTotal OT HrsStandard PayOT PayTotal Pay*
272:45:00*582.00***
3******
4Working DayLunchHourly RateOT WeekOT Sat/SunOT Holidays
508:0001:00$8.00$12.00$14.00$16.00
6Start Time*****
78:00 AM*****
8End Time*****
95:00 PM*****
10******
11Sick Leave1****
12Absence1****
13Unpaid Leave0****
14Holiday1****
Sheet1


You will need to set up some criteria somewhere, either on the same sheet, like my sample above or on a separate "criteria" sheet, you may also want to add a Summary sheet for the year, Absence, Holiday, Overtime etc.

The formulas in B4:H4 require copying down. You will also need formulas to work out the Overtime hours and pay, but I'm sure you will get assistance with that.

Here is a sample (VBA Free) workbook if the data above is like you require, you can then build on it.....

bongards.xls

I hope this helps get you started.
Good luck.

Ak
 
Upvote 0
Thank you very much Akashwani. This would help to get me some idea. Can you teach me how can I include a sample sheet here?

I really appreciate your response, it save me time as well as gain knowledge about it.
 
Upvote 0
Hi,

Take a look here......
http://www.mrexcel.com/forum/showthread.php?t=89356

You cannot attach a Workbook file on here, but you can post a snap shot of your worksheet using the HTML Maker.

Just a note regarding the file I supplied for you, it is NOT 100% as you will need, there are some formulas that need adding and some that will need changing.

You need to think of EVERY possibility when constructing your worksheet and formulas, otherwise, you will find that you will have to add new columns/formulas/formatting etc at a later date. So take your time and give the project plenty of thought.

Here's a new sample of criteria to show what I mean....

Excel Workbook
PQRSTU
1Total Reg HrsTotal OT HrsStandard PayOT PayMonthly PayMonthly Hours
272:45:003:30$582.00$42.00$624.0076:15:00
3******
4Working DayLunchHourly RateOT WeekOT Sat/SunOT Holidays
581$8.00$12.00$14.00$16.00
6Start Time*****
78:00 AM*****
8End Time*****
95:00 PM*****
10******
11Sick Leave1***Holiday Dates
12Absence1***17/01/2011
13Unpaid Leave0***21/02/2011
14Holiday1***30/05/2011
15*****04/07/2011
16OvertimeHoursPay**05/09/2011
17Week3:30$42.00**10/10/2011
18Sat0:00$0.00**11/11/2011
19Sun0:00$0.00**24/11/2011
20Holidays*$0.00**26/12/2011
21******
22This Month*****
23Weekdays21****
24Holiday Dates*****
April


The cells in red need formulas to count the number of public holidays.
How will you determine which hours overtime are weekdays, weekends, pubilc holidays? Example change to layout....


Excel Workbook
ABCDEFGHI
1DateDayTime-InTime-OutDaily Total HrsReg. Hrs (8 hr)Week OTW/E OTHoliday OT
201/04/2011Fri8:00 AM5:30 PM08:3008:0000:30**
302/04/2011Sat8:00 AM5:30 PM08:30**08:30*
April


The cells highlighted red require formulas for Weekend overtime and public holidays overtime.

I hope these tips give you plenty to think about :rofl:

Take a look here for some tips on Time....

http://www.youtube.com/user/ExcelIsFun#p/search/8/CtrFnGWqoGE
http://www.youtube.com/user/ExcelIsFun#p/search/11/IKLQpXseH0s
http://www.youtube.com/user/ExcelIsFun#p/search/12/yeXnDslp6xo


Good luck

Ak
 
Upvote 0
Hi,

It's not a problem, I've enjoyed trying to understand all of this myself.

Seeing as it's been quiet here and that you've been so polite and kind with your words, does this solve everything for you?....


Excel Workbook
ABCDEFGHIJKLMN
1DateDayTime-InTime-OutDaily Total HrsReg. Hrs (8 hr)Week OTW/E OTHoliday OTTardinessSick LeaveAbsenceUnpaid LeaveHoliday
201/04/2011Fri8:00 AM5:30 PM08:3008:0000:30*******
302/04/2011Sat8:00 AM5:30 PM08:30**8:30******
403/04/2011Sun************
504/04/2011Mon8:00 AM6:00 PM09:0008:0001:00*******
605/04/2011Tue8:00 AM5:00 PM08:0008:00********
706/04/2011Wed8:00 AM4:00 PM07:0007:00***Left early****
807/04/2011Thu8:00 AM7:00 PM10:0008:0002:00*******
908/04/2011Fri8:30 AM5:00 PM07:3007:30***Started Late****
1009/04/2011Sat8:00 AM5:00 PM08:00**8:00******
1110/04/2011Sun************
1211/04/2011Mon8:15 AM5:00 PM07:4507:45***Started Late****
1312/04/2011Tue8:00 AM4:00 PM07:0007:00***Left early****
1413/04/2011Wed***********H
1514/04/2011Thu*********A**
1615/04/2011Fri********S***
April


And of course your criteria and summary....


Excel Workbook
PQRSTU
1Total Reg HrsTotal OT HrsStandard PayOT PayMonthly PayMonthly Hours
281:15:0020:00$650.00$273.00$923.00101:15:00
3******
4Working DayLunchHourly RateOT WeekOT Sat/SunOT Holidays
581$8.00$12.00$14.00$16.00
6Start Time*****
78:00 AM*****
8End Time*****
95:00 PM*****
10******
11Sick Leave1***HolidayDates
12Absence1***17/01/2011
13Unpaid Leave0***21/02/2011
14Holiday1***30/05/2011
15*****04/07/2011
16OvertimeHoursPay**05/09/2011
17Week3:30$42.00**10/10/2011
18Sat16:30$231.00**11/11/2011
19Sun0:00$0.00**24/11/2011
20Holidays0:00$0.00**26/12/2011
21******
22This Month*****
23Weekdays21****
24Weekend Days9****
25Holiday Dates0****
April



And of course the actual file....


bongards.xls


The file has been protected without a password ;)

Good luck with your project.

It's been a pleasure.

Ak
 
Upvote 0
Akashwani,

This timesheet you posted is a perfectly timed masterpiece. I just so happened to be looking for exactly this solution... or almost. So far I have made only one change to your sheet, namely the equation in the E column:
=IF(D2="","",(D2-C2+(D2<C2))-$Q$5)

I did this to compensate for late shifts that might go past midnight.

Also, cell P2 is slightly incorrect if I understand things correctly. Shouldn't it be the sum of column F rather than E?

The rest I am trying to wrap my head around so that I can perform a slightly more complex modification to suit my needs. Where I am located we calculate the overtime rates based on the time of day, rather than the hours in excess of a specific amount of time.
i.e.
8am - 5pm : regular rate
5pm - 8am : regular rate x multiplier1
the whole of the weekend (midnight friday to 8am monday) : regular rate x multiplier2
holidays : regular rate x multiplier3

The typical shift then runs from 8am-4pm, 4pm-midnight, and midnight-8am. This means that the first hour of the shift comes in at a different rate.

Could I appeal to your skills and perhaps get a few tips on how to breakup the hours in a day to apply different rates to each timespan? I really like your method of putting data into criteria, it makes for a much more flexible sheet. In fact, the timespans I list above are likely to change depending on the union specifications for each employee.

Thank you.
M.
 
Upvote 0
Hi M

Yes, the value in P2 is the sum of all regular hours, that should have been changed after I started calculating OT hours, embarrassing eh :rofl:

I'm not sure if I'm the best person to help you, but thanks for your kind words.
You may want to start a new thread and post a sample of your data with a clear explanation of what you want to do etc. You may need to set up a table of your shift patterns and hourly rates so that you can refer to them in your formulas, eg.....

Excel Workbook
EFGHI
1Start TimeEnd TimeNo HoursHourly rates
218:00 AM5:00 PM9:00$8.00
325:00 PM8:00 AM15:00
4312:00 AM8:00 AM8:00$16.00
54Holidays$24.00
Criteria



Take a look here....
http://www.youtube.com/user/ExcelIsFun#p/search/8/CtrFnGWqoGE
http://www.youtube.com/user/ExcelIsFun#p/search/14/IKLQpXseH0s
If this videos don't help, type hours or time into the search box.

I'm sorry that I couldn't have been of more help to you M, I look forward to seeing your new post.

Good luck.

Ak
 
Upvote 0

Forum statistics

Threads
1,224,587
Messages
6,179,735
Members
452,939
Latest member
WCrawford

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top