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

Lead Scoring - I need formula help!
Hi there -
I'm new (really new!) to formula writing and need some help with a lead scoring formula.
What I want to achieve is this (in English): If the lead status is 'duplicate lead' or 'no potential' score the entire lead as zero. If the above does not apply and the email address contains 'yahoo,' 'gmail,' 'rr.com,' 'aol,' 'verizon,' 'pacbell' or 'att,' score the entire lead as '1.' If neither of the above apply, score the lead (see below).
Here's what I have so far which works for scoring the leads, but doesn't take the first two IF's into account - I need to move the last IF statement as it isn't working where it is.
Can someone help please?
CASE (LeadSource , "Advertising", 1, "Directory Listing (paid)", 3, "Directory Listing (unpaid)", 1, "Email", 4, "E Newsletter", 4, "Inbound Call MUC", 4, "Inside Sales", 1, "Other", 1, "Press Release", 1, "Rep Lead", 1, "Seminar / Conference", 3, "Technical Article", 2, "Top 10", 1, "Tradeshow", 4, "Web", 4, "Organic - Google", 4, "PPC - Google", 4, "Google AdWords", 3,0)+
CASE (Industry , "Solar Cells", 4, "Medical", 3, "Electronic Components", 3, "Automotive", 3, "Alternative Energy", 4, "Batteries", 4, "Aerospace", 3,0)+
IF( CONTAINS("yahoo:hotmail:gmail:rr.com:aol:verizon:pacbell:att", Email ) , 0, 2)
CASE (Industry , "Solar Cells", 4, "Medical", 3, "Electronic Components", 3, "Automotive", 3, "Alternative Energy", 4, "Batteries", 4, "Aerospace", 3,0)+
IF( CONTAINS("yahoo:hotmail:gmail:rr.com:aol:verizon:pacbell:att", Email ) , 0, 2)
Thanks!
Barbara
Message Edited by barbkuntz on 11-18-2008 11:47 AM
),
CASE (Industry , "Solar Cells", 4, "Medical", 3, "Electronic Components", 3, "Automotive", 3, "Alternative Energy", 4, "Batteries", 4, "Aerospace", 3,0)
Message Edited by AdminisaurusRex on 11-18-2008 12:19 PM
Message Edited by AdminisaurusRex on 11-18-2008 12:20 PM
ISPICKVAL ( LeadStatus , "Dup Lead" ) ,
ISPICKVAL ( LeadStatus , "No Potential" )
) ,
0) ,
IF( OR(
Contains (EMAIL, "yahoo" )
Contains (EMAIL, "hotmail" )
Contains (EMAIL, "gmail" )
Contains (EMAIL, "rr.com" )
Contains (EMAIL, "aol" )
Contains (EMAIL, "verizon" )
),
1) ,))
CASE (LeadSource , "Advertising", 1, "Directory Listing (paid)", 3, "Directory Listing (unpaid)", 1, "Email", 4, "E Newsletter", 4, "Inbound Call MUC", 4, "Inside Sales", 1, "Other", 1, "Press Release", 1, "Rep Lead", 1, "Seminar / Conference", 3, "Technical Article", 2, "Top 10", 1, "Tradeshow", 4, "Web", 4, "Organic - Google", 4, "PPC - Google", 4, "Google AdWords", 3,0) +
CASE (Industry , "Solar Cells", 4, "Medical", 3, "Electronic Components", 3, "Automotive", 3, "Alternative Energy", 4, "Batteries", 4, "Aerospace", 3,0)
)))
ISPICKVAL ( LeadStatus , "Dup Lead" ) ,
ISPICKVAL ( LeadStatus , "No Potential" )
) ,
0 ,
IF(
OR(
Contains (EMAIL, "yahoo" ) ,
Contains (EMAIL, "hotmail" ) ,
Contains (EMAIL, "gmail" ) ,
Contains (EMAIL, "rr.com" ) ,
Contains (EMAIL, "aol" ) ,
Contains (EMAIL, "verizon" )
) ,
1 ,
SUM(
CASE ( LeadSource ,
"Advertising", 1,
"Directory Listing (paid)", 3,
"Directory Listing (unpaid)", 1,
"Email", 4, "E Newsletter", 4,
"Inbound Call MUC", 4,
"Inside Sales", 1,
"Other", 1,
"Press Release", 1,
"Rep Lead", 1,
"Seminar / Conference", 3,
"Technical Article", 2,
"Top 10", 1,
"Tradeshow", 4,
"Web", 4,
"Organic - Google", 4,
"PPC - Google", 4,
"Google AdWords", 3,
0)
+
CASE (Industry ,
"Solar Cells", 4,
"Medical", 3,
"Electronic Components", 3,
"Automotive", 3,
"Alternative Energy", 4,
"Batteries", 4,
"Aerospace", 3,
0)
)
)
)
Message Edited by AdminisaurusRex on 11-18-2008 01:56 PM
ISPICKVAL ( LeadStatus , "Dup Lead" ) ,
ISPICKVAL ( LeadStatus , "No Potential" ) \\ < -- the condition to test\\
) \\ < -- closes the "OR"\\ ,
0 , \\ < -- puts "0" when condition for first IF is true\\
IF(
OR(
Contains (EMAIL, "yahoo" ) ,
Contains (EMAIL, "hotmail" ) ,
Contains (EMAIL, "gmail" ) ,
Contains (EMAIL, "rr.com" ) ,
Contains (EMAIL, "aol" ) ,
Contains (EMAIL, "verizon" ) \\ < -- the condition to test for when the first IF is false\\
) , \\ < -- closes the "OR" for the nested IF\\
1 , \\ < -- puts "1" when second nested IF is true \\
SUM(
CASE ( LeadSource ,
"Advertising", 1,
"Directory Listing (paid)", 3,
"Directory Listing (unpaid)", 1,
"Email", 4, "E Newsletter", 4,
"Inbound Call MUC", 4,
"Inside Sales", 1,
"Other", 1,
"Press Release", 1,
"Rep Lead", 1,
"Seminar / Conference", 3,
"Technical Article", 2,
"Top 10", 1,
"Tradeshow", 4,
"Web", 4,
"Organic - Google", 4,
"PPC - Google", 4,
"Google AdWords", 3,
0)
+
CASE (Industry ,
"Solar Cells", 4,
"Medical", 3,
"Electronic Components", 3,
"Automotive", 3,
"Alternative Energy", 4,
"Batteries", 4,
"Aerospace", 3,
0) \\ < -- performs this calculation if the second nested IF is false\\
) \\ < -- closes the "SUM"\\
) \\ < -- closes the nested "IF"\\
) \\ < -- closes the first "IF"\\
Thank you sooo much!
The only adjustment I had to make was to change the word "SUM" to "+" and it checked out - we're lead scoring now!
I love the Salesforce community!