You need to sign in to do that
Don't have an account?
Wayne Gladman
Creating a Lead Scoring formula field based on age
Hello, I'm trying to build a lead scoring formula based on age of a lead
I've created the below formula but am getting the error: Incorrect parameter type for function 'IF()'. Expected Text, received Number. (I've tried this as a CASE formula and got a syntax error highlighting <=)
IF(Lead_Age__c,<=5 and >=0,"10",
IF(Lead_Age__c,<=10 and >=6,"6",
IF(Lead_Age__c,<=35 and >=11,"9",
IF(Lead_Age__c,<=60 and >=36,"4",
IF(Lead_Age__c,<=90 and >=61,"2",
IF(Lead_Age__c,>=91,"8",
null))))))
Basically the formula is meant to say for the first line for instance if the lead age is between (or equal) 0-5 then the score will be 10.
Not sure why an IF formula can't produce a number so any help would be appreciated.
Thanks,
I've created the below formula but am getting the error: Incorrect parameter type for function 'IF()'. Expected Text, received Number. (I've tried this as a CASE formula and got a syntax error highlighting <=)
IF(Lead_Age__c,<=5 and >=0,"10",
IF(Lead_Age__c,<=10 and >=6,"6",
IF(Lead_Age__c,<=35 and >=11,"9",
IF(Lead_Age__c,<=60 and >=36,"4",
IF(Lead_Age__c,<=90 and >=61,"2",
IF(Lead_Age__c,>=91,"8",
null))))))
Basically the formula is meant to say for the first line for instance if the lead age is between (or equal) 0-5 then the score will be 10.
Not sure why an IF formula can't produce a number so any help would be appreciated.
Thanks,
Hi Wayne Gladman,
Try this formula,
If this helps,please mark it as best answer
Thanks.
All Answers
Hi Wayne Gladman,
Try this formula,
If this helps,please mark it as best answer
Thanks.
Can you please check your formula return type,Instead of number you have taken text. Use the below formula