+ Reply to Thread
Results 1 to 3 of 3

Detailed sorting question

  1. #1
    Registered User
    Join Date
    08-01-2008
    Location
    ST. Louis
    Posts
    15

    Detailed sorting question

    If I have a list of numbers

    Example
    11
    11
    22
    33
    33
    33
    44
    44
    55
    55
    55
    55

    Is there a way to list these in the amount of times that the numbers appear

    example
    55
    55
    55
    55 because there are 4 55s
    33
    33
    33 because there are 3 33s
    44
    44 2 44s
    11
    11 2 11s
    22 1 22

    I would appreciate any help with this, I can get it done with a lot of manual work but the list is over 5000 rows and that is a lot of autosum and copy and paste. I would also need to creat a macro so this rule could be used on future reports, but that is for another day.

  2. #2
    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
    Say data in Col A. Try this in Col B and drag down

    =COUNTIF(A:A,A1)
    Then sort on Col B descending. Delete Col B when done

    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 !!!

  3. #3
    Registered User
    Join Date
    08-01-2008
    Location
    ST. Louis
    Posts
    15
    Thank you so much, that saved a ton of time.

+ 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