+ Reply to Thread
Results 1 to 2 of 2

Find single value in string of text and return corresponding row

  1. #1
    Registered User
    Join Date
    11-14-2013
    Location
    Atlanta
    MS-Off Ver
    Excel 2010
    Posts
    1

    Find single value in string of text and return corresponding row

    Hello,

    I am looking for a formula that will locate a text value within a array of text strings and then return the value on a corresponding row. Here is an example:

    I have 3 columns, A,B,C

    In column A I have 4000 rows of data and each row has a text string. These text strings are of varying length and are made up of different code combinations, and each code is sepreated by a column. So, A2 is 0359AGG669,5689HHG6526,33432V3,232VVD and A3 is 2231,456TTR4445 and A4 is 266215162,2656V3,0323V2,6262625454. As you can see these vary in length and content.

    In column B I have IDs that correspond to the values in Column A. So, B2 = 1511233 and it corresponds to the text string in A2. So, each value in Column A has a corresponsing ID in Column B.

    In Column C I have 439 rows of text strings. Each one of these are found within one of the text strings in Column A. So, in C2 I have 1245626 and this value is located in one of the text strings in column A.

    I need the formula find each individual value in Column C and then tell me every instance where the value exists in column A, by returning the corresponding value in column B. So, there is one value in each row in column C and that value might exist in multiple text strings in Column A.

    I am attaching an example.
    Attached Files Attached Files

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Find single value in string of text and return corresponding row

    Try this array formula. Confirm it with Ctrl+Shift+Enter and drag it to the right and then down.
    Please Login or Register  to view this content.
    Please see the attached sheet.
    Attached Files Attached Files
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  3. #3
    Registered User
    Join Date
    11-14-2013
    Location
    Atlanta
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: Find single value in string of text and return corresponding row

    Thanks sktneer, I am closer now. This works great to locate a single instance where the value in Column C exists but it does not allow me to locate the value in other rows of Column A. Like in my example, TEST was in multiple rows. This pulls back the corresponding value when it locates it the first time but it cant locate it again.

    Is it possible to modify this formula an create another column where the formula skips over the first time the value is found and finds the next row where the value is contained?

    Thanks again for all the help!

  4. #4
    Registered User
    Join Date
    11-14-2013
    Location
    Atlanta
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: Find single value in string of text and return corresponding row

    Thanks sktneer, I am closer now. This works great to locate a single instance where the value in Column C exists but it does not allow me to locate the value in other rows of Column A. Like in my example, TEST was in multiple rows. This pulls back the corresponding value when it locates it the first time but it cant locate it again.

    Is it possible to modify this formula an create another column where the formula skips over the first time the value is found and finds the next row where the value is contained?

    Thanks again for all the help!

+ 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] 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
  2. [SOLVED] Find text between 2 characters with multiple instances in a single string
    By mforbes6186 in forum Excel General
    Replies: 3
    Last Post: 02-09-2013, 11:56 AM
  3. Replies: 7
    Last Post: 01-24-2013, 06:55 PM
  4. [SOLVED] Find Specific Text in Text String and Return Value in Adjacent Column
    By watchouse in forum Excel General
    Replies: 2
    Last Post: 07-11-2012, 03:53 PM
  5. Find text in string, return row
    By dweitz in forum Excel General
    Replies: 3
    Last Post: 06-11-2011, 02:06 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