+ Reply to Thread
Results 1 to 5 of 5

Thread: If statements

  1. #1
    Registered User
    Join Date
    04-01-2009
    Location
    usa
    MS-Off Ver
    Excel 2003
    Posts
    5

    If statements

    I have three cells
    A1 will be 25% or 0
    A2 will be 25% or 0
    A3 will be 50% or 0
    C1 the sum of A1,A2,A3
    I need to create a formula that calculates the sum of these percentages. Easy enough, BUT if A1 or A2 were to be 0 I need a 50% penalty to be applied.
    So if
    a1=0
    a2=25%
    a3=50%
    C1=25%
    But the penalty should not be applied more than once even if A1 & A2 are 0. If someone could help me on this that would be awesome. I am fairly fimilar with IF statements but this seems a little more complex than I can seem to come up with.

  2. #2
    Forum Moderator DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Suffolk, UK
    MS-Off Ver
    2002, 2007 & 2010
    Posts
    21,423

    Re: If statments

    Perhaps:

    =SUM(A1:A3)-IF(COUNTIF(A1:A2,0),50%,0)
    Thought it's not clear if you should cap result at 0% (ie via MAX) or if the 50% is in fact related to A3 (ie only add A3 if A1 & A2 are both other than zero)

  3. #3
    Registered User
    Join Date
    04-01-2009
    Location
    usa
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: If statments

    results:
    when A1:A3 should have been 100% it turned up 25%
    I am trying to track percent of bonus earned. There are 3 catagories to be met call them cat1 cat2 cat3 (discretionary). If cat1 or cat2 are missed then cat3 is automatically missed. cat1=25% cat2=25% cat3=50% This is what i am trying to represent in the formula above. Hopefully this helps

  4. #4
    Forum Moderator DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Suffolk, UK
    MS-Off Ver
    2002, 2007 & 2010
    Posts
    21,423

    Re: If statments

    Quote Originally Posted by fantom06
    when A1:A3 should have been 100% it turned up 25%
    The formula posted previously was based on the requirements outlined in post # 1.

    Quote Originally Posted by fantom06
    If cat1 or cat2 are missed then cat3 is automatically missed.
    If as it seems you're simply disregarding Cat3 when either Cat1 or Cat2 are 0 then:

    =SUM(A1:A2)+IF(COUNTIF(A1:A2,0)=0,A3)
    If you're still struggling I would suggest posting a sample file to better illustrate your requirements.

  5. #5
    Registered User
    Join Date
    04-01-2009
    Location
    usa
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: If statments

    thank you that did not solve my problem but i figured out what would what i did was made
    A3=IF(G16="True",IF(COUNTIF(A1:A2,0),0,0.5))
    Before it was =IF(G16="True","50%","0")
    then for C1 =A1+A2+A3
    Thanks for your help. I did not know about count if before.

+ 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.2.0