+ Reply to Thread
Results 1 to 9 of 9

Formula to Calculate Hours 40+ and Move to Another Column

  1. #1
    Registered User
    Join Date
    05-09-2017
    Location
    Alaska
    MS-Off Ver
    Office Professional Plus 2010
    Posts
    12

    Question Formula to Calculate Hours 40+ and Move to Another Column

    Please see the attached timesheet template. I am SO close to getting this right!

    The current template has hidden columns with formulas to calculate and round hours, but now I am stuck on the totals. Anything over 8 hours a day or 40 hours a week is considered overtime.

    I have everything over 8 hours a day going into overtime, but I can't quite to the formula for the 40+ hours. Once the hours hit 40 hours in a week, I need it to move ALL the remaining hours that week into the overtime column. I feel like this is simple and I've let it get inside my head. Please help!
    Attached Files Attached Files
    Last edited by Franchesca; 03-04-2020 at 06:17 PM.

  2. #2
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Formula to Calculate Hours 40+ and Move to Another Column

    for rows 14:20, col Q
    =IF(SUM($P$14:P14)<$W$10,MIN(8,P14),$W$10-SUM($Q$13:Q13))
    and down
    w10=40
    Attached Files Attached Files
    Last edited by tim201110; 03-04-2020 at 03:39 PM.

  3. #3
    Registered User
    Join Date
    05-09-2017
    Location
    Alaska
    MS-Off Ver
    Office Professional Plus 2010
    Posts
    12

    Re: Formula to Calculate Hours 40+ and Move to Another Column

    Hi tim201110, thanks for your help!

    I can't get this formula to work for me. It is zeroing out my "regular hours" total, without effecting my "OT Hours" column at all. It may be user error , but I am still stuck.

  4. #4
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Formula to Calculate Hours 40+ and Move to Another Column

    uploaded a wb in post #2

  5. #5
    Registered User
    Join Date
    05-09-2017
    Location
    Alaska
    MS-Off Ver
    Office Professional Plus 2010
    Posts
    12

    Re: Formula to Calculate Hours 40+ and Move to Another Column

    Got it! Thanks! I plugged in the formula and it's almost working. Midway through the second week, it puts 16 hours in the regular column instead of moving the excess 8 into the OT column. I've attached the file so you can see what I am trying to explain.
    Attached Files Attached Files

  6. #6
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Formula to Calculate Hours 40+ and Move to Another Column

    =if(sum($p$26:p26)<$w$10,min(8,p26),min(8,$w$10-sum($q$25:q25)))

  7. #7
    Registered User
    Join Date
    05-09-2017
    Location
    Alaska
    MS-Off Ver
    Office Professional Plus 2010
    Posts
    12

    Exclamation Re: Formula to Calculate Hours 40+ and Move to Another Column

    I used this formula, but now it is populating hours in days without time entered. Am I doing something wrong? Updated template is attached.
    Attached Files Attached Files

  8. #8
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Formula to Calculate Hours 40+ and Move to Another Column

    =if(p26=0,,if(sum($p$26:p26)<$w$10,min(8,p26),min(8,$w$10-sum($q$25:q25))))

  9. #9
    Registered User
    Join Date
    05-09-2017
    Location
    Alaska
    MS-Off Ver
    Office Professional Plus 2010
    Posts
    12

    Thumbs up Re: Formula to Calculate Hours 40+ and Move to Another Column

    The last modification looks like it's working! YOU ARE MY HERO!! Thank you SO MUCH for your help with this!
    Attached Files Attached Files

+ 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. [SOLVED] Formula to calculate hours worked w/lunch or w/o + OT column only total after 40 hours
    By blinhart in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-31-2023, 11:14 AM
  2. [SOLVED] Calculate Total Hours/Minutes between Min and Max Date in a column
    By paula.mccall in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-03-2020, 09:56 PM
  3. Replies: 14
    Last Post: 10-08-2014, 11:31 PM
  4. Formula to calculate regular hours and overtime hours
    By judojames in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-30-2014, 05:30 PM
  5. [SOLVED] Formula to Calculate Normal Hours, Time & 1/2 & Double Time from Daily Hours per week
    By KazzICC in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-17-2014, 01:51 AM
  6. [SOLVED] Calculate hours with predefined Working Hours and Weekend Hours
    By garciapliz in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-05-2013, 11:17 AM

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