+ Reply to Thread
Results 1 to 8 of 8

INDEX MATCH MATCH and return MAX value of multiple matches

  1. #1
    Registered User
    Join Date
    04-19-2015
    Location
    Texas
    MS-Off Ver
    2010
    Posts
    5

    Question INDEX MATCH MATCH and return MAX value of multiple matches

    I have a list of times restaurant checks were printed on any given day. There is a front page that uses the data of business and check number as the MATCHES while the time is the INDEX. Since a check may be printed multiple times I need to get the last time the check was printed.


    DATA




    DATE OF B | CHECK # | PRINT TIME

    4/16/18 50014 12:41:00
    4/16/18 50014 12:42:00
    4/16/18 50014 12:53:00

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: INDEX MATCH MATCH and return MAX value of multiple matches

    Try something like this:

    D2 =LOOKUP(2,1/(B$2:B$100=B2),C$2:C$100)

    Drag the formula down column D.

  3. #3
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: INDEX MATCH MATCH and return MAX value of multiple matches

    See attached. The formula below should do the trick

    =LOOKUP(1,0/FREQUENCY(0,1/(1+($A$2:$A$6=$B$9)*($B$2:$B$6=$B$10)*$C$2:$C$6)),$C$2:$C$4)
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    04-19-2015
    Location
    Texas
    MS-Off Ver
    2010
    Posts
    5

    Re: INDEX MATCH MATCH and return MAX value of multiple matches

    I am working from a data story sheet which pulls from several other sheets and the print data is one of those other sheets. The column of print times is 14K long so I cannot set parameters other than the entire column.


    How can I revise this formula

  5. #5
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: INDEX MATCH MATCH and return MAX value of multiple matches

    Quote Originally Posted by njm0059 View Post
    The column of print times is 14K long so I cannot set parameters other than the entire column.
    Your version of Excel has 1,048,576 rows. If your data is 14,000 rows long, that's less than 2% of the total rows.
    Why do you say that you have to refer to the entire column when you are only using < 2% of it?

    Simply changing the formula in post #1 to =LOOKUP(2,1/(B$2:B$15000=B2),C$2:C$15000) should work fine. Using whole column references here will grind the formula to a halt.

  6. #6
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: INDEX MATCH MATCH and return MAX value of multiple matches

    If you are constantly adding and removing rows, I would convert your data into a table and use table ranges.

    This would include the entire table column without going any further than is necessary.

  7. #7
    Registered User
    Join Date
    04-19-2015
    Location
    Texas
    MS-Off Ver
    2010
    Posts
    5

    Re: INDEX MATCH MATCH and return MAX value of multiple matches

    I have converted into a table but I was referencing PM110s example he sent where he restricted the formula to just the date range i needed

  8. #8
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,557

    Re: INDEX MATCH MATCH and return MAX value of multiple matches

    Since the formula is being applied to a table perhaps you could modify Paul's formula to use structured references as in:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Note that the above formula was tested using the file attached to Paul's post (#3).
    Edit: date is in G2 and check number is in G3.
    Let us know if you have any questions.
    Last edited by JeteMc; 05-24-2018 at 05:47 PM. Reason: Added Edit
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. Return Multiple Match Values in Excel Using INDEX-MATCH
    By chris1089 in forum Excel General
    Replies: 10
    Last Post: 06-15-2017, 09:25 AM
  2. Replies: 5
    Last Post: 10-16-2016, 02:33 AM
  3. [SOLVED] Index Match return highest value in repeated matches
    By izk630 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 06-30-2015, 04:09 PM
  4. Index Match return highest value in repeated matches
    By izk630 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-29-2015, 12:57 PM
  5. [SOLVED] INDEX MATCH array formula that matches substring n gives multiple matches
    By bkwins in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-12-2013, 04:57 AM
  6. Replies: 2
    Last Post: 08-16-2012, 09:00 AM
  7. Replies: 4
    Last Post: 07-18-2012, 02:34 PM

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