+ Reply to Thread
Results 1 to 4 of 4

Partial text in a cell as a lookup_value when using MATCH

  1. #1
    Registered User
    Join Date
    07-16-2021
    Location
    Sao Paulo
    MS-Off Ver
    Google Sheets
    Posts
    2

    Smile Partial text in a cell as a lookup_value when using MATCH

    Hi there! Do you know if it's possible to have a partial text in a cell as a lookup_value? Explaining:

    The first table (red) is the reference and shows the names of the sellers and their places of work. Formulas were applied in the second table (green).
    Formula for cell C12, for example, is =iferror(INDEX(C$1:C$8,MATCH(B12,$B$1:$B$8,0)),"XX"). What I'm trying to do: find if "John Smith" appears in the reference table and, if so, bring his places of work.

    The issue: when a cell has two names (B14), the result is ERROR because the formula is looking for the employee "Richard Lopez,Mary Jane", not for "Richard Lopez" AND "Mary Jane". The expected result, in this case, should be the filling of cell J14 with "JP" (because of Richard Lopez) and cells P14, Q14, and R14 with "EG", "SA" and "AE" respectively (because of Mary Jane).

    I already tried to include "*"&cell&"*", but it didn't work.

    I would really appreciate it if someone could help me!
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    06-23-2021
    Location
    Romania
    MS-Off Ver
    2021, 365 v 2208
    Posts
    722

    Re: Partial text in a cell as a lookup_value when using MATCH

    Hi,

    In your original dates are more situation of enumeration like "Richard Lopez,Mary Jane"?
    Is possible to have more than two in enumeration?
    It can be a situation where both have information different than XX for the same column in first table?
    Diana Tanase


    If the solutions offered helped you to solve your problem, then mark the thread as SOLVED (thread tools in the top menu) and you can click on * to add reputation to those who helped you, as a way to say thank you !

  3. #3
    Registered User
    Join Date
    07-16-2021
    Location
    Sao Paulo
    MS-Off Ver
    Google Sheets
    Posts
    2

    Re: Partial text in a cell as a lookup_value when using MATCH

    Hello! Thank you for your reply!

    In your original dates are more situation of enumeration like "Richard Lopez,Mary Jane"? Yes
    Is possible to have more than two in enumeration? Yes
    It can be a situation where both have information different than XX for the same column in first table? No. All of them can have XX or the column title (ie: XX or US for US column, XX or CA for CA column, XX or GB for GB column, so on)

    For context: I do not control the range B12:B15. This information comes from a huge database and it may have all names together in the same cell separated by commas (or a single name, which is most common.
    So ideally, I would need a formula that works for all situations (with one, two, three, four, five, six names – or more, but this would be very rare).

  4. #4
    Valued Forum Contributor
    Join Date
    06-23-2021
    Location
    Romania
    MS-Off Ver
    2021, 365 v 2208
    Posts
    722

    Re: Partial text in a cell as a lookup_value when using MATCH

    Quote Originally Posted by lemota View Post

    For context: I do not control the range B12:B15. This information comes from a huge database and it may have all names together in the same cell separated by commas (or a single name, which is most common.
    So ideally, I would need a formula that works for all situations (with one, two, three, four, five, six names – or more, but this would be very rare).
    In this case I don't think that a single formula can do this. As I can see you work in Google Sheets and I don't know if it's possible. I think that your situation need a VBA code in Excel. But in Google Sheets...

+ 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: 9
    Last Post: 09-05-2017, 11:35 AM
  2. [SOLVED] Lookup partial values and if match return partial value from another cell
    By Renejorgensen in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-01-2017, 07:53 AM
  3. Userform Text box containing a vlookup with a two cell lookup_value
    By SLexcel2 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-13-2016, 01:55 PM
  4. Index match partial text in cell
    By ymcata in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-30-2015, 05:45 AM
  5. [SOLVED] Match partial text when partial text is not exact
    By NamiSama in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 05-21-2014, 07:18 PM
  6. if match partial text from a cell to a range copy row
    By Shansy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-21-2013, 02:35 AM
  7. Replies: 2
    Last Post: 10-30-2007, 12:12 PM

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