SharePoint List multiple conditional formula using IF and OR

OESteve 20 Reputation points
2024-06-21T08:08:02.07+00:00

Is it possible to base a SharePoint List field's conditional format on multiple columns rather than just one? For example, can I make the field display if Column 1 OR Column 2 OR Column 3 equals Yes? Any advice or guidance on how to accomplish this would be greatly appreciated.

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,204 questions
0 comments No comments
{count} votes

Accepted answer
  1. Haoyan Xue_MSFT 21,986 Reputation points Microsoft Vendor
    2024-06-24T01:54:21.14+00:00

    Hi @OESteve ,

    Certainly! You can create a conditional formula in SharePoint that evaluates multiple columns. To achieve this, you’ll use the function along with logical operators like . Let’s say you want to display a field if either Column 1, Column 2, or Column 3 equals “Yes.”

    Here’s how you can do it:

    1. Create a new calculated column in your SharePoint list.
    2. In the formula for the calculated column, use the following syntax:
         =IF(OR([Column1]="Yes", [Column2]="Yes", [Column3]="Yes"), "Show", "Hide")
      
    3. The formula checks if any of these columns equals “Yes.” If true, it displays “Show”; otherwise, it shows “Hide.”

    If the answer is helpful, please click "Accept as Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful