+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : date search

  1. #1
    Registered User
    Join Date
    01-21-2009
    Location
    Minneapolis, USA
    MS-Off Ver
    Excel 2003
    Posts
    10

    date search

    Hi,
    I have several columns that contain a series of dates (wthin a row). Not all of the columns will have dates in them (some may be blank). The dates are not in any specific order.

    What I need to do is for each row, identify the "earliest" and "latest" dates within the row.

    I looked at using the "MIN" function but those cells that are blank return a value of 1/0/1900 so that doesn't work for me in identifying the earliest "valid" date in the row.

    Any help/suggestiong are most appreciated

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: date search

    If you only have dates and blanks then MIN function will ignore the blanks......If you have zeroes in some cells and want to ignore those use either an array formula, e.g.

    =MIN(IF(A1:Z1>0,A1:Z1))

    confirmed with CTRL+SHIFT+ENTER

    ....or an non-array version

    =SMALL(A1:Z1,COUNTIF(A1:Z1,0)+1)
    Audere est facere

  3. #3
    Registered User
    Join Date
    01-21-2009
    Location
    Minneapolis, USA
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: date search

    thank you very much!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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