+ Reply to Thread
Results 1 to 4 of 4

TimeSheet Project

  1. #1
    Registered User
    Join Date
    03-26-2017
    Location
    London
    MS-Off Ver
    13
    Posts
    2

    Lightbulb TimeSheet Project

    Hi

    Please help!!

    i am working on a timesheet project and I want the below formula to meet two conditions ie (1) check if finish time in cell J7 is greater than start time in cell M7 if true then add one day to finish time cell so that it calculates the night shift hours correctly. It also has to take away break which start K7 and finishes L7.
    (2) After multiplying the result by 24, it has to check if result set is greater than 10.5 hrs, as I want it to default to total shift hours of 10.5 and if this is more or less than 10.5 it has to be calculated as overtime/time owing displayed on another cell.
    I will eventually want if to use a third condition “isblank”; so that when there is not start time/finish time; the total hours cell stays empty not displaying “0” because of the formula.

    Many thanks


    =(IF(AND(J7>M7,M7+1-J7,K7-J7)+(M7-L7))*24>10.5, ((K7-J7)+(M7-L7))*24)

  2. #2
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,784

    Re: TimeSheet Project

    Don't know if this could be of use to you but formula like this “=MOD(stop_time-start_time,1) will always give the right time difference even if it passes midnight.

    Alf

  3. #3
    Registered User
    Join Date
    03-26-2017
    Location
    London
    MS-Off Ver
    13
    Posts
    2

    Re: TimeSheet Project

    Hi Alf

    That seem to have resolved my one side of the project. you're a star.

    many thanks

    Joe

  4. #4
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,784

    Re: TimeSheet Project

    You are welcome and thanks for feedback

    so that it calculates the night shift hours correctly
    What are the night shift hours, 22:00 to 06:00?

    Alf

+ 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. New timesheet project 2016
    By Raouf in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-26-2015, 08:21 AM
  2. Record time spent on project numbers accross a whole month timesheet.
    By stanners88 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-21-2014, 10:59 AM
  3. Copy multiple filtered datasets to unique new workbooks
    By Mathos in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 10-06-2014, 10:39 PM
  4. Replies: 1
    Last Post: 05-02-2014, 03:05 PM
  5. [SOLVED] Creating a timesheet for a charity project - forumla help :)
    By acather96 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-02-2012, 02:53 PM
  6. [SOLVED] Insert Blank Rows between sorted projects, Subtotal project to the right of final project.
    By ZAC7 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-07-2012, 04:08 AM
  7. Making a timesheet with project overview
    By ojohnsen in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-02-2010, 01:16 AM

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