+ Reply to Thread
Results 1 to 6 of 6

formula for summing time elapsed within a certain hours

  1. #1
    Registered User
    Join Date
    09-15-2012
    Location
    United States
    MS-Off Ver
    Excel 2011 for mac
    Posts
    3

    Angry formula for summing time elapsed within a certain hours

    I have researched websites to try and figure out formulas to assist me with this time card and have not had success. I am trying to assist our coworkers with a way to avoid loosing track of their pay and differentials.

    TimeCard.xlsx

    -I have laid out the basics for the spreadsheet but need any assistance with sorting out how to find elapsed time between clock in and clock out cells being that some may clock in at night and clock out the next morning and have them work with the next criteria as well?
    -How do I extract time ranges within these clock in and clock out cells to be then calculated into their respective time differential ranges?
    -Lastly how would I implement the other differentials like "weekends" and "holidays"?

    Any help is greatly appreciated
    Thanks
    Last edited by s.j.diaz323; 09-18-2012 at 02:50 PM. Reason: update file

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

    Re: Time card with differentials

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    Ben Van Johnson

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

    Re: formula for summing time elapsed within a certain hours

    You will have to decide how your log entries will be made. Either Date & time or just time only. It makes a difference. In your sample, you put the date/time in the formula itself. That's not the way.

  4. #4
    Registered User
    Join Date
    09-15-2012
    Location
    United States
    MS-Off Ver
    Excel 2011 for mac
    Posts
    3
    I thought I had to put a date in as well if the shift was overnight? is there a way for me to just put in times and it calculates itself?

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

    Re: formula for summing time elapsed within a certain hours

    If the shift only crosses over midnight once. Say from 22:00 Tuesday to 07:30 Wednesday, then something like:
    =B1+(1*(B1<A1))-A1 will work.
    If B1, the end time, is less than the start time, A1 then thats a midnight crossing. Since times in Excel are fractions of a day, always less than 1, adding 1 will add 24 hours to the off-time before subtracting the start time. It's exactly like borrowing in subtraction when the minuend is smaller than the subtrahend.

  6. #6
    Registered User
    Join Date
    09-15-2012
    Location
    United States
    MS-Off Ver
    Excel 2011 for mac
    Posts
    3

    Re: formula for summing time elapsed within a certain hours

    That formula works great on the time elapsed portion. Thanks so much protonLeah

    Now I am trying to figure out a way to extract the time frames throughout the day into their differential slots to calculate how many hours I worked within each time period and also calculate the differential in pay for that time frame.

    I've tried using the =SUMIF formula, but am not really sure if thats appropriate there.

+ 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