+ Reply to Thread
Results 1 to 2 of 2

Finding Partial String Matches

  1. #1
    Registered User
    Join Date
    04-02-2009
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2003
    Posts
    1

    Finding Partial String Matches

    I am trying to find a partial string match within a range of cells and then I want to return the data in cells relating to the row that was returned.

    Here is the data:-

    Name Dept Age Find Value Row Returned
    Henry 501 28 Mary 4
    Stan 201 19 enr 2
    Mary 101 22
    Larry 301 29

    Row returned is the row number where a partial match is found using this formula - "=MATCH("*"&E2&"*",$A$1:$A$5,0)"

    How do I then use this row number to find the other data in the row for the returned match (i.e. for Mary, department 101 and age 22)?

    Please help as this is very frustrating...

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Finding Partial String Matches

    index(a1:e5,MATCH("*"&E2&"*",$A$1:$A$5,0),2)
    and
    index(a1:e5,MATCH("*"&E2&"*",$A$1:$A$5,0),3)
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ 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