+ Reply to Thread
Results 1 to 3 of 3

Dynamic Search function using array formulas

  1. #1
    Registered User
    Join Date
    02-23-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    34

    Dynamic Search function using array formulas

    Hi all,

    I'm trying to create a dynamic search function that will search a database in one tab and return a list of entries matching the criteria searched for in another tab. Currently I can do this for two search criteria but I want to extend it to many more (14 in total) search parameters. You should be able to search by any combination of parameters.

    Please see the attached file for where I've got to.

    I'm using the following formulae as a basis:

    First parameter
    =IFERROR((INDEX(FundSearch, SMALL(IF(ISNUMBER((SEARCH($L$3, InvestorSearch))*(SEARCH($B$3, FundSearch))), ROW(FundSearch)-MIN(ROW(FundSearch))+1, ""), ROW(Database!A1)))),"")

    Second parameter
    =IFERROR((INDEX(InvestorSearch, SMALL(IF(ISNUMBER((SEARCH($L$3, InvestorSearch))*(SEARCH($B$3, FundSearch))), ROW(FundSearch)-MIN(ROW(FundSearch))+1, ""), ROW(Database!A1)))),"")

    Can someone please help?
    Attached Files Attached Files

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Dynamic Search function using array formulas

    Hi adelcap,

    Your example looks a lot like what the Advanced Filter does. Why don't you use the Advanced Filter feature built into Excel instead of trying to invent one of your own?

    http://www.contextures.com/xladvfilter01.html or
    http://www.youtube.com/watch?v=SU1qGbN6Rs8
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    02-23-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    34

    Re: Dynamic Search function using array formulas

    Thanks MarvinP, I never realised the power of Advanced Filter! Works great for this task so a very big THANK YOU!

+ 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