+ Reply to Thread
Results 1 to 6 of 6

Find partial text string within another text string return the full value

  1. #1
    Registered User
    Join Date
    07-10-2017
    Location
    GREECE
    MS-Off Ver
    2016
    Posts
    6

    Find partial text string within another text string return the full value

    Hello,

    I need your help pls.

    First of all sorry for the level of my English.

    In the excel document attached below i have in the column A the SKUs of products and in column B the filenames of the images.

    Is it possible to partially match the value of A1 with the list of image filenames in column B and return in C the cells of B that contains the SKUs?

    To be more clear

    Screen Shot 2017-07-10 at 15.33.58 copy.jpg
    Attached Files Attached Files
    Last edited by andreaspid; 07-10-2017 at 08:35 AM.

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,562

    Re: Find partial text string within another text string return the full value

    Hello Andreas and Welcome to Excel Forum.
    Use Glenn's Solution!
    Last edited by JeteMc; 07-10-2017 at 11:19 AM. Reason: Deleted by JeteMc
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Find partial text string within another text string return the full value

    use this array formula in C1, copied across and down:

    =IFERROR(INDEX($B:$B,SMALL(IF(ISNUMBER(SEARCH($A1,$B$1:$B$826)),ROW($B$1:$B$826)),COLUMNS($C1:C1))),"")

    Array Formulae are a little different from ordinary formulae in that they MUST be confirmed in the FIRST CELL ONLY by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. After that, the array can be dragged down as normal, to cover the desired range.

    You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly brackets yourself - it won't work...

    However, if you want the answers in a single cell (conveniently), you will need VBA. Are you OK with that?
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Registered User
    Join Date
    07-10-2017
    Location
    GREECE
    MS-Off Ver
    2016
    Posts
    6

    Re: Find partial text string within another text string return the full value

    Oh my God!

    Thanks a lot for the solution!
    Great community!

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

    Re: Find partial text string within another text string return the full value

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    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.

  6. #6
    Registered User
    Join Date
    07-10-2017
    Location
    GREECE
    MS-Off Ver
    2016
    Posts
    6

    Re: Find partial text string within another text string return the full value

    Glen your solution is just perfect!

+ 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: 2
    Last Post: 05-14-2015, 01:30 PM
  2. Replies: 4
    Last Post: 03-30-2015, 03:20 PM
  3. Formula to find and return text string within a cell full of text strings
    By LightingPop in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-03-2013, 11:45 PM
  4. Find name(s) within text string that matches a list, then copy full name
    By juhaszp in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-10-2013, 08:48 AM
  5. [SOLVED] Find partial text string within another text string return original text into cell.
    By mikey42979 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-17-2013, 02:58 PM
  6. Return Value Based On Partial Text String
    By JonnyBoy333 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-12-2011, 09:29 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