You need to sign in to do that
Don't have an account?
Kathleen Munetz-Vasquez 3
Multi Select Picklist formula.
I have created a formula field for a Multi select picklist and the formula I wrote is not working the error reads "Error: Incorrect parameter type for operator '+'. Expected Number, received Text". I know it's because of the opportunity ID number but how else can I write this? Here's what the formula looks like:
IF(INCLUDES( Opportunity_Number__r.Grant_Opportunity_Type__c , "Appropriation"), "Appropriation" + BR(), null) +
IF(INCLUDES( Opportunity_Number__r.Grant_Opportunity_Type__c , "Brazil Market Entry Grant"), "Brazil Market Entry Grant" , + BR(), null) +
IF(INCLUDES( Opportunity_Number__r.Grant_Opportunity_Type__c , "DIG - Defense Infrastructure Grant"), "DIG - Defense Infrastructure Grant", + BR(), null) +
IF(INCLUDES( Opportunity_Number__r.Grant_Opportunity_Type__c , "DRG - Defense Reinvestment Grant"), "DRG - Defense Reinvestment Grant", + BR(), null) +
IF(INCLUDES( Opportunity_Number__r.Grant_Opportunity_Type__c , "DTF - Defense Task Force"), "DTF - Defense Task Force", + BR(), null) +
IF(INCLUDES( Opportunity_Number__r.Grant_Opportunity_Type__c , "FL Trade Grant"), "FL Trade Grant", + BR(), null) +
IF(INCLUDES( Opportunity_Number__r.Grant_Opportunity_Type__c , "Foreign International Offices"), "FSF Event Market Assistance", + BR(), null) +
IF(INCLUDES( Opportunity_Number__r.Grant_Opportunity_Type__c , "FSF Event Market Assistance"), "DIG - Defense Infrastructure Grant", + BR(), null) +
IF(INCLUDES( Opportunity_Number__r.Grant_Opportunity_Type__c , "FSF Major & Regional Grant Program"), "FSF Major & Regional Grant Program", + BR(), null) +
IF(INCLUDES( Opportunity_Number__r.Grant_Opportunity_Type__c , "General Services"), "General Services", + BR(), null) +
IF(INCLUDES( Opportunity_Number__r.Grant_Opportunity_Type__c , "Investment"), "Investment", + BR(), null) +
IF(INCLUDES( Opportunity_Number__r.Grant_Opportunity_Type__c , "Other Income"), "Other Income", + BR(), null) +
IF(INCLUDES( Opportunity_Number__r.Grant_Opportunity_Type__c , "PTE Grant"), "PTE Grant", + BR(), null) +
IF(INCLUDES( Opportunity_Number__r.Grant_Opportunity_Type__c , "Appropriation"), "Appropriation" + BR(), null) +
IF(INCLUDES( Opportunity_Number__r.Grant_Opportunity_Type__c , "Brazil Market Entry Grant"), "Brazil Market Entry Grant" , + BR(), null) +
IF(INCLUDES( Opportunity_Number__r.Grant_Opportunity_Type__c , "DIG - Defense Infrastructure Grant"), "DIG - Defense Infrastructure Grant", + BR(), null) +
IF(INCLUDES( Opportunity_Number__r.Grant_Opportunity_Type__c , "DRG - Defense Reinvestment Grant"), "DRG - Defense Reinvestment Grant", + BR(), null) +
IF(INCLUDES( Opportunity_Number__r.Grant_Opportunity_Type__c , "DTF - Defense Task Force"), "DTF - Defense Task Force", + BR(), null) +
IF(INCLUDES( Opportunity_Number__r.Grant_Opportunity_Type__c , "FL Trade Grant"), "FL Trade Grant", + BR(), null) +
IF(INCLUDES( Opportunity_Number__r.Grant_Opportunity_Type__c , "Foreign International Offices"), "FSF Event Market Assistance", + BR(), null) +
IF(INCLUDES( Opportunity_Number__r.Grant_Opportunity_Type__c , "FSF Event Market Assistance"), "DIG - Defense Infrastructure Grant", + BR(), null) +
IF(INCLUDES( Opportunity_Number__r.Grant_Opportunity_Type__c , "FSF Major & Regional Grant Program"), "FSF Major & Regional Grant Program", + BR(), null) +
IF(INCLUDES( Opportunity_Number__r.Grant_Opportunity_Type__c , "General Services"), "General Services", + BR(), null) +
IF(INCLUDES( Opportunity_Number__r.Grant_Opportunity_Type__c , "Investment"), "Investment", + BR(), null) +
IF(INCLUDES( Opportunity_Number__r.Grant_Opportunity_Type__c , "Other Income"), "Other Income", + BR(), null) +
IF(INCLUDES( Opportunity_Number__r.Grant_Opportunity_Type__c , "PTE Grant"), "PTE Grant", + BR(), null) +
There are just extra commas ( "Brazil Market Entry Grant" , + BR(), null) should be "Brazil Market Entry Grant" + BR(), "")
And an extra "+" at the end (useless).
Nothing serious, things will be better like below.
All Answers
There are just extra commas ( "Brazil Market Entry Grant" , + BR(), null) should be "Brazil Market Entry Grant" + BR(), "")
And an extra "+" at the end (useless).
Nothing serious, things will be better like below.
Thank you so much for your reply! This worked! YAY!