+ Reply to Thread
Results 1 to 12 of 12

Multiple criteria find min and max date values

  1. #1
    Registered User
    Join Date
    12-18-2012
    Location
    CA
    MS-Off Ver
    Excel 2010
    Posts
    8

    Multiple criteria find min and max date values

    I browsed for hours so far and couldn't find a solution for this problem. Would appreciate help here. I am newbie.

    I am trying to find max and min dates using excel 2016 without microsoft 365 subscription so I don't have MINIFS function I would like use any functions which are available in excel 2016.

    Build Country type year Date
    A NA Build 2020 7/8/2020
    B NA Build 2020 3/23/2020
    A NA Build 2021 3/23/2020
    B NA Build 2021 11/16/2020
    A NA Build 2020 8/28/2020
    B EU Build 2020 1/13/2020
    A EU Build 2020 11/20/2020
    B EU New 2020 7/17/2020
    A NA Build 2020 3/28/2020
    A NA Build 2020
    A EU New 2020 3/16/2020
    B NA New 2021 11/4/2020
    A NA New 2021 5/4/2020
    B NA New 2021 9/28/2020


    Max Date Min Date
    A NA Build 2020 8/28/2020 3/28/2020

    For min Date I want to ignore blanks.
    Attached Files Attached Files
    Last edited by roberthairt; 05-13-2020 at 10:05 AM. Reason: typos

  2. #2
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Multiple criteria find min and max date values

    you could use MIN/MAX arrays, or non-Array AGGREGATEs (below):

    Max: =AGGREGATE(14,6,Table8[Date]/(Table8[Build]=$A19)/(Table8[Country]=$B19)/(Table8[type]=$C19)/(Table8[year]=$D19),1)
    Min: =AGGREGATE(15,6,Table8[Date]/(Table8[Build]=$A19)/(Table8[Country]=$B19)/(Table8[type]=$C19)/(Table8[year]=$D19)/(Table8[Date]>0),1)

  3. #3
    Registered User
    Join Date
    12-18-2012
    Location
    CA
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Multiple criteria find min and max date values

    Awesome!! worked

  4. #4
    Registered User
    Join Date
    12-18-2012
    Location
    CA
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Multiple criteria find min and max date values

    If we want to add another column to this criteria like site. so if I want Build*Country*type*year*site this similar method would work to get min and max dates?

  5. #5
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Multiple criteria find min and max date values

    the formula basic works along lines of:

    =AGGREGATE(14,6,(dates)/(criteria1)/(criteria2)/(criteria n),1)

    so you can add criteria by virtue of division.

  6. #6
    Registered User
    Join Date
    12-18-2012
    Location
    CA
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Multiple criteria find min and max date values

    thank you! It worked on the example but If I try to use in a larger table set I am getting #NUM! Errors. Do you know what could be the reason.

  7. #7
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Multiple criteria find min and max date values

    you would get #NUM! if there are no valid results based on criteria (can be masked via IFERROR once comfortable working as expected)

  8. #8
    Registered User
    Join Date
    12-18-2012
    Location
    CA
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Multiple criteria find min and max date values

    This worked. Thank you! on same note if we wanted to get result next to date column Build*Country*type*year*site*MAX/MINDate if yes yield result value on next column?

  9. #9
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Multiple criteria find min and max date values

    use the AGGREGATE to return the row number of the match, and use that within an INDEX

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    edit: should have added, the above returns value relevant to Min date (given F19), for the Max equivalent change F19 to E19 (nothing else)
    Last edited by XLent; 05-13-2020 at 02:36 PM.

  10. #10
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Multiple criteria find min and max date values

    Another approach

    With a pivot table.

    I just showed the min date.

    This also can be made for the max date.

    See the attached file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  11. #11
    Registered User
    Join Date
    12-18-2012
    Location
    CA
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Multiple criteria find min and max date values

    Thank you oeldere. Pivot table did work. Since I want to formulae to an existing table I want to use formulae version.

  12. #12
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Multiple criteria find min and max date values

    Glad I could help.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

+ 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. Referencing one name find multiple criteria multiple results within a date range
    By Flora Lastra in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-14-2018, 04:47 PM
  2. [SOLVED] Find multiple criteria and return sum of values
    By maym in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 03-28-2017, 05:57 AM
  3. Find count of unique values with multiple criteria inlcuding date ranges
    By jdooley in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-21-2016, 01:05 PM
  4. [SOLVED] Using Arrays To Find Values With Multiple Criteria
    By rpokorny in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-05-2015, 12:00 PM
  5. Replies: 2
    Last Post: 05-26-2015, 07:29 PM
  6. Find multiple values with multiple criteria in vba macro
    By Jovillanueva in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 10-02-2014, 09:46 PM
  7. [SOLVED] Find Min Date from Multiple Criteria
    By STEELEMAN5000 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-19-2012, 12:13 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