+ Reply to Thread
Results 1 to 5 of 5

Search Using an Array Formula...

  1. #1
    Registered User
    Join Date
    05-22-2009
    Location
    UK
    MS-Off Ver
    Excel 2000,2003 and regretably 2007
    Posts
    77

    Search Using an Array Formula...

    Evening,

    i am currently using the following array formula to search a range for a value and return its self refrence however i need to modify it as at present it will only return exact matches i need it to be able to search a string find a value and return the cell refrence

    Please Login or Register  to view this content.
    e.g

    if A:A contains product codes like below

    41_74abdc
    41_74defg
    41_74hijk

    and the user searches for "defg" i will need the formula to return A2

    any insight would be appreciated

    there is no worry of duplicates as they cannot occur...
    Last edited by teshiburu1988; 07-30-2009 at 06:58 PM.

  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: Search Using an Array Formula...

    =ADDRESS(MATCH("*"&B1,A:A,0),1) where b1 contains defg
    "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

  3. #3
    Registered User
    Join Date
    05-22-2009
    Location
    UK
    MS-Off Ver
    Excel 2000,2003 and regretably 2007
    Posts
    77

    Re: Search Using an Array Formula...

    Im afraid that didnt work, i have attached a sample workbook which should explain what i am aiming to do?
    Attached Files Attached Files

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Search Using an Array Formula...

    you can just alter Martin's original and add a 2nd wildcard post partial string, ie:

    =ADDRESS(MATCH("*"&B1&"*",A:A,0),1)

  5. #5
    Registered User
    Join Date
    05-22-2009
    Location
    UK
    MS-Off Ver
    Excel 2000,2003 and regretably 2007
    Posts
    77

    Re: Search Using an Array Formula...

    thanks DonkeyOte, i tried that but must have gone wrong somewhere brilliant Huzaahh

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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