You need to sign in to do that
Don't have an account?

IF(ProbabilityFW__c > 75, ProbabilityFW__c * Opportunity_Amount__c, Opportunity_Amount__c)
I have a custom formula field called forecast. My formula for it is: IF(ProbabilityFW__c > 75, ProbabilityFW__c * Opportunity_Amount__c, Opportunity_Amount__c)
What im trying to do is to say that IF my probability field (ProbabilityFW_c) is greater then 75% then the forecast field should show that probability times the Amount (Opportunity_Amount_c). IF the Probability is less then 75% i want the forecast field to equal the Amount (Opportunity_Amount_c).
The problem is that no matter what my (ProbabilityFW_c) equalls above 75% or below i still only get the Amount value and not Amount times Probability for above 75%.
I can not figure out what I am doing wrong.
Does adding ( ) around the True result help?
IF(ProbabilityFW__c > 75, (ProbabilityFW__c * Opportunity_Amount__c), Opportunity_Amount__c)
IF(ProbabilityFW__c > 0.75, ProbabilityFW__c * Opportunity_Amount__c, Opportunity_Amount__c)
Hopefully this does the trick!
Eric
This will work (using your field names of course).
IF( Probability__c >75/100, (Probability__c * Opportunity_Amount__c) , Opportunity_Amount__c )
I started playing with this in Excel and ultimately realized that percentage formatted fields actually take the entered value and multiply it by 100 (and add the % sign). Thus you need to divide 75 by 100 to compensate. This was tested in my test object and works.
Great learning experience - good luck!
100% = 100 / 100 = 1
90% = 90 / 100 = 0.9
15% = 15 / 100 = 0.15
The syntax error you encountered is because the formula parser requires a leading zero in front of the decimal point.
So if you you had used 0.75 instead of .75 in your formula, that would have worked.
Cheers,
Eric Bezar
force.com Platform Product Management