+ Reply to Thread
Results 1 to 7 of 7

Sort/Count a list of places

  1. #1
    Forum Contributor
    Join Date
    10-17-2007
    Location
    Midlands, UK
    MS-Off Ver
    2003
    Posts
    149

    Sort/Count a list of places

    Hi there everyone!!

    I have a list of approx 10000 UK towns (not all different towns they do repeat themselves through out the list) and i would like to find out which ten towns feature the most in my list. Could someone please tell me an easy way of finding this out, apposed to me individually counting them all!

    Thanks in advance!!

    Apologies for the rubbish title but i am unsure of what this process is called!!

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    The best way would probably be to use a Pivot Table.

    Select the range of towns, including the column Title.

    Go to Data|Pivot Table and Pivot Charts Report

    Click Next on first and second windows

    Click Existing Worksheet on 3rd window and enter where you want the table to go, then click Layout and drag the column title to the Data area (a field called "count of ...." should appear) and drag the same column title to the Row area...

    Click Ok and click Finish... the table should appear in your sheet. This shows the count of each town.

    To sort....first go to View|Toolbars|Pivot Table to get the Pivot Table toolbar.

    Click on any town in your Pivot table and then click on "Pivot Table" in the toolbar. Select Sort and Top 10. Select Ascending or Descending on the left side and click Ok.

    You should have your top 10 most frequent towns listed in the table.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor
    Join Date
    11-23-2007
    Location
    Suffolk, UK
    Posts
    298
    hi frazzfreeman,

    i have used in the past data/consolidate, if you add a 1 to the next cell on each of the towns,

    click into a spare cell
    open consolidate
    in the consolidate control box enter

    function = sum
    reference = a1:b10000

    click add and tick "left column" then click OK

    this will add together all the identical towns and count them at the same time
    then just sort to find the highest 5.
    this will only work if the town data is identical, otherwise each individual entry will be count as a 1

    hope it helps, if you need any assistance post a copy of your sheet

    cheers reg

  4. #4
    Forum Contributor
    Join Date
    10-17-2007
    Location
    Midlands, UK
    MS-Off Ver
    2003
    Posts
    149

    Sort/Count

    Hi,

    I have attached an example of some info i would like to find the top ten (these are not towns but some other info i need)!!!
    Attached Files Attached Files

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Here it is using the Pivot Table method I described....
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    11-23-2007
    Location
    Suffolk, UK
    Posts
    298
    heres the consolidated version

    cheers reg
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    10-17-2007
    Location
    Midlands, UK
    MS-Off Ver
    2003
    Posts
    149
    Cheers people i succeeded both ways. I new it was easy to do i was just being stupid i think!!

    Thanks again..

+ 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