+ Reply to Thread
Results 1 to 7 of 7

Thread: Validating hourly rates

  1. #1
    Registered User
    Join Date
    11-17-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    32

    Validating hourly rates

    Hi All,

    Please help me in creating a formula for this, I am not really good in creating formulas. . . =(
    I apologize before hand about the way I explain things. . . I might not be clear on some areas. . . . .

    I am planning to create a timekeeping spreadsheet, but I can't determine as to how am to validate the hours with night differential or hours w/o night differential.
    Is there a way to generate a formula on how to get this.

    Please help me. . . . . .


    Night differential hours: 11PM to 6AM


    See attached file for a much more clear image. .

    timekeeping.xlsx
    Last edited by city; 01-31-2012 at 12:39 PM. Reason: need to reopen post

  2. #2
    Valued Forum Contributor Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Excel 2007
    Posts
    685

    Re: Validating hourly rates

    I've put formulae in columns F and G of your table in the attached file.

    Hope this helps.

    Pete
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    11-17-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    32

    Re: Validating hourly rates

    WoW!! This has been haunting me! Thanks so so so much Pete_UK!

  4. #4
    Valued Forum Contributor Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Excel 2007
    Posts
    685

    Re: Validating hourly rates

    You're welcome - thanks for feeding back.

    Pete

  5. #5
    Registered User
    Join Date
    11-17-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    32

    Re: Validating hourly rates

    I apologize before hand. I tagged the thread as solved but I just have a few questions regarding the formula.

    Pete,

    Can I just ask something. I was kinda reviewing the formula. Honestly I don't understand it.

    Can I ask what "MOD(D3,1)" is for?? This is actually the first time i've seen this used.

    Please educate me on this.

  6. #6
    Valued Forum Contributor Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Excel 2007
    Posts
    685

    Re: Validating hourly rates

    MOD gives you the remainder after division, so in this case it returns the fractional part of D3. Dates are stored in Excel as the number of elapsed days since some starting point (1st Jan 1900), and times are stored as fractions of a 24-hour day, so the MOD function ensures that we are only looking at the time part of D3, ignoring any integer (day) values.

    Hope this helps.

    Pete

  7. #7
    Registered User
    Join Date
    11-17-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    32

    Re: Validating hourly rates

    Thanks for the Information Pete_UK. I reopened the thread again because I made some review on my own, but can't figure out some scenarions

    There are some scenarios that I tried in here that kinda caused some errors.. . .

    Row 3: I tried changing the time to 12AM and the date to the same one as the shift end's date. It caused G3 to be negative. (no formula changes)
    Row 4: I change the shift start and shift end to the same date and made some changes to forumla in g4, it did get the right result but whenever I change the date of shift start to 1/0/1900 with PM time output in G4 becomes #VALUE!


    See attched file

    ef20_timekeepingv2.xlsx

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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