+ Reply to Thread
Results 1 to 9 of 9

Finding largest date from 3 different dates

  1. #1
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,712

    Finding largest date from 3 different dates

    Hi,

    I have 3 arrays which can contain either a "Date" or the text "N/A".

    For example lets say i have D1="N/A", E1="N/A" and F1=10/31/15

    I want to find the largest date from D1 and E1 and F1. IN the above example the largest date is F1=10/31/15.

    Any good ideas on how to do this...........i tried using "application.worksheetfunction.max" but it does not work.

  2. #2
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Finding largest date from 3 different dates

    Try this
    Please Login or Register  to view this content.
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  3. #3
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Cool Re: Finding largest date from 3 different dates


    Hi !

    D1:F1 is not 3 arrays but just 3 cells !

    Anyway, MAX Excel function sample with real Date format cell(s) :

    PHP Code: 
    Sub Demo()
        
    T$ = Join$(Filter([IF(ISNUMBER(D1:F1),D1:F1)], FalseFalse), ",")
        If 
    "" Then MsgBox CDate(Evaluate("MAX(" ")"))
    End Sub 
    Do you like it ? So thanks to click on bottom left star icon « Add Reputation » !

  4. #4
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Lightbulb Try this ‼


    Direct way :

    PHP Code: 
    Sub Demo2()
        
    MsgBox CDate([MAX(IF(ISNUMBER(D1:F1),D1:F1,0))])
    End Sub 
    Do you like it ? So thanks to click on bottom left star icon « Add Reputation » !
    Last edited by Marc L; 08-17-2015 at 07:56 AM.

  5. #5
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Lightbulb Try this ‼

    Duplicate …
    Last edited by Marc L; 08-17-2015 at 07:56 AM.

  6. #6
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Lightbulb Try this ‼

    Duplicate …
    Last edited by Marc L; 08-17-2015 at 07:56 AM.

  7. #7
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Try this ‼

    Duplicate …

  8. #8
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,712

    Re: Finding largest date from 3 different dates

    what is "Duplicate"

  9. #9
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Unhappy Re: Finding largest date from 3 different dates



    Duplicate post when I tried to edit original one …

+ 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] Finding Largest Date but Smaller than any Given Date (non-array)
    By Jonathan78 in forum Excel General
    Replies: 10
    Last Post: 04-26-2015, 04:28 PM
  2. Lookup next largest date from static list of dates
    By jjcgirl in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-20-2013, 04:14 PM
  3. Replies: 4
    Last Post: 12-19-2011, 08:40 AM
  4. Finding lowest date in a row of 4 dates
    By Lynn McCurdy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-11-2011, 12:27 PM
  5. Replies: 10
    Last Post: 12-17-2009, 02:00 AM
  6. Finding Dates in a date range
    By Marcus in forum Excel General
    Replies: 1
    Last Post: 04-04-2005, 09:06 PM
  7. Finding dates within a date range
    By Marcus in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-04-2005, 09:06 PM

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