+ Reply to Thread
Results 1 to 4 of 4

Identify if cell has a value X in a column if the two column comparison found a FALSE

  1. #1
    Registered User
    Join Date
    06-22-2014
    Location
    US
    MS-Off Ver
    ms office 2010
    Posts
    1

    Identify if cell has a value X in a column if the two column comparison found a FALSE

    Hi, I have two columns I am comparing Column A and Column B. In each row they are may have an X value (marked X) or have no value (Left blank). I have figured out how to compare the cells in two columns and give me a True or False for mismatches. But, now I want to be able to identify from the False ones which ones have a value X in Column B (not Column A just Column B). Could someone tell me a simple way to do that other than manually? I have 500 rows to compare and in the future I will have 1000s at a time.

    Thanks!

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

    Re: Identify if cell has a value X in a column if the two column comparison found a FALSE

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    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.

  3. #3
    Registered User
    Join Date
    06-22-2014
    Location
    US
    MS-Off Ver
    ms office 2010
    Posts
    1

    Re: Identify if cell has a value X in a column if the two column comparison found a FALSE

    Thanks, Sktneer.
    I want to identify out of the ones marked FALSE which have a value X (instead of nothing/no value) for Column B. Row 8 and 23 for Column B have an X so I want these to be identified so I can later count them. Maybe a formula can be put into the 4th column (Column D) to pull these? Not sure what to do.

    Attachment 327088Attachment 327088

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Identify if cell has a value X in a column if the two column comparison found a FALSE

    Maybe this...

    =SUMPRODUCT(--(B2:B25<>A2:A25),--(B2:B25="x"))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Identify if cell has a value X in a column if the two column comparison found a FALSE

    Or this...

    =COUNT(IF(B2:B25<>A2:A25,COUNTIF(B2:B25,"X")))

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

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

    Re: Identify if cell has a value X in a column if the two column comparison found a FALSE

    As you said that col. A and B can have either a blank or a "X" so to count all the occurrences where col. A is blank and col. B contain a "X", you may try this formula.....

    Please Login or Register  to view this content.
    The above formula will only count the total occurrences based on your criteria but you will not know where exactly these values in col. B exist. So you may also populate col. D with a formula with True or False. True if col. A is blank and col. B has "X" in it, False otherwise.

    In D2
    Please Login or Register  to view this content.
    and copy down.

+ 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. Replies: 3
    Last Post: 03-04-2014, 04:55 AM
  2. Replies: 8
    Last Post: 06-04-2013, 04:36 AM
  3. Replies: 1
    Last Post: 06-01-2013, 01:27 AM
  4. Replies: 4
    Last Post: 04-09-2011, 02:51 PM
  5. [SOLVED] How do I identify cell color for comparison?
    By Jackyl71 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-27-2005, 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