Skip to main content
I need to create a formula based on 2 fields. one is MCP__c and the other is INV__c. My Formula should output the following:

 

IF INV__c AND MCP__c ="" then field= No MCP or INV

 

IF INV__c ≠ "" AND MCP__c ="" then field = Has MCP no INV

 

IF INV__c ="" AND MCP__c ≠"" then field = Has INV no MCP

 

IF INV__c AND MCP__c ≠"" then field = Has both MCP and INV

 

Ideas?
4 件の回答
  1. 2016年2月12日 2:02
    Cory, your formula field will have to be of type Text

    and should have the following formula:

    IF(

    AND(

    ISBLANK(INV__c),

    ISBLANK(MCP__c)

    ), "No MCP or INV",

    IF(

    AND(

    NOT(ISBLANK(INV__c)),

    ISBLANK(MCP__c)

    ), "Has INV no MCP",

    IF(

    AND(

    ISBLANK(INV__c),

    NOT(ISBLANK(MCP__c))

    ), "Has MCP no INV",

    IF(

    AND(

    NOT(ISBLANK(INV__c)),

    NOT(ISBLANK(MCP__c))

    ), "Has both MCP and INV", NULL

    )

      )

    )

    )

     

     
0/9000