+ Reply to Thread
Results 1 to 4 of 4

formula to return # hrs after time a day/date condition

  1. #1
    Registered User
    Join Date
    08-24-2009
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    36

    Question formula to return # hrs after time a day/date condition

    Is there a way that i can populate an outcome that calculates the number of hours that fall within certain time frames dependant on the day of the week.

    IE.

    A1=0400 hrs
    A2=2230 hrs

    I need to calculate the number of hours that are in the range 6am to 6pm and 6pm to 6am and if those hours are more than 8, hrs 9 & 10 are reported in another colum, and more than 10 are reported inanother. Basically, you can only work 8 hors in any shift, and after that, the next 2 hours are at a different rate of pay, and the 3rd or more at another higher rate of pay.


    Doe this make sence?

    So for the above hour the report would look like this:

    Hrs between 6am-6pm = 12, 8 at ordinary time, 2 at next rate and 2 at the final rate
    Hrs between 6pm and 6am = 6.5hrs

    Then i hope it can identify whech hours are on which days, i.e. hours that fall within a saturday or sunday (after midnight) are reported. i.e

    A1= 16:00 (friday)
    A2= 06:00 (saturday)

    Hrs between 6am-6pm = 2, 2 at ordinary time, 0 at next rate and 0 at the final rate
    Hrs between 6pm and 6am = 6hrs x friday rates, 6 hrs saturday rates.
    Attached Files Attached Files
    Last edited by adhide; 08-30-2009 at 07:53 PM. Reason: heading

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: For those who like a challenge - formula to return # hrs after time condition

    Please post a sample workbook so that we don't have to try to create our own by copy/paste from a text file.
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    08-24-2009
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    36

    Re: formula to return # hrs after time a day/date condition

    example attached

    I got sooooo close yesterday with all of your help, then bam, i forgot the after midnight on sat or sun criteria.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    08-24-2009
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    36

    Re: formula to return # hrs after time a day/date condition

    Can anyone give me some guidance on the formulas i should look at to construct such a beast.

+ 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.6.0 RC 1