You need to sign in to do that
Don't have an account?
Namgyal Schaaf
Keep getting errors with my nested if statement
Hey There, I'm trying to use a IF statement or a case statement and am having some trouble. I have a date field, and want to create a forumula field that creates a new date based on my criteria. Below is my formula:
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?
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?
Adaptation to your requirements is as follows:
I hope that "Salesforce_required_for_Go_Live__c" is a checkbox and Number_of_Subsidiaries__c is Number field with 0 decimal places.
Please make field name changes (if required) to suit your need.
If this solves your problem, please mark it as Best Answer
All Answers
Adaptation to your requirements is as follows:
I hope that "Salesforce_required_for_Go_Live__c" is a checkbox and Number_of_Subsidiaries__c is Number field with 0 decimal places.
Please make field name changes (if required) to suit your need.
If this solves your problem, please mark it as Best Answer