Share via

SharePoint Online calculated column problem

Naqash Ahmed 1 Reputation point
2021-11-05T10:08:20.597+00:00

I have two Yes/No columns as below:

1st Dose
2nd Dose

And a third column Full Vaccincated with Choices (Vaccinated, Not Vaccinated)

I want to achieve below on 3rd columns

If the values of 1st Dose and 2nd Dose are YES, then third column should be Vaccinated otherwise Not Vaccinated

Please help in formula as i tried multiple attempts but failed

Microsoft 365 and Office | SharePoint | For business | Windows

1 answer

Sort by: Most helpful
  1. Elsie Lu_MSFT 9,806 Reputation points
    2021-11-08T03:02:36.29+00:00

    Hi @Naqash Ahmed , welcome to Q&A forum!

    Per my test, if you use Yes/No column, then the corresponding formula is True and False, like this:

    =IF(AND([1st Dose]=TRUE,[2nd Dose]=TRUE),"Vaccinated","Not Vaccinated")  
    

    Test Result:
    147173-110.png

    ============================

    If you are using Single line of text column, then you can use Yes/No, like this:

    =IF(AND([1st Dose]="YES",[2nd Dose]="YES"),"Vaccinated","Not Vaccinated")  
    

    Test Result:
    147080-111.png


    If the answer is helpful, please click "Accept 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.

    Was this answer helpful?

    1 person found this answer helpful.

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.