excel if condition

ojmp2001 ojmp2001 121 Reputation points
2021-05-05T22:26:33.523+00:00

I have a column A1 that contains peoples first and last names. I want columnB1 to contain a yes or no based specific people's name e.g., if ColA1 contains names such as John or Jane or Susan then ColB1 will have Yes else No

Microsoft 365 and Office Excel For business Windows
0 comments No comments
{count} votes

Accepted answer
  1. Emily Hua-MSFT 27,796 Reputation points
    2021-05-06T08:08:31.673+00:00

    @ojmp2001 ojmp2001
    Please try to use Find function and Count function.

    For my simple sample, I use the formula =IF(COUNT(FIND({"John","Suasn","Jane"},A2)),"Yes","No"). More information, please refer to my screenshot below.

    94307-capture12.png


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    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

Your answer

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