Question

I would like either entry in the Status column to return a blank text value. Right now "Assigned" is resulting in a "0".

=IF(Status="Discontinued","",(IF(Status="Assigned","",[ABB ID])))
Was it helpful?

Solution 3

Thanks to everyone's assistance I was able to achieve the exact desired result using:

=IF(Status="Discontinued","",(IF(Status="Assigned","",(IF(ISBLANK([ABB ID]),"",[ABB ID])))))

I can't thank you enough and I appreciate your patience as I attempted to stumbled through the details! Thanks again!!!

OTHER TIPS

Assuming you have additional choices besides "Discontinued" or "Assigned" for the column "Status", or you have empty values for the column “ABB ID”.

You can use the double quote mark "" anytime you want to return a blank text value in the calculated column, just add the additional conditions in the nested logic.

Here is an example:

=IF(ISBLANK([ABB ID]),"",
    IF(Status="Discontinued","",
        IF(Status="Assigned","",
            IF(Status="",[ABB ID])
        )
    )
)

UPDATE:

Since the formula in the other answer suits your need, I have modified it based on that one.

You can add another condition in the OR function so that it displays empty value when [ABB ID]= "":

=IF(AND(OR([Status]="Discontinued", [Status]="Assigned", [Status]="Available"),ISBLANK([ABB ID])), "", [ABB ID])

Note: You did not mention what value should return when [Status]="Available", so I put it in the condition same as the other two.

Try using below formula:

=IF(OR([Status]="Discontinued", [Status]="Assigned"), "", [ABB ID])

Microsoft Official References:

  1. Calculated Field Formulas
  2. OR function

Note:

  1. Return your calculated field as Single line of text (This setting is at the bottom of column settings page).

Updates from comments:

=IF(OR(ISBLANK([Status]), [Status]="Discontinued", [Status]="Assigned"), "", IF(ISBLANK([ABB ID]), "", [ABB ID])) 
Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top