+ Reply to Thread
Results 1 to 2 of 2

Search for a text string and return adjacent cell value for each match

  1. #1
    Registered User
    Join Date
    06-20-2011
    Location
    Maryland
    MS-Off Ver
    Excel 2007
    Posts
    3

    Search for a text string and return adjacent cell value for each match

    Ok, I have probably an easy one here that people a whole lot smarter than me can whip out an answer quicker than I can.

    I have attached a sample of my spreadsheet

    I basically want to use a formula to search for each occurance of a specific text string and return the numerical and date values of the the adjacent cells in the same row as it found the text string. I want it to extract all these occurances into a smaller table on the same sheet. I hope the attached spreadsheet shows adequately what I want to do. I dont want to use pivot tables or data filtering to do this.

    Thanks

    Rob
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Search for a text string and return adjacent cell value for each match

    in H4:
    =IF(COUNTIF(C$2:C$27,"="&H$1)>=ROW(H1),INDEX(A$2:A$27,SMALL(IF(C$2:C$27=H$1,ROW(A$2:A$27),100),ROW(A1))-1),"")
    as an array formula (confirm with ctrl+shift+enter)

    in I4:
    =IF(H4="","",VLOOKUP(H4,A2:B27,2))

    and copy down
    Last edited by ragulduy; 11-21-2013 at 10:02 AM.

+ 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] Function to match text and return number in adjacent cell?
    By danoswalt in forum Excel General
    Replies: 6
    Last Post: 12-16-2014, 01:47 PM
  2. [SOLVED] Search for String in Range, If Match, Return Matching Cell Value
    By ryanb909 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-21-2013, 02:27 AM
  3. Replies: 3
    Last Post: 06-17-2013, 01:09 PM
  4. Replies: 1
    Last Post: 07-26-2011, 06:48 AM
  5. Search text string for range of text values - return match
    By crugg in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-03-2010, 09:55 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