+ Reply to Thread
Results 1 to 9 of 9

Returning a YES or NO based on the condition of multiple other cells

  1. #1
    Registered User
    Join Date
    09-03-2013
    Location
    Virginia
    MS-Off Ver
    Excel 2010
    Posts
    23

    Returning a YES or NO based on the condition of multiple other cells

    I need a formula to return the value "YES" in a cell if all of the following is true : L2= “YES”, P2= “YES”, Q2= “Complete”, S2= “YES”. Otherwise it should return the value "NO"
    Last edited by Coubs3; 04-01-2014 at 10:39 AM.

  2. #2
    Registered User
    Join Date
    09-24-2013
    Location
    Twin Cities, MN
    MS-Off Ver
    Excel 2010
    Posts
    91

    Re: Returning a YES or NO based on the condition of multiple other cells

    Try this:
    =IF(AND(L2=“YES”, P2=“YES”, Q2=“Complete”, S2=“YES”),"YES","NO")

  3. #3
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Returning a YES or NO based on the condition of multiple other cells

    May be this.........

    Please Login or Register  to view this content.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  4. #4
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Returning a YES or NO based on the condition of multiple other cells

    @ minnesotaart

    In your formula, there are extra spaces in the logical condition, so it will produce #Name? error.

  5. #5
    Registered User
    Join Date
    09-03-2013
    Location
    Virginia
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Returning a YES or NO based on the condition of multiple other cells

    I tried this in two different cells. The first cell has data validation set up in it so YES and NO are the only options with NO being the default value in there already. I received an error that says "The value you entered is not valid. A user has restricted values that can be entered into this cell."

    In the second cell there is no formatting or data validation applied to it and i received and "Invalid Name Error."

  6. #6
    Registered User
    Join Date
    09-24-2013
    Location
    Twin Cities, MN
    MS-Off Ver
    Excel 2010
    Posts
    91

    Re: Returning a YES or NO based on the condition of multiple other cells

    You are correct. I posted in a hurry...

  7. #7
    Registered User
    Join Date
    09-03-2013
    Location
    Virginia
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Returning a YES or NO based on the condition of multiple other cells

    =IF(AND(L2="Yes",P2="Yes",Q2="Complete",S2="Yes"),"Yes","No")

    Winner. Thanks!

  8. #8
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Returning a YES or NO based on the condition of multiple other cells

    slightly shorter
    =IF(L2&P2&Q2&S2="yesyescompleteyes","yes","no")
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  9. #9
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Returning a YES or NO based on the condition of multiple other cells

    Glad to help you. Thanks for the feedback.

+ 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. Excel Macro to insert two rows based on condition and copy and paste multiple cells
    By mannabhalo in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-13-2012, 12:56 PM
  2. Returning multiple values in multiple cells based upon one input
    By ccoonsk in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-14-2012, 10:01 AM
  3. [SOLVED] Filling multiple cells based on condition
    By Mickey400z in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-13-2012, 03:19 AM
  4. Replies: 2
    Last Post: 04-18-2012, 05:10 AM
  5. 2 condition lookup returning multiple values summed
    By MosesAtl in forum Excel General
    Replies: 14
    Last Post: 08-17-2010, 04:45 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