+ Reply to Thread
Results 1 to 3 of 3

INDEX MATCH MIN Formula

Hybrid View

  1. #1
    Registered User
    Join Date
    09-13-2017
    Location
    Rotterdam, Netherlands
    MS-Off Ver
    Office 2016
    Posts
    2

    INDEX MATCH MIN Formula

    Hi,

    I have an INDEX MATCH function whereby I am looking up the date of a certain company name. However, I need to look up the oldest date for each company name. I have already tried with an AGGREGATE function combined with INDEX, MATCH and MIN but this also resulted in the same outcome (namely, not the oldest date matched).

    Formula tried:
    Formula: copy to clipboard
    =AGGREGATE(5,4,INDEX(Results!$L:$L,MATCH($A2,Results!$D:$D,0)))


    Formula I have at the moment and only matches the date (not the oldest date):
    Formula: copy to clipboard
    =INDEX(Results!$L:$L,MATCH($A2,Results!$D:$D,0))


    In sheet Target I match the company name in Column A with the company name in sheet Results in Column D and I then look up the date given in sheet Results in Column L (Completed date), the formula is in Column B in sheet Target. However, I need this to be the oldest date as possible.


    See the attached file.


    Any suggestions?


    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,454

    Re: INDEX MATCH MIN Formula

    Hi,

    In B2 and copied down,

    Formula: copy to clipboard
    =MIN(IF(($A2=Results!D:D)*(Results!L:L>0),Results!L:L))


    This is an array formula and as suck should be confirmed with CTRL, SHIFT and enter. Done correctly it will display thus:

    Formula: copy to clipboard
    {=MIN(IF(($A2=Results!D:D)*(Results!L:L>0),Results!L:L))}


    Note, using arrays will full columns or rows will slow your workbook down considerably. Consider using specific ranges to limit the number of cells that are calculated.

    eg;

    Formula: copy to clipboard
    =MIN(IF(($A2=Results!$D$2:$D$20000)*(Results!$L$2:$L$20000>0),Results!$L$2:$L$20000))
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Registered User
    Join Date
    09-13-2017
    Location
    Rotterdam, Netherlands
    MS-Off Ver
    Office 2016
    Posts
    2

    Re: INDEX MATCH MIN Formula

    Great thanks a lot it works!

+ 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. Replies: 4
    Last Post: 04-14-2017, 07:47 PM
  2. Index Match formula changing my Index daily
    By vitt4300 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-31-2017, 02:19 PM
  3. [SOLVED] This formula works but I donīt understand why Index(Index) match
    By campelliann in forum Excel General
    Replies: 2
    Last Post: 01-25-2016, 05:55 PM
  4. Index Match Match Formula DOESN'T WORK WITH TABLES/TABLE NAMES ??
    By Underling in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-04-2014, 09:01 PM
  5. Replies: 3
    Last Post: 05-02-2013, 01:31 AM
  6. Index Match Index Formula work slow
    By avk in forum Excel General
    Replies: 9
    Last Post: 03-07-2012, 02:19 PM
  7. Replies: 5
    Last Post: 02-29-2012, 08:51 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