+ Reply to Thread
Results 1 to 5 of 5

nested if formula

  1. #1
    Registered User
    Join Date
    12-22-2014
    Location
    Australia
    MS-Off Ver
    2016
    Posts
    89

    nested if formula

    Hi,

    Hoping someone can help.

    In the attached file i have worked out part of the result that I want.
    Next i am trying to do is if there is Chelsea in column A only then show a result(Yes/No) in column O otherwise blank cell.
    I tried a IF statement out side the existing IF but then excel is showing all result as blank even if there is Chelsea in Column A.

    Thanks in advance
    Attached Files Attached Files

  2. #2
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: nested if formula

    It's because there is no match with Chelsea. Why? Because column A contains leading and trailing spaces. To get round it, try this:

    =IF(TRIM(A2)<>"Chelsea","",IF(AND(COUNTIF(C2:N2,"X")=1,N2="x"),"Yes","No"))
    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.

  3. #3
    Registered User
    Join Date
    12-22-2014
    Location
    Australia
    MS-Off Ver
    2016
    Posts
    89

    Re: nested if formula

    Thanks a lot. I never thought about that.

  4. #4
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: nested if formula

    It's something that catches a lot of people out. If you ever suspect it might be happening, you can check that the length of the cell matches the number of characters you see using this:

    =LEN(A1)

    Ideally you should clean up the source data and get rid of those spaces. Spaces often appear when data is copied in from an external source.

  5. #5
    Registered User
    Join Date
    12-22-2014
    Location
    Australia
    MS-Off Ver
    2016
    Posts
    89

    Re: nested if formula

    Hi,

    Thanks for your help. I am trying to get a different result for the same data.
    1. Show a result in Column O only if there is Chelsea in Column A. Otherwise keep blank cell.
    2. If there is Yes in Column B then show result Yes
    3. If there is only one x in the range C to N and that x is in Column M then show result Yes
    4. If there is more than one x in the range and even if there is an x in columnM then show result No

    I spend a lot of time but unable to get it. Hope it is possible

    Thanks Again
    Attached Files Attached Files

+ 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. Nested IF AND formula
    By Jess0121 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-25-2016, 12:57 PM
  2. Replies: 2
    Last Post: 08-24-2014, 04:56 AM
  3. [SOLVED] IF/AND/OR NESTED formula help please
    By GypsyMom in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-21-2013, 01:04 PM
  4. [SOLVED] Nested =IF formula help please!
    By PhoenixJR in forum Excel General
    Replies: 8
    Last Post: 06-19-2012, 10:50 AM
  5. Replies: 2
    Last Post: 10-08-2009, 09:51 PM
  6. Nested IF formula
    By MAPepin in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-09-2009, 06:02 AM
  7. help on a nested countif/nested if formula
    By vickiemc in forum Excel General
    Replies: 2
    Last Post: 08-13-2008, 08:29 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