+ Reply to Thread
Results 1 to 3 of 3

Xlookup for first word in cell?

  1. #1
    Registered User
    Join Date
    01-14-2013
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    18

    Xlookup for first word in cell?

    I have company names in a cell and sometimes the company names include more than one word
    I have another table that has a list of company names with a company ID in the adjacent column

    I wrote an xlookup function to lookup the company name from one table in another, and return the matching company ID

    However, this only works if the match is exact. If, for example the lookup value is "Best Management" and the name in the lookup array is "Best", the function will not return a value.
    I thought I can combine Xlookup with Left+Find but I get an error when trying that. Im pretty sure Im on the right track because when I use the Left+Find function by itself, it returns the first word of the cell. But that's not optimal bc then I need an extra column to do the xlookup in.

    I hope this is clear and appreciate any help accomplishing this task.

  2. #2
    Registered User
    Join Date
    04-26-2020
    Location
    Massachusetts
    MS-Off Ver
    Office 365
    Posts
    93

    Re: Xlookup for first word in cell?

    Please attach a sample workbook (not a picture or pasted copy). 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 then scroll down to Manage Attachments to open the upload window.

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Xlookup for first word in cell?

    Hard to say without a workbook but something like
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

+ 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. XLOOKUP availability?
    By PeteABC123 in forum Excel General
    Replies: 8
    Last Post: 10-22-2020, 06:10 PM
  2. [SOLVED] XLookup returning wrong values when using two conditions
    By Einrastor in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-03-2020, 07:38 AM
  3. Replies: 2
    Last Post: 03-22-2020, 09:05 PM
  4. [SOLVED] Total value that matches the state abbreviation using XLOOKUP and SUM
    By jsagolf in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-16-2020, 04:39 PM
  5. Xlookup blank cells - doesn't return error!
    By Jedab in forum Office 365
    Replies: 3
    Last Post: 02-11-2020, 06:05 PM
  6. Sum Function with Xlookup
    By sawaccouniting in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-07-2020, 10:10 PM
  7. Replies: 14
    Last Post: 09-28-2019, 10:32 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