+ Reply to Thread
Results 1 to 7 of 7

Search for text in a cell from a lookup table and return that text when a match is made

  1. #1
    Registered User
    Join Date
    05-29-2019
    Location
    Sydney Australia
    MS-Off Ver
    Excel 2013
    Posts
    3

    Search for text in a cell from a lookup table and return that text when a match is made

    Hi there

    Newby here with moderate excel skills, slowly going mad over a project I really please need help with! I have searched this forum and Google with no luck.

    I have a XLS with 20,000+ rows and I need to check if words match a table of 200+ options. If there is an exact match with the the table I need to return the match data.

    I have attached a the XLS with an extract of the data set and the desired results

    Ideally I would like to avoid going down an array path if possible but if it is the only solution that's ok.

    Any help would be much appreciated, my sanity is at stake!

    Cheers Paul
    Attached Files Attached Files
    Last edited by Pjjt; 05-29-2019 at 07:08 PM.

  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,812

    Re: Search for text in a cell from a lookup table and return that text when a match is mad

    Welcome to the forum!

    Unfortunately, it is far from clear what you are trying to do here.

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    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
    05-29-2019
    Location
    Sydney Australia
    MS-Off Ver
    Excel 2013
    Posts
    3

    Re: Search for text in a cell from a lookup table and return that text when a match is mad

    Thanks for the assistance ALIGW (love the user name!), yes I did struggle to find an attachment option!

    I have now attached the XLS example with real data extract and some commentary showing the expected results. I hope this is much clearer!

    Really appreciate you responding back

    Cheers Paul
    Attached Files Attached Files

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Search for text in a cell from a lookup table and return that text when a match is mad

    Try this formula.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

  5. #5
    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,812

    Re: Search for text in a cell from a lookup table and return that text when a match is mad

    Thanks for the assistance ALIGW (love the user name!)
    Glad you like it. It's just my name and initials, though - nothing related to any of Sacha Baron Cohen's alter egos.

  6. #6
    Registered User
    Join Date
    05-29-2019
    Location
    Sydney Australia
    MS-Off Ver
    Excel 2013
    Posts
    3

    Re: Search for text in a cell from a lookup table and return that text when a match is mad

    ALIGW - aw shucks, sorry if any offense!

    If you can excuse an Aussie term - you bl00dy beauty! Works a dream!Thank you so much!

    I have copied it into my data set and extended the ranges. The one thing I found that had me stumped for a bit is is that if I extend the lookup range e.g. to $C$2:$C$1000 and from C$250 on are blank cells it changes all formula results to 0. But that's an easy fix, as C will continually be added to I'll just ad "XXXXXXXX" as a placeholler to any spare cells in the range and it works perfectly.

    I'll throw a prawn on the barbie and raise a coldie to you.

    Cheers Paul

  7. #7
    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,812

    Re: Search for text in a cell from a lookup table and return that text when a match is mad

    No offence taken!

    It was Dave who gave you the solution, though, not me.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. Search and Match partial text string to full text and return a value
    By homa5424 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-09-2017, 10:52 AM
  2. Replies: 9
    Last Post: 09-05-2017, 11:35 AM
  3. Search for a match of a text within text string and return initial value
    By orehovka in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-23-2015, 06:48 AM
  4. Search for a text string and return adjacent cell value for each match
    By ral8088 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-21-2013, 09:55 AM
  5. Replies: 3
    Last Post: 06-17-2013, 01:09 PM
  6. Replies: 0
    Last Post: 11-16-2012, 11:42 AM
  7. Search text string for range of text values - return match
    By crugg in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-03-2010, 09:55 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