+ Reply to Thread
Results 1 to 4 of 4

Creating a dynamic array to search for multiple specific entries based on 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 multiple specific entries based on criteria

    Hello everyone,

    So before I begin, this site does not let me post posts that contain formula's. I have no idea why (It tells me I can't post HTML) and I apologize for any confusion it might cause. I've attached a workbook to help clear up any confusion.

    I work for a company that runs different types of activities (rock climbing, trekking, etc). What I'm basically trying to do is create a a check in sheet so that we can easily see who has arrive and who we are still waiting on. I've attached a worksheet below to help explain, but basically, I'm using "formula 1" in the work book to search for entries.

    What it does is search through our sales sheet looking for any one who is going on any of our trips on a specific date. For example, if it see LHB-HD-RC-OT on a date it lists that person's name under "Rock Climbing" so that we know to expect them.

    Where I am having trouble is that I want it to be able to search for multiple different entries in the sales sheet and list them under the same heading. For example, under the "Rock Climbing" heading I want it to list people under the Rock Climbing heading who are doing a half day of rock climbing (LHB-HD-RC-OT) OR people who are doing a full day of rock climbing (LHB-FD-RC-OT) since they will arrive at the same time. I've tried "formula 2" from the workbook, where I tell excel to look for these extra entries, but the formula doesn't seem to work. I think it's because it's looking for two different entries in the same column and is getting confused.

    Does anyone know how I can manipulate this formula to achieve my desired result?
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,861

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

    Try this in C3

    =IFERROR(INDEX('Walk in Sales'!$D$3:$D$9,SMALL(IF(('Walk in Sales'!$E$3:$E$9='Check In'!$A$2)+('Walk in Sales'!$E$3:$E$9='Check In'!$A$3)*('Walk in Sales'!$C$3:$C$9='Check In'!$D$1),ROW($A$3:$A$9)-ROW($A$3)+1,22),ROWS($A$3:A3))),"")

    Enter with Ctrl+Shift+Enter

    Copy down

    You will need change the highlighted Criteria for the codes for each activity

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

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

    I'm a bit slow this morning...

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    also array entered in c3....
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  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 multiple specific entries based on criteria

    Thanks a bunch guys!

    John, your fomula almost worked, it just wasn't date specific (C3P0 and R2 who were going the next day still showed up)

    Glenn, yours worked.

    Thanks again!

+ 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] Creating a dynamic array to search for specific entries based on multiple criteria
    By Travisty in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-12-2015, 12:30 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