+ Reply to Thread
Results 1 to 7 of 7

Compare Col B with all rows in Col A if Match Place in Col C

  1. #1
    Registered User
    Join Date
    07-29-2014
    Location
    New York
    MS-Off Ver
    2007
    Posts
    33

    Compare Col B with all rows in Col A if Match Place in Col C

    Hi,

    Newbie here. I want to compare two columns. I would like to see if the contents of column B appear anywhere in column A, for any amount of rows, and if it does, to place the match in col C.

    So in the example below, red in B1 would be checked in A1 through A1000 or however long A is. When any row has red, place that match in that row for C.

    This would be repeated until all rows in B are complete.

    Example
    Col A: red
    Col B: red
    Col C: red

    Col A: red
    Col B: blue
    Col C: not found

    Thank you very much

  2. #2
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Compare Col B with all rows in Col A if Match Place in Col C

    Hi,

    Please enter the following formula in C1 and drag down-

    =IF(A1=B1,A1,"Not Found")

  3. #3
    Registered User
    Join Date
    07-29-2014
    Location
    New York
    MS-Off Ver
    2007
    Posts
    33

    Re: Compare Col B with all rows in Col A if Match Place in Col C

    Hi Chatrody,

    Thank you very much. I just want to make sure, so you are taking B1 checking all the way down A1 - A1000 or any number, then going to B2 and repeating? Just want to make sure that it is not just checking 1 row.

  4. #4
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Compare Col B with all rows in Col A if Match Place in Col C

    If you want to search the whole column A, then use the following formula in C1 and drag down-

    =IFERROR(VLOOKUP(B1,A:A,1,0),"Not Found")

  5. #5
    Registered User
    Join Date
    07-29-2014
    Location
    New York
    MS-Off Ver
    2007
    Posts
    33

    Re: Compare Col B with all rows in Col A if Match Place in Col C

    Perfection Chatrody!!!! Thanks

  6. #6
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Compare Col B with all rows in Col A if Match Place in Col C

    You are welcome

    If that takes care of your question, please mark this thread as Solved by selecting Thread Tools --> Mark thread as solved.

    Also, I would like to inform you that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful.

  7. #7
    Registered User
    Join Date
    07-29-2014
    Location
    New York
    MS-Off Ver
    2007
    Posts
    33

    Re: Compare Col B with all rows in Col A if Match Place in Col C

    I clicked the add reputation star, if that is the one that you mean. Thanks again.

+ 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] Compare 2 sheets, match data in 1 column, update row in sheet 2 & add new rows not matched
    By Synchronicity in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 11-11-2013, 01:21 PM
  2. Replies: 7
    Last Post: 07-27-2013, 03:47 PM
  3. Compare 2 rows and (if they match), provide difference between 2 dates
    By PastramiDave in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-12-2012, 02:43 PM
  4. compare a value, if there is an match, copy 3 rows
    By ABBOV in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-21-2010, 03:55 AM
  5. Compare 2 text colomns and match rows depends by cell content
    By PRONET in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-31-2006, 11:58 AM

Tags for this Thread

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