+ Reply to Thread
Results 1 to 8 of 8

req: Help with Sorting

  1. #1
    Registered User
    Join Date
    11-22-2006
    Posts
    3

    Question req: Help with Sorting

    I have some data that looks like this:

    slinko_1163939680 slinko name1 12/20/2006 sarge ADH534
    slinko_1163939680 slinko name1 ----------- sarge ADH534
    slinko_1163939680 slinko name1 ----------- sarge ADH534
    slinko_1163939680 slinko name1 ----------- sarge ADH236
    slinko_1163939680 slinko name1 ----------- sarge ADH446
    slinko_1163939680 slinko name2 12/19/2006 slinko ADH387
    slinko_1163939680 slinko name2 ----------- sarge ADH534
    slinko_1163939680 slinko name2 ----------- sarge ADH534
    slinko_1163939680 slinko name2 ----------- sarge ADH236
    ..
    ..
    ..
    ..

    I would like to filter it so I get the following:

    slinko_1163939680 slinko name1 12/20/2006 sarge ADH534
    slinko_1163939680 slinko name1 ----------- sarge ADH236
    slinko_1163939680 slinko name1 ----------- sarge ADH446
    slinko_1163939680 slinko name2 12/19/2006 slinko ADH387
    slinko_1163939680 slinko name2 ----------- sarge ADH236


    The last column is for tape numbers, so I need to grab unique tape numbers that have unique names (column 3) associated with them.

    Essentially I could have two duplicate tape numbers listed in the sort as long as they were assoicated to unique names (column 3).

    Sorry if this is vague, let me know if you need more information. Thanks for your time.

  2. #2
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    It seems that what you looking for is not sorting but
    Data Filter AdvancedFilter
    Unique Items Only (down at the bottom left)

    HTH
    Carim

  3. #3
    Registered User
    Join Date
    11-22-2006
    Posts
    3

    Thanks -- one more thing

    That advance filter works very well -- one question though,

    When I use advanced filter I have this problem

    Say I have:

    slinko_1163939680 slinko name1 12/20/2006 sarge ADH534
    slinko_1163939680 slinko name1 ----------- sarge ADH534

    after the filter I should only have:

    slinko_1163939680 slinko name1 12/20/2006 sarge ADH534

    I know i'm not getting my desired result because of the date column. The date is shown when the date changes but then is ommitted on all the entries following until the date changes again.

    example:

    slinko_1163939680 slinko name1 12/20/2006 sarge ADH534
    slinko_1163939680 slinko name1 ----------- sarge ADH534
    slinko_1163939680 slinko name1 ----------- sarge ADH534
    slinko_1163939680 slinko name1 ----------- sarge ADH236
    slinko_1163939680 slinko name1 ----------- sarge ADH446
    slinko_1163939680 slinko name2 12/19/2006 slinko ADH387
    slinko_1163939680 slinko name2 ----------- sarge ADH534
    slinko_1163939680 slinko name2 ----------- sarge ADH534


    so it is giving me unique rows, but I need to figure out away to either fill in the blank date gaps so they wont be counted as a 'unique row' or some other work-around .. any suggestions?

    thnx

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Hi,

    The attached website shows you up to fill the gap's

    http://www.contextures.com/xlDataEntry02.html#Fill

    Then do the advance filter

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  5. #5
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Well ...

    In addition to the field you are using, you can also monitor the date fields ... with blanks and non blanks which, by combination, will give you the result you want ...

    HTH
    CArim

  6. #6
    Registered User
    Join Date
    11-22-2006
    Posts
    3

    Thumbs up Excellent link!

    Thank you for your help Carim & VBA Noob. You've made my life a lot easier!

  7. #7
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Thanks for your thanks ...

    And let'us not forget Debra too ...!!!

    Carim

  8. #8
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Well said Carim,


    Debra site rocks

    I've just purchased her pivot book and it's great too

    VBA Noob

+ 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