You need to sign in to do that
Don't have an account?
Mikey999
Need help with formula.
I have the following code.
IF(OR( Hunkeler_Opportunity__c, Mailing_Systems_Opportunity__c), 0.5, IF( Amount < 40000, 0, IF( Amount < 80000, 0.3, IF( Amount < 150000, 0.4, 0.5))))
As you know the first line says if this is a Hunkeler Opporuntiy or mailin.. then use the first fomula.. That was easy.. Now I have another field called billing_type_c that if this is set to Direct Sale then it should use the first calculation also. I just can't get the syntax right.. As you can tell I don't do this often at all .. So I greatly appreciate help.
Thanks!
IF(OR( Hunkeler_Opportunity__c, Mailing_Systems_Opportunity__c, ISPICKVAL(Billing_Type__c, "Direct Sale")), 0.5, IF( Amount < 40000, 0, IF( Amount < 80000, 0.3, IF( Amount < 150000, 0.4, 0.5))))
All Answers
Mike, I dint get what your requirement is but if its picklist then you can use ISPICKVAL(picklist_field, text_literal).
IF(ISPICKVAL(billing_type_c, "Direct Sale"), IF(OR( Hunkeler_Opportunity__c, Mailing_Systems_Opportunity__c), 0.5, IF( Amount < 40000, 0, IF( Amount < 80000, 0.3, IF( Amount < 150000, 0.4, 0.5)))), <what ever you want when billing_type_c<> "Direct Sale">)
IF(ISPICKVAL(billing_type_c, "Direct Sale"), IF(OR( Hunkeler_Opportunity__c, Mailing_Systems_Opportunity__c), 0.5, IF( Amount < 40000, 0, IF( Amount < 80000, 0.3, IF( Amount < 150000, 0.4, 0.5)))), <what ever you want when billing_type_c<> "Direct Sale">) ---< So would I put 0.5 here? then a close )?
So I tried this and the syntax is good b.. but it returns 0.. In the field.
IF(ISPICKVAL(Billing_Type__c, "Direct Sale"), IF(OR( Hunkeler_Opportunity__c, Mailing_Systems_Opportunity__c), 0.5, IF( Amount < 40000, 0, IF( Amount < 80000, 0.3, IF( Amount < 150000, 0.4, 0.5)))),0.5)
IF(OR( Hunkeler_Opportunity__c, Mailing_Systems_Opportunity__c, ISPICKVAL(Billing_Type__c, "Direct Sale")), 0.5, IF( Amount < 40000, 0, IF( Amount < 80000, 0.3, IF( Amount < 150000, 0.4, 0.5))))