+ Reply to Thread
Results 1 to 7 of 7

Wage spreadsheet for hours

  1. #1
    Registered User
    Join Date
    07-04-2019
    Location
    australia
    MS-Off Ver
    10
    Posts
    5

    Wage spreadsheet for hours

    Hi,
    I need help with a formula to add the various normal times and night hours between two times
    hours may vary a lot so needs to accommodate these differences.
    i have looked for formulas that may help without total success.
    looking for something easy to follow
    normal hrs are between 06:00 and 18:00
    night hours are from 18:00 to 06:00

    DAY DATE START TIME FINISH TIME DAY EVE/NIGHT
    06:00 to 18:00 18:00 to 06:00
    MONDAY 30-June-2014 15:00 23:00

    TUESDAY 01-July-2014 8:00 17:00

    WEDNESDAY 02-July-2014 23:00 8:00

    THURSDAY 03-July-2014 10:30 0:00
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Wage spreadsheet for hours

    Hello and welcome to the forum.

    E4:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    F4:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    G4:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    H4:
    Formula: copy to clipboard
    Please Login or Register  to view this content.



    Then copy down.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    07-04-2019
    Location
    australia
    MS-Off Ver
    10
    Posts
    5

    Re: Wage spreadsheet for hours

    it works well thank you, except when there are no hours, then it comes up with 12 in F column and ######## in the G column
    any ideas ?

  4. #4
    Registered User
    Join Date
    07-04-2019
    Location
    australia
    MS-Off Ver
    10
    Posts
    5

    Re: Wage spreadsheet for hours

    sorry to be a pain, there is one more little problem,
    if a shift starts at 23:00 and goes through to 08:00 in the morning, the 2 hours past 06:00 should show as 2 hrs of day shift- in the formula you gave it shows all as night hours.

    there must be a simpler way of working this out , even if there are extra columns to help

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464
    Ok. I’m away for the weekend but will take a look on Sunday night.

  6. #6
    Registered User
    Join Date
    07-04-2019
    Location
    australia
    MS-Off Ver
    10
    Posts
    5

    Re: Wage spreadsheet for hours

    Hi Richard, can you have a look at the problem when you can please

  7. #7
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,869

    Re: Wage spreadsheet for hours

    Try the following:
    E4 and down: =IF(OR(C4="",D4="",WEEKDAY(B4,2)>5),"",IF(D4>C4,MIN(D4,"18:00")-MAX(C4,"6:00"),SUM(MAX(0,"18:00"-C4),MAX(0,D4-"6:00"))))
    F4: and down: =IF(OR(C4="",D4="",WEEKDAY(B4,2)>5),"",D4+(D4<C4)-C4-E4)
    G4 and down: =IF(OR(C4="",D4="",WEEKDAY(B4,2)<>6),"",D4-C4+IF(D4<C4,1,0))
    H4 and down: =IF(OR(C4="",D4="",WEEKDAY(B4,2)<>7),"",D4-C4+IF(D4<C4,1,0))
    Note that the value in cell D10 will need to be changed from 1/1/1900 12:00 AM to just 12:00 AM (or zero)
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Wage Spreadsheet formula problem
    By Peter Jenkins in forum Excel General
    Replies: 1
    Last Post: 11-09-2015, 05:03 PM
  2. Replies: 5
    Last Post: 05-22-2015, 07:27 AM
  3. Drivers hours spreadsheet
    By fess in forum Excel General
    Replies: 5
    Last Post: 08-14-2008, 08:57 AM
  4. wage mulitplied by hours and minutes
    By tom in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-27-2006, 04:50 PM
  5. hours and minutes multiplied by wage
    By Tom in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-27-2006, 03:40 PM
  6. hours, minutes multiplied by wage
    By Tom in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-27-2006, 03:40 PM
  7. [SOLVED] Update Spreadsheet off hours
    By pepe in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-18-2005, 01:05 PM

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