+ Reply to Thread
Results 1 to 5 of 5

Match one cell with partial contents of another

  1. #1
    Registered User
    Join Date
    07-15-2018
    Location
    England
    MS-Off Ver
    15.24 MAC
    Posts
    12

    Match one cell with partial contents of another

    Hi there,

    I have a list of product numbers, for example one might be '123456' and I want to match this to an unordered list of URLs which contain the product numbers for example exampleurl.co.uk/folder/products/123456_123_example.jpg

    So I want to match the product number with its corresponding URL however the URLs are different lengths so delimiting to pull back the product number didn't work as I have over 17,000 URLs.

    Any recommendations would be a huge help!

    Thanks
    Craig
    Attached Files Attached Files
    Last edited by craigbrown70; 07-15-2018 at 03:41 PM. Reason: Attachment example now added

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Match one cell with partial contents of another

    You could use a wildcard in your lookup formula (VLOOKUP or INDEX/MATCH for example).

    Unless you have exampleurl.co.uk/folder/products/123456_123_example.jpg and then exampleurl.co.uk/folder/products/1234567_123_example.jpg it could work.

    Maybe posting a sample workbook that replicates your data layout would be useful for providing a solution.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

    BSB

  3. #3
    Registered User
    Join Date
    07-15-2018
    Location
    England
    MS-Off Ver
    15.24 MAC
    Posts
    12

    Re: Match one cell with partial contents of another

    Thanks BSB - I've just uploaded an example. In tab one is the list of product numbers I need to match the URL to and in tab 2 is a list of URLs which are different lengths and wouldn't be order.

    I've only done a traditional VLOOKUP before i.e. use column A to find the chosen data in sheet 2 for for the corresponding product number in column A - hence the reason I'm stuck as here I only have one list of product numbers and one list of URLs.

    Do you know what the formula I'd need to use for the wildcard?

  4. #4
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Match one cell with partial contents of another

    Try either of the below formulas in B2 on Product Numbers and copy down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

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


    The *'s are the wildcards.

    You may need to swap commas for semi-colons on a Mac.

    BSB

  5. #5
    Registered User
    Join Date
    07-15-2018
    Location
    England
    MS-Off Ver
    15.24 MAC
    Posts
    12

    Re: Match one cell with partial contents of another

    You are a life saver thank you so much

+ 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. Partial displays of cell contents
    By salvinkeechj in forum Excel General
    Replies: 1
    Last Post: 10-10-2017, 01:07 PM
  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. [SOLVED] index match for table and partial cell contents
    By surk in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-12-2016, 01:53 PM
  4. [SOLVED] Sumifs using the contents of a cell as a partial criteria
    By JimmyMac22 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-04-2014, 10:02 AM
  5. [SOLVED] Look up Partial Cell contents
    By AlexKen in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 09-05-2012, 03:43 PM
  6. Sort by the partial contents of a cell
    By WasWodge in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-24-2011, 03:11 PM
  7. Return cell contents on a partial match
    By rhani111 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-04-2008, 12:13 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