+ Reply to Thread
Results 1 to 3 of 3

How to find the earliest or latest date with criteria selection?

  1. #1
    Registered User
    Join Date
    03-18-2015
    Location
    sarawak, malaysia
    MS-Off Ver
    wndows 7 enterprise
    Posts
    3

    Lightbulb How to find the earliest or latest date with criteria selection?

    Hi all,

    I'm new here and I need help.

    I want to find the earliest date from a range of selection with criteria. See attached file.


    Any help or suggestion is very much appreciated.

    **J.B**
    Attached Images Attached Images
    Last edited by justinbaba; 03-19-2015 at 09:47 PM.

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,675

    Re: How to find the earliest or latest date with criteria selection?

    Try array formula, with C1 contains criteria from column A:

    =MIN(IF($A$2:$A$9=$C$1,$B$2:$B$9,""))

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

    Replace MIN with MAX to get latest date
    Quang PT

  3. #3
    Registered User
    Join Date
    03-18-2015
    Location
    sarawak, malaysia
    MS-Off Ver
    wndows 7 enterprise
    Posts
    3

    Re: How to find the earliest or latest date with criteria selection?

    Thank bebo. It work after few days trying to resolve this by myself.

+ 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] Find earliest date in table with multiple criteria
    By BrotherNeptune in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-10-2015, 12:03 PM
  2. [SOLVED] Returning Earliest and Latest Date for a Unique ID
    By chicity26 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-26-2014, 09:39 AM
  3. Getting the earliest and latest date in Pivot Table
    By dluhut in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-02-2013, 01:54 PM
  4. Find earliest date based on specific criteria in other columns
    By cat2000 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-30-2011, 11:50 AM
  5. Find earliest date based on certain criteria
    By SeanKosmann in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 01-26-2010, 11:32 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