+ Reply to Thread
Results 1 to 3 of 3

Can I sort numerically by frequency of occurrence?

  1. #1
    Registered User
    Join Date
    04-20-2005
    Posts
    3

    Can I sort numerically by frequency of occurrence?

    Hey all,

    I have a rather large spreadsheet in which column C is ID's. What I would like to be able to do is sort the spreadsheet numerically by frequency of occurrence of ID in column C. For example if ID 90765 only occurs once it should be the first one in the column. Hopefully I have explained my problem good enough. Any help will be greatly appreciated...


    Thanks
    Jeff
    aka "bowfever"

  2. #2
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    Try using a helper column...

    1) Enter the following formula in D1, and copy down:

    =COUNTIF($C$1:$C$100,C1)

    2) Select your data (all columns, including Column D)

    3) Data > Sort > Sort by > Column D > Then by > Column C

    Adjust the range accordingly.

    Hope this helps!

  3. #3
    Registered User
    Join Date
    11-20-2003
    Location
    Mesquite Texas
    MS-Off Ver
    Excel 2007
    Posts
    50
    I don't know how you could do it in one step, but here's a fix.

    Go to a blank column and insert formula =COUNTIF($C:$C,C1) Assuming your IDs are in column C, and row 1 is your 1st row of data. Copy down to all rows, then sort by this column.
    Last edited by rbanks; 04-21-2005 at 11:05 AM.

+ 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