+ Reply to Thread
Results 1 to 11 of 11

Need help creating forumula for PTO accural

Hybrid View

  1. #1
    Registered User
    Join Date
    09-19-2016
    Location
    Ohio
    MS-Off Ver
    2010
    Posts
    5

    Need help creating forumula for PTO accural

    Hi Guys,

    I am a little rusty with my excel formula's and I need to create a spreadsheet that shows the PTO accrual of employees.

    Date of Hire C3
    Current Date = D3
    Years of Service = G3


    PTO
    1 year = 5 days
    3 years = 10 days
    6 years = 15 days
    10 years = 20 days

    I would appreciate any help with this!

  2. #2
    Forum Contributor
    Join Date
    10-30-2014
    Location
    England
    MS-Off Ver
    2007 / 365
    Posts
    281

    Re: Need help creating forumula for PTO accural

    Try...
    Formula: copy to clipboard
    =IF(G3<1,0,IF(G3>=10,20,IF(G3>=6,15,IF(G3>=3,10,5))))

  3. #3
    Registered User
    Join Date
    09-19-2016
    Location
    Ohio
    MS-Off Ver
    2010
    Posts
    5

    Re: Need help creating forumula for PTO accural

    It seemed to work for the first one, but when I drug it down, it shows them all having 20 days of PTO. Any suggestions? Thank you for the help!

  4. #4
    Forum Contributor
    Join Date
    10-30-2014
    Location
    England
    MS-Off Ver
    2007 / 365
    Posts
    281

    Re: Need help creating forumula for PTO accural

    It should work fine, so I'm going to assume that your 'Years of Service' column is formatted as 'Text' rather than 'Number' or 'General'.

    You can convert numbers stored has text several ways, see here.

    Finally, I noticed that I pasted a version of the formula I didn't intend to. What I have posted is fine and will work perfectly well, but the below is slightly rejigged to have all the outcomes in descending order...

    Formula: copy to clipboard
    =IF(A1>=10,20,IF(A1>=6,15,IF(A1>=3,10,IF(A1>=1,5,0))))

  5. #5
    Registered User
    Join Date
    09-19-2016
    Location
    Ohio
    MS-Off Ver
    2010
    Posts
    5

    Re: Need help creating forumula for PTO accural

    I have the years of service by formula which is : =DATEDIF(F3, G3,"y") & " years, " & DATEDIF(F3,G3,"ym") & " months"

    F3 is date of hire and G3 is the current date using the =today() formula.

    I'm wondering if that is why it is not working on my spreadsheet? I posted the last formula you provided and it gave me 5 rows of 20 years, then the rest show as zero's.

    I obviously need to take a refresher excel course. Thank you so much for your help!!

  6. #6
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,179

    Re: Need help creating forumula for PTO accural

    Try this ...

    =LOOKUP(DATEDIF(F3, G3,"y"),{0,1,3,6,10},{0,5,10,15,20})

  7. #7
    Registered User
    Join Date
    09-19-2016
    Location
    Ohio
    MS-Off Ver
    2010
    Posts
    5

    Re: Need help creating forumula for PTO accural

    Awesome!! Thank you all so much! This works. Now, I have 1 more question... I need to be able to give them data as to what they will be receiving in 2018, 2019, 2020, etc.

    How would I go about figuring that?

  8. #8
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,179

    Re: Need help creating forumula for PTO accural

    G3 is the current date using the =today() formula.
    Change =today()

    To = DATE(2018,1,1) etc

  9. #9
    Registered User
    Join Date
    09-19-2016
    Location
    Ohio
    MS-Off Ver
    2010
    Posts
    5

    Re: Need help creating forumula for PTO accural

    You're the best. Thank you very much! I am all set.

  10. #10
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,179

    Re: Need help creating forumula for PTO accural

    You're welcome!

  11. #11
    Forum Contributor
    Join Date
    10-30-2014
    Location
    England
    MS-Off Ver
    2007 / 365
    Posts
    281

    Re: Need help creating forumula for PTO accural

    Quote Originally Posted by AlliBlank View Post
    I have the years of service by formula which is : =DATEDIF(F3, G3,"y") & " years, " & DATEDIF(F3,G3,"ym") & " months"
    I see you're all set now, but just FYI, by appending the string " years" Excel can no longer see the numeric result on it's own, so it was unable to perform the calculation correctly.

+ 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. Daily Interest Accural Check - VBA Help
    By flyers8888 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-12-2016, 10:30 PM
  2. Creating a forumula to pick up values in other cells...
    By wench02 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-20-2015, 08:34 AM
  3. Replies: 6
    Last Post: 03-12-2014, 12:16 PM
  4. Calculating Vacation accural
    By kederyder in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-24-2012, 04:20 AM
  5. Maximum accural
    By Reddog101 in forum Excel General
    Replies: 1
    Last Post: 09-14-2010, 02:56 PM
  6. creating if forumula - with drop down menu
    By MarianCC in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-15-2007, 11:12 PM
  7. Creating a grade book (forumula issue)
    By phathead in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-10-2007, 11:03 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