+ Reply to Thread
Results 1 to 4 of 4

INDEX, cells containing text within string, return corresponding values in next column

  1. #1
    Registered User
    Join Date
    06-04-2012
    Location
    Waterloo, iA
    MS-Off Ver
    Excel 2007
    Posts
    14

    INDEX, cells containing text within string, return corresponding values in next column

    e45987r, rt4352, fr65830 12Dec10 rt4352
    rt7777, fr77321, e87212r 07Aug11
    rt4352, fr32121, e00098r 28Feb10

    In this example, rows 1 & 3 both contain the string rt4352 in different spots in the cell (there are much more than 3 rows in my actual data).

    What I want to do is identify the each cell in column A that contain rt4352 and return the corresponding value from column B. In this case, I want to return 12Dec10 and 28Feb10 (they can be returned in separate cells or the same cell)

    I thought I could use the INDEX function with a FIND or MATCH, but I just can't get it. Any suggestions?

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: INDEX, cells containing text within string, return corresponding values in next column

    You can try something like:

    Please Login or Register  to view this content.
    adjust ranges to suit... this assumes data is in A2:B100 and the search string of interest is in C2.

    The formula must be confirmed with CTRL+SHIFT+ENTER not just ENTER and copied down
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: INDEX, cells containing text within string, return corresponding values in next column

    Good day,

    I assume you need to this only for rt4352

    Try this
    =IF(ISERROR(FIND("rt4352",A1)),"",B1) for you first set of data in Row#1 and drag down.

  4. #4
    Registered User
    Join Date
    06-04-2012
    Location
    Waterloo, iA
    MS-Off Ver
    Excel 2007
    Posts
    14

    Talking Re: INDEX, cells containing text within string, return corresponding values in next column

    Quote Originally Posted by NBVC View Post
    You can try something like:

    Please Login or Register  to view this content.
    adjust ranges to suit... this assumes data is in A2:B100 and the search string of interest is in C2.

    The formula must be confirmed with CTRL+SHIFT+ENTER not just ENTER and copied down
    Thank you! This worked perfectly!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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