+ Reply to Thread
Results 1 to 4 of 4

Creating a dynamic array to search for specific entries based on multiple criteria

  1. #1
    Registered User
    Join Date
    09-26-2015
    Location
    Sherwood Park, Canada
    MS-Off Ver
    Home 2011, Work 2016
    Posts
    52

    Creating a dynamic array to search for specific entries based on multiple criteria

    Hey everyone,

    I've been trying to create a dyamic array that allows me to seach for specific entries based on multiple criteria (sounds like a mouthful, I know). I've been following along with this tutorial:

    http://chandoo.org/wp/2014/11/10/for...eward-part-ii/

    For somereason, this fourm won't let me post formulas (keeps telling me there's an error and that HTML is not allowed), but allow me to try an explain what is going on with the workbook.

    I think understand everything that they article says, but when I copy their formulas and data into my own workbook, it does not procude the same result. I've attached a wookbook to demonstrate.

    When I use their formula in row 2, it gives me the result "Apple" because it's just showing me the value column D for row 2. If I copy the fomula down I get the result #NUM! until a certain point where the result changes to #NAME?

    I've found that if I change the last reference in the formula (the reference to cell "C1" to an absolute reference ($C$1), I can then drag the fomula down to show the value entered in cells D3-D6. After that I still get #NAME? as the result.

    Can anyone help me figure out what is wrong with the formula? Because it would be super useful to me in creating my own dynamic array.

    I'm using excel 2007 if that makes a difference?
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Creating a dynamic array to search for specific entries based on multiple criteria

    Just testing to see if I can post a formula...
    {=1*MID(A1,MATCH(TRUE,ISNUMBER(1*MID(A1,ROW($1:$9),1)),0),COUNT(1*MID(A1,ROW($1:$9),1)))*A2}
    =INDIRECT("page1!C"&2+(ROW()-2)*5)*100/INDIRECT("page1!C"&1+(ROW()-2)*5)
    =LOOKUP(10^10,SEARCH({"pass","fail","reject"},A2),{"pass","fail","reject"})
    =AND(ISNUMBER(SEARCH("tree",A2)),OR(ISNUMBER(SEARCH("flower",A2)),ISNUMBER(SEARCH("leaf",A2)),ISNUMBER(SEARCH("petal",A2))))
    and...
    {=1*MID(A1,MATCH(TRUE,ISNUMBER(1*MID(A1,ROW($1:$9),1)),0),COUNT(1*MID(A1,ROW($1:$9),1)))*A2}
    =INDIRECT("page1!C"&2+(ROW()-2)*5)*100/INDIRECT("page1!C"&1+(ROW()-2)*5)
    =LOOKUP(10^10,SEARCH({"pass","fail","reject"},A2),{"pass","fail","reject"})
    =AND(ISNUMBER(SEARCH("tree",A2)),OR(ISNUMBER(SEARCH("flower",A2)),ISNUMBER(SEARCH("leaf",A2)),ISNUMBER(SEARCH("petal",A2))))
    Also, have not (yet) looked at either the link or the file, but could the formula/s be ARRAY formula's - needed to be enterd using CTRL SHIFT ENTER, and not just enter?
    Last edited by FDibbins; 12-11-2015 at 11:44 PM.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,368

    Re: Creating a dynamic array to search for specific entries based on multiple criteria

    hope this helps
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    09-26-2015
    Location
    Sherwood Park, Canada
    MS-Off Ver
    Home 2011, Work 2016
    Posts
    52

    Re: Creating a dynamic array to search for specific entries based on multiple criteria

    That solved my problem. It was so simple I didn't think about it.

    Thanks guys

+ 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] Dynamic Changing Data, Based on Criteria Store in Array, Sum array and store in Cell
    By penbeacho in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-28-2015, 10:31 AM
  2. Replies: 4
    Last Post: 05-20-2014, 10:03 AM
  3. Creating a dynamic form based on criteria
    By Journeyman3000 in forum Access Tables & Databases
    Replies: 0
    Last Post: 07-26-2013, 12:34 AM
  4. Creating a sum from multiple entries within a specific date range
    By tz_bit in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-04-2013, 11:07 AM
  5. Replies: 6
    Last Post: 02-07-2012, 08:21 PM
  6. Copies entries on master sheet to specific tabs based on 2 criteria
    By kate8301 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-16-2011, 03:48 PM
  7. Summing specific entries based on criteria
    By KaitMacN in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-29-2011, 08:47 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