You need to sign in to do that
Don't have an account?
Laura Longtine-Rosado
Formula Help, Picklists and Percentages
Trying to update a formula for a royalty calculation field, we've added a new option this field needs to account for.
1. Business Unit
2. Cover Type
I'm new to formuals and think (maybe) I setup a basic shell correctly. But it's giving me a syntex error - so now I'm hoping the experts here can help.
Here's what I did...
IF(
AND(
Business_Unit__c = '1',
ISPICKVAL( Cover_Type__c ,'Hardcover'),(0/100),IF(ISPICKVAL( Cover_Type__c ,'Paperback'),(0/100)
)
IF(
AND(
Business_Unit__c = '2',
ISPICKVAL( Cover_Type__c ,'Hardcover'),(0/100),IF(ISPICKVAL( Cover_Type__c ,'Paperback'),(0/100)
)
NULL))))
Thanks in advance for your help!!!
1. Business Unit
2. Cover Type
I'm new to formuals and think (maybe) I setup a basic shell correctly. But it's giving me a syntex error - so now I'm hoping the experts here can help.
Here's what I did...
IF(
AND(
Business_Unit__c = '1',
ISPICKVAL( Cover_Type__c ,'Hardcover'),(0/100),IF(ISPICKVAL( Cover_Type__c ,'Paperback'),(0/100)
)
IF(
AND(
Business_Unit__c = '2',
ISPICKVAL( Cover_Type__c ,'Hardcover'),(0/100),IF(ISPICKVAL( Cover_Type__c ,'Paperback'),(0/100)
)
NULL))))
Thanks in advance for your help!!!
Which works better will depend on the number of options in each list. Of the CASE options i would use the first as less repetitive use of the TEXT formula. But it will depend on whether there are just 2 Cover Types, in which case option 2 would be cleaner/clearer.
Regards
Andrew
I tried it with the options you presented and keep getting an error based on the business unit also being a picklist. Can I not use two picklists for the formula?
Business unit has several options, and covertype has two options.
Is there a different way I should do this formula?
IF(
AND(
Business_Unit__c = 'B1',
ISPICKVAL( Cover_Type__c ,'Hardcover')
),
(65/100),
IF(
AND(
Business_Unit__c = 'B1',
ISPICKVAL( Cover_Type__c, 'Paperback')
),
(15/100),
IF(
AND(
Business_Unit__c = 'B2',
ISPICKVAL( Cover_Type__c ,'Hardcover')
),
(65/100),
IF(
AND(
Business_Unit__c = 'B2',
ISPICKVAL( Cover_Type__c, 'Paperback')
),
(15/100),
IF(
AND(
Business_Unit__c = 'B3',
ISPICKVAL( Cover_Type__c ,'Hardcover')
),
(50/100),
IF(
AND(
Business_Unit__c = 'B3',
ISPICKVAL( Cover_Type__c, 'Paperback')
),
(15/100),
NULL
)
)
)
)))