+ Reply to Thread
Results 1 to 4 of 4

Find substring within a string, from a list

  1. #1
    Registered User
    Join Date
    02-15-2014
    Location
    Michigan
    MS-Off Ver
    O365
    Posts
    76

    Find substring within a string, from a list

    Hey All,

    I need to figure out how to search a string of text in a single cell, reference a list and display back the column next to it.

    Example:

    Items to Search
    ABC 5555
    DEF 6666
    GHI 7777

    Cells to Search
    1234ABCtgde Formula here should return 5555
    ewhhfruDEFrefjoi Formula here should return 6666
    ewhhfrdwefurefjoi Formula here should return Nothing
    fretgtevdGHIerfrfe Formula here should return 7777

    The formula needs to be something I can just drag down the column and have populate.

    I hope that is enough detail. Any help you could provide would be helpful.

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Find substring within a string, from a list

    Try this

    =IFERROR(LOOKUP(25^25,SEARCH($D$1:$D$3,A1),$E$1:$E$3),"")

    Row\Col
    A
    B
    C
    D
    E
    1
    1234ABCtgde
    5555
    ABC
    5555
    2
    ewhhfruDEFrefjoi
    6666
    DEF
    6666
    3
    ewhhfrdwefurefjoi GHI
    7777
    4
    fretgtevdGHIerfrfe
    7777
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Registered User
    Join Date
    02-15-2014
    Location
    Michigan
    MS-Off Ver
    O365
    Posts
    76

    Re: Find substring within a string, from a list

    Thanks AlKey,

    That did work! I do have two other issues with it. The list (D & E columns) are changeable so their may be some blank cells in the list how would I tweak that formula to have the list ignore blanks?

    Also, what is the significance of the 25^25?

  4. #4
    Registered User
    Join Date
    02-15-2014
    Location
    Michigan
    MS-Off Ver
    O365
    Posts
    76

    Re: Find substring within a string, from a list

    And one more question. If column A had a column next to it that was a dollar value.

    And I wanted my reference table to look and find the match then verify that it is in the range. and if not have it continue to find the next match that meets the dollar range

    Like this:

    Row\Col A B C D E F G H
    1 1234ABCtgde 49.99 5555 Lookup Return Min $$ Max $$
    2 ewhhfruDEFrefjoi 19.99 <Blank> ABC 5555 0 999.00
    3 ewhhfrdwefurefjoi 12.14 <Blank> DEF 6666 30.00 100.00
    4 fretgtevdGHIerfrfe 50.99 7777 GHI 7777 0 500.00
    5 sefsfGHIaasfdd 1000.00 8888 GHI 8888 500.00 10,000.00


    Capture.PNG

    (Also How did you insert that table so nicely)

+ 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: 4
    Last Post: 12-23-2013, 08:43 AM
  2. [SOLVED] Copy a substring from a string
    By raul09 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-02-2013, 12:53 AM
  3. [SOLVED] Find the position of a substring in a string
    By nemo66ro in forum Excel General
    Replies: 6
    Last Post: 10-22-2012, 01:21 AM
  4. Searching for a substring in a string
    By 1rovilla in forum Excel General
    Replies: 3
    Last Post: 05-07-2010, 08:17 PM
  5. Find the sub string in column and copy the cell next to the substring
    By shrujan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-16-2009, 11:00 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