• 0

Excel Time Sheet - Bi-Monthly time calculating overtime...headache


Question

I'm building an Excel program to replace employees just using MS Word to submit time sheets. We are paid on the 15th and the last day of the month. Our time periods run from the 11th through 25th and 26th through 10th. Time sheets are due on the last day of the pay period.

I am working on an Excel which each employee will fill out (on a shared network drive). My goal is to have our HR person open a master time sheet that shows names of each employee and the hours for that pay period. No time calculations are needed; we just enter (in decimal format) how many hours we work each week.

I have built this program and it's quite complex, but I'm having some issues. Most pay periods have 15 days. Some have 14 and more have 16. This causes my totals to be off. I'm attaching the Excel 2007 file so you can see what I mean (that's the only way you'll be able to).

I'm open for recommendations, even a PHP-based timesheet app as long as it will allow users to just go in at the end of the pay period and enter all the time in (without IN/OUT times). We need it to be simple for EUs to enter.

Don't worry about how it looks; it'll be cleaned up (cols hidden, etc) when it's ready.

2 things I'm asking here: 1) How can I make it work the way I need to? 2) How do I build a master file that links and updates a multitude of these files?

Master_Timesheet_Template.zipFetching info...

8 answers to this question

Recommended Posts

  • 0

I think I found a solution using the sumif function. Give me 10 minutes and I will have something.

*Edit*

I did it.

I slitted the two period in two columns. I have not checked the overtime tough.

Master_Timesheet_Template.zipFetching info...

Edited by Lewism
  • 0

That is a very interesting approach. I'm pretty sure I can make it work with OT and everything else. Thanks a ton! I'll let you know if I get it working and post the full file in case anyone else needs to use the same kind of thing.

  • 0

The same thing could be done with the overtime since you will probably have the same problem. And later you can hide those columns.

As for the master file, Excel let you link files.

=[Test.xlsx]Sheet1!$B$3

Lets say you use this formula in "Master Template.xlsx", it will go pick the data of Cell B3 in Sheet1 in Test.xlsx.

To create a link easily, open the two files and type = and chose a cell on the other file.

However, you will have a do this for each file that you have in that directory. I believe it could be done with VBA to automate this.

  • 0

Okay, I'm stuck again. I'm wondering if this is too complex for Excel and I need to use Access or something.

I'm wondering about the OT/Sick/Vaca time calculation and the primary Payroll Hours calculation. If you look at the formula for Payroll Hours, you will see some SUM calculations are off their proper ranges. The 14/15/16 day periods is moving the ranges improperly. It's as if we need a dynamic cell range to calculate based on an IF statement.

Oi this is complicated.

Here's an updated/modified version

Master_Timesheet_Template_2.zipFetching info...

  • 0

I've added a column that places the word Begin and the word End in the row that begins and the row that ends the pay period. I've set the Payroll Hrs formula to something along these lines:

SUM(IF(D5="Begin",L5,IF(D6="Begin",L6,If(D7="Begin",L7,If(D8="Begin",L8,"")))):L21

It dynamically chooses the beginning of the range. It's kind of exactly what I was looking for, I'm just not sure it's perfect.

Master_Timesheet_Template_3.zipFetching info...

  • 0

SOLVED! I'm pretty sure I got everything working. The long and short of the answer is that you can use IF statements to specify a range.

Ex: SUM(IF(C1=5,C1,IF(C2=5,C2)):C10)

I'm pretty happy with the outcome. I appreciate all your help guys.

Also, if anyone is looking for this kind of spreadsheet, go ahead and use it. I don't want to see anyone selling it though :)

Also, I added a formula that simply applied the words "This Pay Period," "Next Pay Period," or "Last Pay Period" for easy filtering. Filter that column and view only entries from this pay period. Woot!

Master_Timesheet_Template_Final.zipFetching info...

  • 0

I now have a finished product. I have cleaned everything up and made it pretty and usable, as well as (more importantly) setting up the admin sheet that links to the individual files. I used VLOOKUP in that book to pull only the 4 fields (hours, OT, sick, vaca) based on a date that's in the Admin file. You'll obviously need to update the links in the Admin file to your filenames, as right now it comes up #N/A.

I'm uploading both files, unprotected, so you can learn from my 20 hour adventure.

Thanks to everyone for their help.

SemiMonthlyTimeSheet.zipFetching info...

  • 0
  ttam said:
I now have a finished product. I have cleaned everything up and made it pretty and usable, as well as (more importantly) setting up the admin sheet that links to the individual files. I used VLOOKUP in that book to pull only the 4 fields (hours, OT, sick, vaca) based on a date that's in the Admin file. You'll obviously need to update the links in the Admin file to your filenames, as right now it comes up #N/A.

I'm uploading both files, unprotected, so you can learn from my 20 hour adventure.

Thanks to everyone for their help.

How do I adjust it for a pay schedule that ranges from the first of the month to the 15th, and 16th to the end of the month?

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Just checked my B650 Motherboard again, nothing there as yet, Guess 800 series getting it first, which i can understand as that's newer series, and chipset. I'll check again in a few days or a week depending on how busy i am
    • Display Driver Uninstaller (DDU) 18.1.1.5 by Razvan Serea Display Driver Uninstaller (DDU) is a utility for completely removing AMD/NVIDIA/INTEL graphics drivers and related packages from your system, attempting to eliminate all leftovers (including registry entries, folders and files, driver store). Though AMD/NVIDIA/INTEL drivers can usually be removed via the Windows Control Panel, this uninstaller tool was created for situations where standard uninstall fails, or when you need to fully remove NVIDIA or ATI graphics card drivers. After using this driver cleaner, your system will behave as though it’s the first time you’re installing a new driver—similar to a fresh Windows installation. As with all such tools, we recommend creating a restore point beforehand, allowing you to undo changes if issues arise. If you're having trouble installing an older or newer driver, try it—there are reports that it resolves such problems. Recommended usage: The tool can be used in Normal mode but for absolute stability when using DDU, Safemode is always the best. Make a backup or a system restore (but it should normally be pretty safe). It is best to exclude the DDU folder completely from any security software to avoid issues. You do NOT need to uninstall the driver prior using DDU. Requirements: .NET Framework 4.8 Compatible with Windows 7, 8, 8.1, 10, and 11 (32-bit or 64-bit) Note: Using on Insider Preview builds is at your own risk. Display Driver Uninstaller (DDU) 18.1.1.5 changelog: Intel: Added NPU presence detection before removing shared DLL files (these were previously left to prevent potential NPU-related issues). Intel: Added optional NPU removal Improved "Extension" driver removal process. Updated several translations. Download: Display Driver Uninstaller 18.1.1.5 | 1.7 MB (Freeware) Download: DDU Portable | 1.2 MB Links: Display Driver Uninstaller Home Page | Screenshot | Forum Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • I just ordered a new MSI X870 board, hasn't even arrived yet. I checked the downloads page, and it has the firmware released on 6/11/2025 including the updated AGESA code.
    • There used to be an independent video game store in West Edmonton Mall around 20 years ago, I'm not sure when it went out of business, but they were selling console & PC games for $70±, I think it was so they could cover their rent!
  • Recent Achievements

    • Explorer
      Legend20 went up a rank
      Explorer
    • One Month Later
      jezzzy earned a badge
      One Month Later
    • First Post
      CSpera earned a badge
      First Post
    • One Month Later
      MIR JOHNNY BLAZE earned a badge
      One Month Later
    • Apprentice
      Wireless wookie went up a rank
      Apprentice
  • Popular Contributors

    1. 1
      +primortal
      624
    2. 2
      ATLien_0
      275
    3. 3
      +FloatingFatMan
      178
    4. 4
      Michael Scrip
      152
    5. 5
      Steven P.
      115
  • Tell a friend

    Love Neowin? Tell a friend!