+ Reply to Thread
Results 1 to 4 of 4

Logic Formula trouble

  1. #1
    Registered User
    Join Date
    10-26-2009
    Location
    new york, new york
    MS-Off Ver
    Excel 2000
    Posts
    9

    Logic Formula trouble

    I'm a mediocre excel user and trying to acheive the following, but having a bit of difficulty. I am using a series of Ifs and SumIfs, but only able to achieve 2 of the 3 outcomes. Please help.

    Here is the scenario,I need to calculate unemployment for each employee in my company per pay period, capped at $8500 for the year. So I need a formula which will calculate it for each period and return one of the following results, 1) If current period unemployment plus all previous paid for the year is less than $8500, then return current period, 2) but if all amounts previously paid is less than 8500 but greater than 8500 when including current period, then return the difference of 8500 and all previously paid, therefore the sum now would be equal to 8500 3) sum of all previously paid is equal to 8500 then return 0.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Logic Formula trouble

    Hi,

    A little difficult to tell without seeing an actual example workbook, so if this is not what you want can you upload one? Also there seems an inconsistency in your 2) statement which is implying both a calculation and also an absolute result of 8500.

    However, assuming A1:L1 are the current year periods and I1 is the current period and J1:L1 are still empty.

    Please Login or Register  to view this content.
    [CODE]

    The only nuisance factor with this is that you need to change the I1 reference each new period. The way to avoid this is to hold the current period in another cell and use that to find the current period from a range of column period labels and build that into the formula so that it will work automatically for any current period. But you need to post an actual example to advise further.

    Rgds
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Logic Formula trouble

    If you have previous paid in A1 and current amount in B1

    =MAX(0,MIN(8500,A1+B1)-B1)

    Should return the value you want.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  4. #4
    Registered User
    Join Date
    10-26-2009
    Location
    new york, new york
    MS-Off Ver
    Excel 2000
    Posts
    9

    Re: Logic Formula trouble

    Thank you so very much! You nailed it!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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