You need to sign in to do that
Don't have an account?
Michael Bresloff 7
How to do multiple if else statements in a formula field
Hi all - forgive the "noob" question
I have a picklist on my Contracts object, and the possible values are: 'contract type a', 'contract type b, 'contract type n', etc.... I want to setup a formula field where, If 'contract type a' is selected, then the value of the formula field is "x". If 'contract type b' is selected, then the value should be 'y', so on and so forth. If no value is selected, it should be '0'.
I can get one If else to work, but am having trouble adding in the other conditions. Any help is much appreciated!
I have a picklist on my Contracts object, and the possible values are: 'contract type a', 'contract type b, 'contract type n', etc.... I want to setup a formula field where, If 'contract type a' is selected, then the value of the formula field is "x". If 'contract type b' is selected, then the value should be 'y', so on and so forth. If no value is selected, it should be '0'.
I can get one If else to work, but am having trouble adding in the other conditions. Any help is much appreciated!
AAA,BBB,CCC are values that would returned be based on picklist filedvalues (value1, value2, value3, etc)
Close the conditions with equal no of round braces.
Hit LIKE if this helps, Select it as BEST ANSWER if it solves your problem.
Thanks,
Parker
IF(AND(ISPICKVAL(ERP__c,"QBO"), Salesforce_required_for_Go_Live__c = FALSE),Opportunity_Close_Date__c + 10 + Number_of_Subsidiaries__c,
IF(AND (ISPICKVAL(ERP__c,"QBO"), Salesforce_required_for_Go_Live__c = TRUE), Opportunity_Close_Date__c + 19 + Number_of_Subsidiaries__c),
IF(AND (ISPICKVAL(ERP__c,"INTACCT"), Salesforce_required_for_Go_Live__c = FALSE), Opportunity_Close_Date__c + 18 + Number_of_Subsidiaries__c*3),
IF(AND (ISPICKVAL(ERP__c,"INTACCT"), Salesforce_required_for_Go_Live__c = TRUE), Opportunity_Close_Date__c + 27 + Number_of_Subsidiaries__c*3),
NULL)
Error is: Error: Incorrect number of parameters for function 'IF()'. Expected 3, received 2
Any thoughts?
i tried doing this, but i am getting an unknown syntax error. does anyone know whats going on? I am trying to populate a product code (number) from user input of product (name).
IF(ISPICKVAL(Z_Product__c, “Dental Office”), 55),
IF(ISPICKVAL(Z_Product__c, “Pre-Sold”), 167),
IF(ISPICKVAL(Z_Product__c, “One Time Close”), 2287)
IF(ISPICKVAL(Z_Product__c, “Dental Office”), 55),
IF(ISPICKVAL(Z_Product__c, “Pre-Sold”), 167),
IF(ISPICKVAL(Z_Product__c, “One Time Close”), 2287),
NULL)
If Deal Stage = Preliminary and (Payment Terms = Null AND Line Item Count = 0) then P = 0%
OR
If Deal Stage = Preliminary and (Payment Terms = Null OR Line Item Count = 0) then P = 0%,
else
If Deal Stage = Preliminary and (Payment Terms <> Null AND Line Item Count > 0) then P = 5%,
SBQQ__PaymentTerms__c----> picklist
If Deal Stage = Technical Validation AND If tech approval status(D) <> Approved, then P = 20%
OR
CPQ_Technical_Review_Status__c-->>picklist
CPQ_CBS_Technology__c----> picklist
If Deal Stage = Technical Validation AND If Technology is NULL then P = 20%
else
IF If Deal Stage = Technical Validation, then P = 25%
IF( AND(ISPICKVAL(Deal_Stage__c ,"Preliminary") , AND(ISPICKVAL(SBQQ__PaymentTerms__c, "") , SBQQ__LineItemCount__c = 0 ) ),
0, IF(OR(ISPICKVAL(Deal_Stage__c, "Preliminary"), OR(ISPICKVAL(SBQQ__PaymentTerms__c, ""), SBQQ__LineItemCount__c = 0)),0,IF( ISPICKVAL(Deal_Stage__c ,"Preliminary") && !ISPICKVAL(SBQQ__PaymentTerms__c, "") && SBQQ__LineItemCount__c> 0,0.5,IF(ISPICKVAL(Deal_Stage__c, "Technical Validation") && !ISPICKVAL(CPQ_Technical_Review_Status__c, "Approved"), 0,0.2))))