Excel Formulas to sort a large number of postcodes

Anonymous
2017-02-14T02:25:31+00:00

Hi,

I have a large number of post codes (about 900 or so) and I want to find out how many times each of the post codes occurs within that data. There are about 135 odd different post codes, so don't want to write 135 different 'countif' formulas.... any ideas on a fast and easy way?

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Anonymous
    2017-02-14T05:30:28+00:00

    Lets say your 900 postcodes are in A2:A901, with a column label (POSTCODE) in A1.

    Select A1:A901, then on the Data tab, Sort and Filter group choose Advanced Filter

    Select 'Copy to another location', tick 'Unique records only', and enter B1 in the 'Copy to:' box

    In C2 enter the formula: =COUNTIF(A$2:A$901,B2) and copy down to the end of the unique list.

    3 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2017-02-14T06:52:41+00:00

    The best and fastest way will be use pivot table.

    Select your range and insert a pivot table. Put your postal code in row area as well as in Value area. It will give you desired result.

    See the snap shot.

    3 people found this answer helpful.
    0 comments No comments