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.
Perhaps:
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)=SUM(A1:A3)-IF(COUNTIF(A1:A2,0),50%,0)
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
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
The formula posted previously was based on the requirements outlined in post # 1.Originally Posted by fantom06
If as it seems you're simply disregarding Cat3 when either Cat1 or Cat2 are 0 then:Originally Posted by fantom06
If you're still struggling I would suggest posting a sample file to better illustrate your requirements.=SUM(A1:A2)+IF(COUNTIF(A1:A2,0)=0,A3)
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
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.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks