+ Reply to Thread
Results 1 to 4 of 4

Thread: Can an Excel time sheet determine if a day is a holiday and calculate hours worked?

  1. #1
    Registered User
    Join Date
    01-15-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    2

    Can an Excel time sheet determine if a day is a holiday and calculate hours worked?

    Hi,

    We've recently changed the method by which we track our hours worked here where I am employed. I've created an Excel-based time sheet for our use at work to help keep the paperwork looking neat and help us in tracking this. It worked great until the recent holidays when a particular shortcoming was illustrated. On my supervisor's payroll sheet with which he keeps track of the types of hours we've worked and which he submits to our payroll department, it has cells indicating "holiday hours worked" and "holiday hours not worked". The one which I've created does not; this requires him to determine how many hours of each type an employee may have accrued over a pay period. He's asked that I modify the time sheet to include any hours someone may have worked at the higher Holiday Worked rate and an entry for hours someone may accrue through holidays in which they receive paid time off.

    What I need (and I'm not even sure if it's possible) is for the time sheet to check if a given date is one of our recognized holidays for which we'd be paid at a higher rate if we've actually worked it. Based on whether or not a given date is one of those holidays, it would calculate the hours worked and input that number in the proper cell (whether it be Regular Hours or Holiday (Worked)).

    Is this possible and, if so, can someone show me how it's done?

    I've attached a copy of the original sheet and the re-designed look I created to try to include the information he requires.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor Haseeb A's Avatar
    Join Date
    05-24-2011
    Location
    India | Kwt
    MS-Off Ver
    2007
    Posts
    1,453

    Re: Can an Excel time sheet determine if a day is a holiday and calculate hours worke

    Hello & welcome to the forum.

    For regular hours use,

    =IF(COUNTIF('Holiday Schedule'!$B$4:$B$30,B7),0,((B14-B12)+(B10-B8))*24)

    For Holiday hours,

    =IF(COUNTIF('Holiday Schedule'!$B$4:$B$30,B7),((B14-B12)+(B10-B8))*24,0)
    HTH; Haseeb

    If your problem is solved, please say so clearly, and mark your thread as Solved:
    Forum Rules & How to Mark a thread as SOLVED

  3. #3
    Registered User
    Join Date
    01-15-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Can an Excel time sheet determine if a day is a holiday and calculate hours worke

    That works great! Thanks for your help.

  4. #4
    Forum Guru, retired Admin royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    25,639

    Re: Can an Excel time sheet determine if a day is a holiday and calculate hours worke

    Your post does not comply with Rule 9 of our Forum RULES. If you solve a problem yourself before anyone else has responded, please take a moment to describe your solution, chances are some other member will benefit. And please never edit a thread in which someone else has responded.


    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save
    Hope that helps.

    RoyUK
    --------
    If you are pleased with a member's answer then use the Star icon to rate it, if you are pleased enough to part with cash consider a donation to Children in Need

    For Excel Tips & Solutions, free examples and tutorials why not check out my downloads

    New members please read & follow the Forum Rules

    Remember to mark your questions Solved and rate the answer(s)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.2.0