+ Reply to Thread
Results 1 to 6 of 6

IF statement based on multiple criteria

Hybrid View

  1. #1
    Registered User
    Join Date
    04-09-2014
    Location
    New Zealand
    MS-Off Ver
    Excel 2010
    Posts
    56

    IF statement based on multiple criteria

    Hi there

    I am trying to use the following formula [=IF(O11="YES","YES",IF(P11="","YES","")) ], which is obviously wrong, to return the result YES if O11 equals YES and P11 is blank, but return no result if both those conditions are not true.

    Can anybody help?

    Cheers

  2. #2
    Forum Contributor
    Join Date
    01-30-2013
    Location
    Wales
    MS-Off Ver
    Excel 2013
    Posts
    231

    Re: IF statement based on multiple criteria

    It's not obvious to me. The results you are describing are exactly what your formula determines. What result would you like?
    Click * below if this answer helped

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,578

    Re: IF statement based on multiple criteria

    =IF(O11="Yes","YES",IF(P11="","YES","")) works fine unless P11 is not blank - do you have a formula in P11, and if so, what is it and what result is it returning?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Valued Forum Contributor
    Join Date
    12-02-2012
    Location
    Melbourne, VIC
    MS-Off Ver
    Excel 2016
    Posts
    750

    Re: IF statement based on multiple criteria

    Try this
    Formula: copy to clipboard
    =if(and(O11="YES", P11=""),"YES","")

  5. #5
    Registered User
    Join Date
    04-09-2014
    Location
    New Zealand
    MS-Off Ver
    Excel 2010
    Posts
    56

    Re: IF statement based on multiple criteria

    Thanks Jewelsharma. That worked perfectly.

  6. #6
    Valued Forum Contributor
    Join Date
    12-02-2012
    Location
    Melbourne, VIC
    MS-Off Ver
    Excel 2016
    Posts
    750

    Re: IF statement based on multiple criteria

    Cheers mate. Happy to help!

+ 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] If statement based on multiple criteria
    By TomRet in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-24-2013, 11:11 AM
  2. Count statement wtih multiple criteria only showing results for one criteria
    By uhlabomber in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-17-2013, 02:47 PM
  3. [SOLVED] If statement that will look among multiple criteria and generate a statement
    By liz5818 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-01-2013, 04:12 PM
  4. [SOLVED] Need IF statement or Macro to make decision based on multiple criteria
    By weddica in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-25-2013, 03:30 PM
  5. [SOLVED] Nested IF statement to return a value based on multiple criteria
    By harrydnyc in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-27-2011, 11:45 AM

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