+ Reply to Thread
Results 1 to 6 of 6

Index Match with Multiple Criteria and Named Ranges Only Works on Same Sheet

  1. #1
    Registered User
    Join Date
    07-16-2014
    Location
    Seattle, WA
    MS-Off Ver
    Office 365
    Posts
    67

    Index Match with Multiple Criteria and Named Ranges Only Works on Same Sheet

    I have sheet 'Training Report' that lists employee names (first and last) in the first two columns and positions across the top in the first row.
    I have another sheet 'Active Training' that records employee name(first and last), position, and date training started.

    I want to use INDEX-MATCH to find the date training started in the 'Active Training' sheet from matching the first name, last name, and position from the 'Training Report' sheet, and report it in the 'Training Report' sheet.

    Since I have multiple criteria, I am using the array formula for match (MATCH(1, (range1=criteria1)*(range2=criteria2)*(range3=criteria3),0).
    I'm also using named ranges for the first name ('ActFirst'), last name ('ActLast'), position ('ActPos'), and start date ('ActStartDate').
    So the formula looks more like =INDEX(ActStartDate, MATCH(1, (ActFirst=firstname)*(ActLast=lastname)*(ActPos=position),0).

    When I plug this formula into the 'Training Report' sheet, it evaluates everything to 0. But if I set up the matrix from 'Training Report' in the 'Active Training' sheet, it produces the correct output. I'm guessing it's something to do with my named ranges, but I need some help.
    Attached Files Attached Files
    Last edited by kelseygueldalewis; 01-11-2021 at 05:42 PM.

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,936

    Re: Index Match with Multiple Criteria and Named Ranges Only Works on Same Sheet

    Culprit is your ActStartDate.

    When it's evaluated, it's referencing Column D of "Traning Report" and not "Active Traning".

    If you are using Column D of "Active Training" then you need to use Sheet Name in your "D" string.

    Ex:
    Please Login or Register  to view this content.
    Note: Same goes for all other named ranges.
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

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

    Re: Index Match with Multiple Criteria and Named Ranges Only Works on Same Sheet

    A
    B
    C
    D
    E
    F
    G
    H
    1
    FIRST LAST
    FIRST
    SECOND
    THIRD
    FOURTH
    FIFTH
    SIXTH
    2
    Dave A 1/1/2020
    3
    Dave B 1/1/2020
    4
    Andy B 1/1/2020
    5
    Heather C 10/27/2020
    6
    Joseph D 10/19/2020
    7
    Jill F 10/10/2020
    8
    Mike J 8/25/2020
    9
    Joe M 8/23/2020
    10
    Sally N 2/29/2020
    11
    Peter O
    12
    Will P
    13
    Jacob R


    Training Report


    C2=IFERROR(INDEX('Active Training'!$D$2:$D$10,AGGREGATE(15,6,ROW('Active Training'!$D$2:$D$10)-ROW('Active Training'!$D$2)+1/('Training Report'!$A$2:$A$13&'Training Report'!$B$2:$B$13='Active Training'!$A2&'Active Training'!$B2)/('Active Training'!$C$2:$C$10='Training Report'!C$1),COLUMNS('Active Training'!$C$2:'Active Training'!$C2))),"")

    Copy across and down

  4. #4
    Registered User
    Join Date
    07-16-2014
    Location
    Seattle, WA
    MS-Off Ver
    Office 365
    Posts
    67

    Re: Index Match with Multiple Criteria and Named Ranges Only Works on Same Sheet

    Beautiful! That fixed it - thank you!

  5. #5
    Registered User
    Join Date
    07-16-2014
    Location
    Seattle, WA
    MS-Off Ver
    Office 365
    Posts
    67

    Re: Index Match with Multiple Criteria and Named Ranges Only Works on Same Sheet

    Thanks Caracalla! I chose to use named ranges and indirect because the Active Training data gets updated so I need it to expand/contract as that information is added. I solved it with CK76's suggestion.

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

    Re: Index Match with Multiple Criteria and Named Ranges Only Works on Same Sheet

    change range

    Active Training

    c2=IF(C$1<>"",IFERROR(INDEX('Active Training'!$D$2:$D$1000,AGGREGATE(15,6,ROW('Active Training'!$D$2:$D$1000)-ROW('Active Training'!$D$2)+1/('Training Report'!$A$2:$A$1000&'Training Report'!$B$2:$B$1000='Active Training'!$A2&'Active Training'!$B2)/('Active Training'!$C$2:$C$1000='Training Report'!C$1),COLUMNS('Active Training'!$C$2:'Active Training'!$C2))),""),"")

    copy across and down

+ 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] Need Excel formula to use INDEX and MATCH with multiple criteria's over multiple ranges.?
    By mchilapur in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-22-2017, 08:56 AM
  2. Index match with named ranges
    By russwongg in forum Excel General
    Replies: 11
    Last Post: 10-19-2016, 04:45 AM
  3. INDEX MATCH MATCH/OFFSET MATCH MATCH with named ranges
    By Andrew-Mark in forum Excel General
    Replies: 3
    Last Post: 02-27-2015, 10:56 PM
  4. INDEX / MATCH FUNCTIONS - Multiple Criteria Between Date Ranges
    By JMData Consultant in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-22-2014, 02:25 PM
  5. Replies: 6
    Last Post: 04-30-2014, 02:42 AM
  6. Excel 2007 : Index, Match, Large Formula: Multiple Criteria, Multiple Ranges
    By SimpleJack in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-19-2013, 08:54 AM
  7. Named Ranges and INDEX/MATCH
    By jasoncw in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-19-2007, 09:33 AM

Tags for this Thread

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