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

Too many picklist values for IF and ISPICKVAL ??
I tried creating the following formula, but I got an error message that said there were too many characters in my formula. I'm trying to use the CONTAINS function, but I'm losing my formula ... any help is appreciated.
IF(ISPICKVAL(Service_Type_del__c, "One-time"),
ABS((Cost__c * Probability) / 1),
IF(ISPICKVAL(Service_Type_del__c, "Yearly"),
ABS((Cost__c * Probability) / 1),
IF(ISPICKVAL(Service_Type_del__c, "Twice Yearly"),
ABS((Cost__c * Probability) / 2),
IF(ISPICKVAL(Service_Type_del__c, "Quarterly"),
ABS((Cost__c * Probability) / 4),
IF(ISPICKVAL(Service_Type_del__c, "Monthly"),
ABS((Cost__c * Probability) / 12),
IF(ISPICKVAL(Service_Type_del__c, "Twice Monthly"),
ABS((Cost__c * Probability) / 12),
IF(ISPICKVAL(Service_Type_del__c, "Weekly"),
ABS((Cost__c * Probability) / 12),
IF(ISPICKVAL(Service_Type_del__c, "Twice Weekly"),
ABS((Cost__c * Probability) / 12),
IF(ISPICKVAL(Service_Type_del__c, "Daily"),
ABS((Cost__c * Probability) / 12),
0
)))))))))
IF(ISPICKVAL(Service_Type_del__c, "One-time"),
ABS((Cost__c * Probability) / 1),
IF(ISPICKVAL(Service_Type_del__c, "Yearly"),
ABS((Cost__c * Probability) / 1),
IF(ISPICKVAL(Service_Type_del__c, "Twice Yearly"),
ABS((Cost__c * Probability) / 2),
IF(ISPICKVAL(Service_Type_del__c, "Quarterly"),
ABS((Cost__c * Probability) / 4),
IF(ISPICKVAL(Service_Type_del__c, "Monthly"),
ABS((Cost__c * Probability) / 12),
IF(ISPICKVAL(Service_Type_del__c, "Twice Monthly"),
ABS((Cost__c * Probability) / 12),
IF(ISPICKVAL(Service_Type_del__c, "Weekly"),
ABS((Cost__c * Probability) / 12),
IF(ISPICKVAL(Service_Type_del__c, "Twice Weekly"),
ABS((Cost__c * Probability) / 12),
IF(ISPICKVAL(Service_Type_del__c, "Daily"),
ABS((Cost__c * Probability) / 12),
0
)))))))))
like below Let us know if this will help you
I assume that the Cost__c field used is another formula field ? If so can you please post the formula for that field as well. The formula you posted is not big enough to exceed the character limit.
Yes, Cost__c is another formula field:
IF(ISPICKVAL(Margin__c , "60"),
ABS((Amount -(0.60 * Amount))),
IF(ISPICKVAL(Margin__c , "50"),
ABS((Amount -(0.50 * Amount))),
IF(ISPICKVAL(Margin__c , "40"),
ABS(( Amount -(0.40 * Amount))),
IF(ISPICKVAL(Margin__c , "45"),
ABS((Amount -(0.45 * Amount))),
IF(ISPICKVAL(Margin__c , "35"),
ABS((Amount -(0.35 * Amount))),
IF(ISPICKVAL(Margin__c , "30"),
ABS((Amount -(0.30 * Amount))),
0
))))))
I tried the case formula, but still got a similar error message: