+ Reply to Thread
Results 1 to 3 of 3

Search substring

  1. #1
    Registered User
    Join Date
    10-16-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    14

    Search substring

    Hi there,
    There are two columns A and B.
    Column A contains unique values.
    Column B contains text which may contain the values from column A.
    Identify for each cell in column B whether there's a match from column A and print matched value.
    Example attached.
    Thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Search substring

    copy paste below in C2 then hold control and shift together and then hit enter to make it array formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    change the references as per of your data
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

  3. #3
    Valued Forum Contributor
    Join Date
    10-29-2012
    Location
    Mojokerto,Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    554

    Re: Search substring

    at C2
    =IF(COUNTIF($A$2:$A$13,INT(LEFT(REPLACE(B2,1,MIN(FIND({0,1,2,3,4,5,6,7,8,9},B2&1/17))-1,""),5)))>0,INT(LEFT(REPLACE(B2,1,MIN(FIND({0,1,2,3,4,5,6,7,8,9},B2&1/17))-1,""),5)

    copy down

+ 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. Macro to search cells for substring and replace contents of cell if substring is found
    By robbyvegas in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-31-2015, 06:40 AM
  2. [SOLVED] Substring a value to use for a search filter
    By vbapadawan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-28-2015, 04:10 PM
  3. Search for text substring
    By Matt_Gerathy in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-20-2015, 01:19 AM
  4. Search substring within range, report the substring found
    By Brooke1578 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-20-2012, 03:56 PM
  5. [SOLVED] If/Then function with substring search
    By bluefawn42 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-31-2012, 10:04 AM
  6. Search for SubString
    By Hallet in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-11-2012, 04:38 AM
  7. Search for Substring within a String using loop
    By Hallet in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-09-2012, 01:31 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