+ Reply to Thread
Results 1 to 10 of 10

Formula for adding pto by hour - really new to this, please have patience

  1. #1
    Registered User
    Join Date
    09-08-2016
    Location
    Brooklyn Center, MN
    MS-Off Ver
    2010
    Posts
    23

    Formula for adding pto by hour - really new to this, please have patience

    I have a monthly calendar where I have counted the working weekdays with conditional formatting. I also have the total of hours that have been taken as sick time or vacation time. I would like to take those 2 cells and figure out what the hourly rate (.0962) accrual would be based on 8 hour days for a running total to current day.

    I thank you in advance for any help you can offer!

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,812

    Re: Formula for adding pto by hour - really new to this, please have patience

    Welcome to the forums! Please attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    09-08-2016
    Location
    Brooklyn Center, MN
    MS-Off Ver
    2010
    Posts
    23

    Re: Formula for adding pto by hour - really new to this, please have patience

    I have been trying to attach my file but nothing shows up in the attachment drop down. The file shows that is uploaded. What am I doing wrong?
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    09-08-2016
    Location
    Brooklyn Center, MN
    MS-Off Ver
    2010
    Posts
    23

    Re: Formula for adding pto by hour - really new to this, please have patience

    LOL Nevermind, still new to this.

  5. #5
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,557

    Re: Formula for adding pto by hour - really new to this, please have patience

    Try pasting the following formula in AH5 and then copy AH5 to AH11:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Let me 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.

  6. #6
    Registered User
    Join Date
    09-08-2016
    Location
    Brooklyn Center, MN
    MS-Off Ver
    2010
    Posts
    23

    Re: Formula for adding pto by hour - really new to this, please have patience

    I would never have been able to come up with that. I tried to deconstruct it and only some made sense.
    So, that being said, I re-read the comment for the total and I meant to say that I didn't want the -8 days counted. I removed that from the formula and I don't think that the total is correct.

    Thanks again for the help!
    Attached Files Attached Files

  7. #7
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,557

    Re: Formula for adding pto by hour - really new to this, please have patience

    Paste the following formula in AH5, then copy AH5 to AH11:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Note: the modified formula gives the exact amount expected for Feb, however it is not in agreement with the stated expected value for Jan. Watching the Evaluate Formula run for AH5 it seems to do what you want, counts 21 working days in the month then subtracts the 3 days for which a value of -8 is listed in row 5 meaning that it multiplies 18 days x 8 hours x .0962 accrual, yielding a total of 13.8528 leave hours earned for the month.
    Let me know if you have any questions.

  8. #8
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,557

    Re: Formula for adding pto by hour - really new to this, please have patience

    It occurred to me that the number of workdays in Jan excludes the 1st as it is a holiday. The following formula takes that into account and agrees with the expected results for both months:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Let me know if you have any questions.

  9. #9
    Registered User
    Join Date
    09-08-2016
    Location
    Brooklyn Center, MN
    MS-Off Ver
    2010
    Posts
    23

    Re: Formula for adding pto by hour - really new to this, please have patience

    Perfect!!! Thank you so much!

  10. #10
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,557

    Re: Formula for adding pto by hour - really new to this, please have patience

    You're Welcome and thank you for the feedback. Please take a moment to mark the thread 'Solved' using the thread tools link above your first post. I hope that you have a blessed day.

+ 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 convert 24 hour day to 8 hour (working) day?
    By miro2021 in forum Excel General
    Replies: 4
    Last Post: 07-31-2017, 10:06 AM
  2. Help please - patience is almost out.
    By ripnob in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-09-2014, 02:19 PM
  3. [SOLVED] Adding Hour Min and Second VBA functions and getting zero
    By monkey1184 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-23-2013, 01:05 PM
  4. extra hours adding money for each extra hour worked FORMULA
    By cynthiamcastro in forum Excel General
    Replies: 3
    Last Post: 06-18-2012, 11:27 AM
  5. Excel 2007 : Adding time - 15min + pay per hour
    By clblittle in forum Excel General
    Replies: 3
    Last Post: 02-12-2010, 09:22 AM
  6. 24 Hour Time Adding
    By gsandy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-05-2009, 03:20 PM
  7. adding 1 hour to input box
    By srroduin in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 04-13-2006, 04:40 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