+ Reply to Thread
Results 1 to 5 of 5

String Search For Value Between Special Characters

  1. #1
    Registered User
    Join Date
    09-08-2017
    Location
    Houston, Texas
    MS-Off Ver
    2010, 2016
    Posts
    34

    String Search For Value Between Special Characters

    Good evening, everyone!

    I'm having a brain fart here tonight. So I have two lists: one with unique ID and Name while the other has an assorted variety of ways the name is given between special characters and spaces. Is there a search, index match formula that I can utilize to return the match?

    sample_list.PNG

  2. #2
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,366

    Re: String Search For Value Between Special Characters

    Try not upload an image but your sample excel file, click on "Go Advanced" button, next to "Post Quick Reply" button, then whenopen scroll down untuil find "Manage Attachments" text button to attach your file

  3. #3
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,366

    Re: String Search For Value Between Special Characters

    Ok then, I re-type again your table, conside your table ListA on ranges A2:B4 and your ListB "SystemName" on Column D, put this on E3 and copied down:

    =IFERROR(LOOKUP(1000,SEARCH(SUBSTITUTE($B$3:$B$4," ","*"),D3),$B$3:$B$4),LOOKUP(1000,SEARCH(LEFT($B$3:$B$4,FIND(" ",$B$3:$B$4&" ")-1),D3),B$3:B$4))

    For ID, put this on F3 and copied down

    =IFERROR(LOOKUP(1000,SEARCH(SUBSTITUTE($B$3:$B$4," ","*"),E3),A$3:A$4),LOOKUP(1000,SEARCH(LEFT($B$3:$B$4,FIND(" ",$B$3:$B$4&" ")-1),E3),A$3:A$4))
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    09-08-2017
    Location
    Houston, Texas
    MS-Off Ver
    2010, 2016
    Posts
    34

    Re: String Search For Value Between Special Characters

    Sorry about that. I'll remember to do that next time, and thanks for the reply!


    Quick question. So I'm understanding the substitute but what does the lookup of value of 1000 do? I'm assuming it's looking for the next closest value?

  5. #5
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,366

    Re: String Search For Value Between Special Characters

    Quote Originally Posted by huyza_0100 View Post
    Sorry about that. I'll remember to do that next time, and thanks for the reply!


    Quick question. So I'm understanding the substitute but what does the lookup of value of 1000 do? I'm assuming it's looking for the next closest value?

    Is generally regarded as the biggest number and is often used to find the last number in a given range

+ 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. [SOLVED] Remove special graphics characters from String
    By LJMetzger in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-06-2017, 02:47 PM
  2. [SOLVED] VBA string with special characters
    By ChipsSlave in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-18-2017, 09:48 AM
  3. Extract special characters from a string
    By Nadine74 in forum Excel General
    Replies: 3
    Last Post: 04-17-2014, 01:41 PM
  4. find position of special characters in string
    By RonanKeating in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-08-2012, 02:41 PM
  5. [SOLVED] Formula to search for special characters
    By ashrafmartin in forum Excel General
    Replies: 3
    Last Post: 05-14-2012, 08:03 AM
  6. String Match & Special Characters
    By camikins in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-13-2010, 01:33 PM
  7. [SOLVED] Special characters in a string variable
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-04-2006, 03:40 PM

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