+ Reply to Thread
Results 1 to 4 of 4

How to check 3 cells for specific values and return yes or no in 4th column?

  1. #1
    Registered User
    Join Date
    07-26-2010
    Location
    Hawaii
    MS-Off Ver
    Excel 2010
    Posts
    25

    How to check 3 cells for specific values and return yes or no in 4th column?

    I have four cells three of them will either be Yes or NA and the fourth will contain the formula to check for these two values. I'm getting mixed results with this last iteration or formulas I've tried.

    Criteria: All three cells Day, Evening, and Night need to be either "Yes" or "NA" to be "Yes" compliant but as you can see I'm getting mixed results in the table below.

    Please Login or Register  to view this content.
    Day Yes/NA Evening Yes/NA Night Yes/NA Compliant
    Yes NA Yes Yes
    NA Yes NA No
    Yes NA Yes

    Not sure how to get this figured out any help is appreciated, thanks.

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: How to check 3 cells for specific values and return yes or no in 4th column?

    Hi.

    First set data validation on all your cells to only accept Yes, NA and Blank.

    Then try this formula in D2

    =IF(COUNTBLANK(A2:C2)>0,"No","Yes")
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    MA, USA
    MS-Off Ver
    365(PC) V:2412
    Posts
    1,477

    Re: How to check 3 cells for specific values and return yes or no in 4th column?

    try;

    =IF(SUMPRODUCT((A2:C2="Yes")+(A2:C2="NA"))=3,"Yes","No")


    change cell references accordingly
    <----- If you are happy with your solution please click on the "* Add Reputation" as a way to say thank you.

  4. #4
    Registered User
    Join Date
    07-26-2010
    Location
    Hawaii
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: How to check 3 cells for specific values and return yes or no in 4th column?

    Quote Originally Posted by dosydos View Post
    try;

    =IF(SUMPRODUCT((A2:C2="Yes")+(A2:C2="NA"))=3,"Yes","No")


    change cell references accordingly
    This worked great thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Formula to check column and return multiple values
    By DutchieAMC in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 07-12-2019, 03:58 AM
  2. Replies: 4
    Last Post: 10-01-2015, 11:01 AM
  3. check the value of a cell in a range and return column values of that row
    By green369 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-11-2015, 07:11 AM
  4. check multiple cells for values and return another value
    By amazzei in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-07-2014, 01:50 PM
  5. possible to check for file in multiple folders, then check for values in specific cells?
    By mattheritage in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-04-2014, 08:33 AM
  6. [SOLVED] Check for values in a specific column
    By ks100 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 01-02-2014, 06:12 PM
  7. Macro button - check a column values and return msg box
    By jimjaix in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-18-2009, 04:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1