+ Reply to Thread
Results 1 to 7 of 7

Mark cells in Column B that have text matching any cell in Column A

  1. #1
    Registered User
    Join Date
    03-29-2013
    Location
    Citytown
    MS-Off Ver
    Excel 2010
    Posts
    3

    Mark cells in Column B that have text matching any cell in Column A

    Thanks for any help you can provide! In column A, I have certain category phrases:

    Column A
    Ach
    Terr
    Marv

    In column B, I have cells with different titles:

    Column B
    The Achilles Battle
    The Achilles Sneeze
    Lightning Round
    Terrible Noises
    Terrific Job
    Intensity
    Marvelous

    My goal is to 1) search each column in Column B, 2) determine if any of the category phrases are found within, and then 3) mark column C with the category phrase that matches.

    VLookup doesn't seem to work here because I don't know how to make Column A a wildcard match. Any ideas?

  2. #2
    Valued Forum Contributor
    Join Date
    06-16-2006
    Location
    Sydney, Australia
    MS-Off Ver
    2013 64bit
    Posts
    1,394

    Re: Mark cells in Column B that have text matching any cell in Column A

    http://www.myonlinetraininghub.com/e...if-and-vlookup

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

    Re: Mark cells in Column B that have text matching any cell in Column A

    Try this...

    This data in the range A2:A4...

    Ach
    Terr
    Marv

    This data in the range B2:B8...

    The Achilles Battle
    The Achilles Sneeze
    Lightning Round
    Terrible Noises
    Terrific Job
    Intensity
    Marvelous

    Enter this formula in C2 and copy down to C8:

    =IFERROR(LOOKUP(1E100,SEARCH(A$2:A$4,B2),A$2:A$4),"")
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Mark cells in Column B that have text matching any cell in Column A

    hi kevindp78, welcome to the forum. assuming column A data in A1:A3 while column B data in B1:B7, try this in C1:
    =IFERROR(LOOKUP(2^15,SEARCH($A$1:$A$3,B1),$A$1:$A$3),"")

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  5. #5
    Registered User
    Join Date
    03-29-2013
    Location
    Citytown
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Mark cells in Column B that have text matching any cell in Column A

    This answer worked for me! Thanks, Tony!

    - Kevin

    Quote Originally Posted by Tony Valko View Post
    Try this...

    This data in the range A2:A4...

    Ach
    Terr
    Marv

    This data in the range B2:B8...

    The Achilles Battle
    The Achilles Sneeze
    Lightning Round
    Terrible Noises
    Terrific Job
    Intensity
    Marvelous

    Enter this formula in C2 and copy down to C8:

    =IFERROR(LOOKUP(1E100,SEARCH(A$2:A$4,B2),A$2:A$4),"")

  6. #6
    Registered User
    Join Date
    03-29-2013
    Location
    Citytown
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Mark cells in Column B that have text matching any cell in Column A

    Thanks, Mallycat, but Tony's response was more specific to my needs.

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

    Re: Mark cells in Column B that have text matching any cell in Column A

    You're welcome. 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)

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