+ Reply to Thread
Results 1 to 10 of 10

Trouble with formula for calculating PTO, use SUMIF or maybe SUMIFS not sure

  1. #1
    Registered User
    Join Date
    03-19-2016
    Location
    Wisconsin
    MS-Off Ver
    2013
    Posts
    7

    Exclamation Trouble with formula for calculating PTO, use SUMIF or maybe SUMIFS not sure

    I know what I want to do I have gotten everything else I am just pulling a complete blank with the last PTO formula. I need help with a formula to show if the previous month pto is greater than carry over … take the difference and add to current month vacation
    AL14= previous months PTO V5= New PTO AL16= Current month pto L5= Carry over AM16=where this formula will go

    I am trying to do this in the PTO tracker sheet in the attached document, any help would be greatly appreciated!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,108

    Re: Trouble with formula for calculating PTO, use SUMIF or maybe SUMIFS not sure

    Hi,
    sorry for the ignorance - but what is PTO
    in addition - can you add manually the results you are expecting (in AM16 and down?)

  3. #3
    Registered User
    Join Date
    03-19-2016
    Location
    Wisconsin
    MS-Off Ver
    2013
    Posts
    7

    Re: Trouble with formula for calculating PTO, use SUMIF or maybe SUMIFS not sure

    PTO = Paid time off or vacation time... I would prefer to have a formula calculate it so i dont have to manually figure out the difference for 30+ employees
    it doesnt have to be a sumif or sumifs that was just kind of what i was thinking

  4. #4
    Registered User
    Join Date
    03-19-2016
    Location
    Wisconsin
    MS-Off Ver
    2013
    Posts
    7

    Re: Trouble with formula for calculating PTO, use SUMIF or maybe SUMIFS not sure

    Quote Originally Posted by belinda200 View Post
    Hi,
    sorry for the ignorance - but what is PTO
    in addition - can you add manually the results you are expecting (in AM16 and down?)
    PTO = Paid time off or vacation time... I would prefer to have a formula calculate it so i dont have to manually figure out the difference for 30+ employees
    it doesnt have to be a sumif or sumifs that was just kind of what i was thinking

  5. #5
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,108

    Re: Trouble with formula for calculating PTO, use SUMIF or maybe SUMIFS not sure

    of course you want a formula but in order to understand what you are trying to achieve - please input manually the results you are expecting to see. Your explanation seems very vague, and hard to follow, maybe a live result will clear the picture
    In addition - where is the "current month vacation"?

    what is the result you are expecting to see in AM16 for example? I see there is already a value there....is it incorrect?
    Last edited by Limor_OP; 11-17-2020 at 05:06 PM.

  6. #6
    Registered User
    Join Date
    03-19-2016
    Location
    Wisconsin
    MS-Off Ver
    2013
    Posts
    7

    Re: Trouble with formula for calculating PTO, use SUMIF or maybe SUMIFS not sure

    Quote Originally Posted by belinda200 View Post
    of course you want a formula but in order to understand what you are trying to achieve - please input manually the results you are expecting to see. Your explanation seems very vague, and hard to follow, maybe a live result will clear the picture
    In addition - where is the "current month vacation"?

    what is the result you are expecting to see in AM16 for example? I see there is already a value there....is it incorrect?
    the formula I am trying to fix is going into cell AM16 I need that formula to show "if the previous month pto (cell AL14) is greater than carry over (cell L5) … take the difference (anything over 16) and add to current month vacation (cell AL16)"

    how our vacation is tracked is that we can have up to 16 hours of vacation time that carries over from the previous year, but it has to be used in January only. cells L5, Q5, & V5 auto populate with the hours that each employee has for the year.

  7. #7
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,108

    Re: Trouble with formula for calculating PTO, use SUMIF or maybe SUMIFS not sure

    So the answer in AM16 should be zero?
    try this:
    =IF(AL14>$L$5,AL14-$L$5+AL16,0)

  8. #8
    Registered User
    Join Date
    03-19-2016
    Location
    Wisconsin
    MS-Off Ver
    2013
    Posts
    7

    Re: Trouble with formula for calculating PTO, use SUMIF or maybe SUMIFS not sure

    Quote Originally Posted by belinda200 View Post
    So the answer in AM16 should be zero?
    try this:
    =IF(AL14>$L$5,AL14-$L$5+AL16,0)
    No its never going to be a 0 value unless they don't take any vacation hours. I'm sorry I'm making this so confusing the value I need for cell AM16 is going to show =AL16+AM14 so that it subtracts all the vacation hours that they took in the current month off their total balance but without the carry over hours.

    So for an example employee 1 starts with 16 carry over hours 40 short notice hours and 80 PTO.
    In the month of January they took 32 PTO hours AL14 would show -32 and AM14 would show 64.
    Then in the month of February they only take 12 PTO hours so cell AL16 would show -12 and AM16 would then show a balance of 52 hours

    Essentially those 16 carry over hours just expire if they don't use them, but if they take vacation i need to show that if Januarys PTO is greater than the carry over take the amount that its over and add to Februarys current PTO to get the overall balance, but if Januarys PTO is less than the carry over you wouldn't be taking any hours off the balance

    I hope that makes sense

  9. #9
    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. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,483

    Re: Trouble with formula for calculating PTO, use SUMIF or maybe SUMIFS not sure

    Administrative Note:

    Please don't quote whole posts, especially when you are responding to the one immediately preceding your own - it's just clutter. It's OK to quote if you are responding to a post out of sequence, but limit quoted content to a few relevant lines that makes clear to whom and what you are responding. Thanks!

    For normal conversational replies, try using the QUICK REPLY box below or the REPLY button instead of REPLY WITH QUOTE.
    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.

  10. #10
    Registered User
    Join Date
    03-19-2016
    Location
    Wisconsin
    MS-Off Ver
    2013
    Posts
    7

    Re: Trouble with formula for calculating PTO, use SUMIF or maybe SUMIFS not sure

    The best possible thing i could come up with is this formula and i just want to make sure there isnt something more simple or to make sure this doesn't have errors

    =IF((AL14*-1)>L5,(((((AL14*-1)-L5)*-1)+AL16)+V5),(V5+AL16))

+ 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] Trouble with Sumifs + Offset + Match (or other formula that might do the trick)
    By Absalon in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-16-2017, 04:34 AM
  2. [SOLVED] SumIF formula giving me a bit of trouble.
    By AlieKat in forum Excel General
    Replies: 10
    Last Post: 09-26-2017, 03:05 PM
  3. [SOLVED] help with SUMIF, or SUMIFS formula
    By Trebor777 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-15-2017, 11:25 AM
  4. SUMIF or SUMIFS? or something else? - need formula help
    By rclough21 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-13-2016, 08:40 AM
  5. [SOLVED] Having trouble with my SUMIF formula.
    By LastKryptonian in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 07-21-2015, 04:51 PM
  6. Trouble with SUMIF formula on totals tab
    By hstiller in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-02-2014, 02:32 PM
  7. Having trouble with a sumifs formula
    By Carp in forum Excel - New Users/Basics
    Replies: 15
    Last Post: 10-01-2007, 09:32 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