+ Reply to Thread
Results 1 to 4 of 4

Index match with multiple criteria (one with a wildcard) and multiple results.

  1. #1
    Registered User
    Join Date
    03-23-2019
    Location
    Atlanta, GA
    MS-Off Ver
    2010
    Posts
    7

    Index match with multiple criteria (one with a wildcard) and multiple results.

    Hi all!

    Any help with this would be greatly appreciated, as it's been a day now where I still haven't quite figured this out.

    In my reference sheet, I have a column A for names, column B for timestamps, column C for ticket #, and so on.

    In another sheet, I want to search for a specific name in column A and pull the adjacent timestamp from column B ONLY if the timestamp matches my wildcard criteria.

    Reference sheet:
    Name Timestamp
    Alex Smith Mar 18, 2019, 7 AM
    Alex Smith Mar 18, 2019, 7 AM
    Alex Smith Mar 18, 2019, 8 AM
    Alex Smith Mar 18, 2019, 9 AM
    Alex Smith Mar 18, 2019, 12 PM
    Alex Smith Mar 18, 2019, 12 PM
    Alex Smith Mar 19, 2019, 7 AM
    Alex Smith Mar 19, 2019, 7 AM
    Alex Smith Mar 19, 2019, 7 AM
    Alex Smith Mar 19, 2019, 9 AM
    Alex Smith Mar 19, 2019, 9 AM
    Alex Smith Mar 19, 2019, 1 PM
    Jennifer Lynch Mar 18, 2019, 7 AM
    Jennifer Lynch Mar 18, 2019, 8 AM
    Jennifer Lynch Mar 19, 2019, 7 AM
    Jennifer Lynch Mar 19, 2019, 12 PM

    Assuming I'm searching for "Alex Smith" in column A and "Mar 19, 2019*" in column B, this is what I expect my results to look like:

    Results for Alex Smith:
    Mar 19, 2019, 7 AM
    Mar 19, 2019, 7 AM
    Mar 19, 2019, 7 AM
    Mar 19, 2019, 9 AM
    Mar 19, 2019, 9 AM
    Mar 19, 2019, 1 PM

    I've gotten really close using the formula below, but unfortunately the wildcard doesn't work. ($A$2 is referencing a cell that includes "Mar 19, 2019".)

    Please Login or Register  to view this content.
    Thank you ahead of time for any and all help!

  2. #2
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,781

    Re: Index match with multiple criteria (one with a wildcard) and multiple results.

    A
    B
    C
    D
    1
    name Timestamp
    2
    Alex Smith Mar 18, 2019, 7 AM Mar 19, 2019, 7 AM
    3
    Alex Smith Mar 18, 2019, 7 AM Mar 19, 2019, 7 AM
    4
    Alex Smith Mar 18, 2019, 8 AM Mar 19, 2019, 7 AM
    5
    Alex Smith Mar 18, 2019, 9 AM Mar 19, 2019, 9 AM
    6
    Alex Smith Mar 18, 2019, 12 PM Mar 19, 2019, 9 AM
    7
    Alex Smith Mar 18, 2019, 12 PM Mar 19, 2019, 1 PM
    8
    Alex Smith Mar 19, 2019, 7 AM
    9
    Alex Smith Mar 19, 2019, 7 AM
    10
    Alex Smith Mar 19, 2019, 7 AM
    11
    Alex Smith Mar 19, 2019, 9 AM
    12
    Alex Smith Mar 19, 2019, 9 AM
    13
    Alex Smith Mar 19, 2019, 1 PM
    14
    Jennifer Lynch Mar 18, 2019, 7 AM
    15
    Jennifer Lynch Mar 18, 2019, 8 AM
    16
    Jennifer Lynch Mar 19, 2019, 7 AM
    17
    Jennifer Lynch Mar 19, 2019, 12 PM



    D2=IFERROR(INDEX($B$2:$B$17,SMALL(IF($A$2:$A$17=$A$2,IF(ISNUMBER(SEARCH("Mar 19, 2019,",$B$2:$B$17)),ROW($B$2:$B$17)-ROW($B$2)+1)),ROWS($B$2:B2))),"")

    control+shift +enter

    copy down

  3. #3
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Index match with multiple criteria (one with a wildcard) and multiple results.

    If you have proper dates formatted as 'mmm dd, yyyy, h AM/PM then try
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If they are text strings then try
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    $D$1 = name to search for
    $D$2 = wildcard date
    E$2:E2 = cell that you enter the formula into before filling down.
    Attached Files Attached Files
    Last edited by jason.b75; 03-23-2019 at 02:48 PM. Reason: added attachment

  4. #4
    Registered User
    Join Date
    03-23-2019
    Location
    Atlanta, GA
    MS-Off Ver
    2010
    Posts
    7

    Re: Index match with multiple criteria (one with a wildcard) and multiple results.

    Both worked perfectly. Thank you!

+ 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] Index Match multiple criteria with wildcard
    By Perk1961 in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 01-29-2020, 12:07 PM
  2. Replies: 1
    Last Post: 01-18-2019, 03:55 PM
  3. Index Match w/single criteria, multiple results
    By Mflick in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-06-2018, 06:34 PM
  4. [SOLVED] Find multiple results with INDEX & MATCH on 2 criteria
    By SubwAy in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-22-2017, 08:56 AM
  5. [SOLVED] Index match on multiple criteria/ results
    By Burt_100 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-06-2015, 10:40 AM
  6. [SOLVED] How to index and match multiple criteria without repeating results?
    By PistachioPedro in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 11-20-2013, 05:38 PM
  7. Replies: 0
    Last Post: 03-02-2012, 11:16 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