+ Reply to Thread
Results 1 to 8 of 8

Putting a List in Ascending Order and Skipping Duplicates

  1. #1
    Registered User
    Join Date
    09-10-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    4

    Putting a List in Ascending Order and Skipping Duplicates

    I have a list of dates (max of 6 dates possible in one column) that I need to put in ascending order and also combine duplicate dates into one listing. Here is an example:

    Original:
    05/23/2008
    02/02/2005
    <blank>
    06/14/2001
    02/02/2005
    <blank>

    Formatted:
    06/14/2001
    02/02/2005
    05/23/5008
    <blank>
    <blank>
    <blank>

    I need a formula that can do all of these steps at once. It would be EXTREMELY helpful. Thank you!

  2. #2
    Registered User
    Join Date
    05-19-2008
    Posts
    56

    Re: Putting a List in Ascending Order and Skipping Duplicates

    A quick way would be do a A-Z sort, then do a data-filter-advanced filter-unique records only.

  3. #3
    Registered User
    Join Date
    09-10-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Putting a List in Ascending Order and Skipping Duplicates

    md1972,

    Normally this would work but I need the formatted list for further calculations (ie. average number of days between dates, etc.)

  4. #4
    Forum Contributor
    Join Date
    05-16-2010
    Location
    UK
    MS-Off Ver
    2003 and 2007
    Posts
    252

    Re: Putting a List in Ascending Order and Skipping Duplicates

    With dates in cells A2:A7, put this formula in B2 and copy down to B7:

    =IF(ISERROR(LOOKUP(99^99,IF(COUNTIF($B$1:B1,$A$2:$A$7)=0,1/$A$2:$A$7),$A$2:$A$7)),"",LOOKUP(99^99,IF(COUNTIF($B$1:B1,$A$2:$A$7)=0,1/$A$2:$A$7),$A$2:$A$7))

    enter the formula with Ctrl+Shift+Enter
    Last edited by pb71; 09-10-2010 at 01:38 PM.

  5. #5
    Registered User
    Join Date
    09-10-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Putting a List in Ascending Order and Skipping Duplicates

    pb71,

    Thanks for the quick response! I used your formula but here are the results I am getting using the sample data in my original post"

    Original:
    05/23/2008
    02/02/2005
    <blank>
    06/14/2001
    02/02/2005
    <blank>

    Formatted (using your formula):
    02/02/2005
    06/14/2001
    05/23/5008
    <blank>
    <blank>
    <blank>

    So it is taking care of duplicates and blanks, but it is not in ascending order yet. Anyone know how to put them in ascending order? Thanks again!

  6. #6
    Forum Contributor
    Join Date
    05-16-2010
    Location
    UK
    MS-Off Ver
    2003 and 2007
    Posts
    252

    Re: Putting a List in Ascending Order and Skipping Duplicates

    Try this:

    =IF(ISERROR(SMALL(IF(COUNTIF($B$1:B1,$A$2:$A$7)=0,$A$2:$A$7),1+COUNTBLANK($A$2:$A$7))),"",SMALL(IF(COUNTIF($B$1:B1,$A$2:$A$7)=0,$A$2:$A$7),1+COUNTBLANK($A$2:$A$7)))

    entered with Ctrl+Shift+Enter

  7. #7
    Registered User
    Join Date
    09-10-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Putting a List in Ascending Order and Skipping Duplicates

    pb71,

    That worked perfectly!! Thank you so much!

  8. #8
    Forum Contributor
    Join Date
    05-16-2010
    Location
    UK
    MS-Off Ver
    2003 and 2007
    Posts
    252

    Re: Putting a List in Ascending Order and Skipping Duplicates

    No problem AamerP86. I'm not having a good day! I don't know what I was thinking using LOOKUP.

+ 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