Error in Calculated Column

Brass Contributor

I am trying to create a calculated column that populate a digit based on the content of another column.

I am getting an error with the following, what am I missing?

Intent: If Subscriber_Status equals "ACTIVE" or "CML DIGITAL" then default content of calculated column should be "1", if any other content should be "0".

Phishdawg_0-1707336478228.png

 

1 Reply

@Phishdawg Try using either of below formulas: 

 

=IF(ISBLANK([Subscriber_Status]),"",IF(OR([Subscriber_Status]="ACTIVE",[Subscriber_Status]="CML DIGITAL"),1,0))

 

OR 

 

=IF(OR([Subscriber_Status]="ACTIVE",[Subscriber_Status]="CML DIGITAL"),1,IF(OR([Subscriber_Status]="INACTIVE",[Subscriber_Status]="DELETED",[Subscriber_Status]="DOWNLOADING",[Subscriber_Status]="DIDN'T RETURN",[Subscriber_Status]="NO RESPONSE"),0,""))

 

Note:

  1. Sometimes comma( , ) does not work in formula (it is based on language or regional settings on your site). So in that case use semicolon( ; ) instead of comma( , ).
  2. Use correct display name of your SharePoint columns in above formula.
  3. Wrap column names inside [] if your column name has space in it. For example: [My Column Name].

Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.