Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Another Excel Question (Not About My Company!)

Thread Tools
 
Search this Thread
 
Old 21 March 2002, 05:05 PM
  #1  
Puff The Magic Wagon!
Moderator
Support Scoobynet!
Thread Starter
iTrader: (2)
 
Puff The Magic Wagon!'s Avatar
 
Join Date: May 2000
Location: From far, far away...
Posts: 16,978
Received 15 Likes on 9 Posts
Question

I have 50,000+ postcodes in an excel spreadsheet. They are sorted alphabetically.

What is the easiest way to group by the first part of the postcode?

ie SW16 2AA is OK & E2 5AA is likewise grouped? Using the space as the decider in the grouping.

OR

Group by the first 2 characters in the postcode, so by SW & E2 & ME etc etc.

Probably the 2nd is easier but I don't know how to do it...

I'm trying to find out how many addresses per postal zone

Old 21 March 2002, 05:22 PM
  #2  
Martingb
Scooby Regular
 
Martingb's Avatar
 
Join Date: Oct 2001
Posts: 65
Likes: 0
Received 0 Likes on 0 Posts
Post

In the next column, use the LEFT function to take the first two letters. Then a quick pivot table on this new column will summarise the data.

e.g. =LEFT(a2,2)

Martin
Old 21 March 2002, 08:15 PM
  #3  
dsmith
Scooby Regular
 
dsmith's Avatar
 
Join Date: Mar 1999
Posts: 4,518
Likes: 0
Received 0 Likes on 0 Posts
Post

Puff,

To Cope with the variable length First part try,,

=LEFT(A1,FIND(" ",A1,1)-1) to give the left hand part and
=RIGHT(A1,LEN(A1)-FIND(" ",A1,1)) to give the right hand part.

Then Sort,pivot etc with the new columns.

Deano
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
KAS35RSTI
Subaru
27
04 November 2021 07:12 PM
Mattybr5@MB Developments
Full Cars Breaking For Spares
28
28 December 2015 11:07 PM
Mattybr5@MB Developments
Full Cars Breaking For Spares
12
18 November 2015 07:03 AM
leg200
Subaru Parts
5
07 October 2015 07:31 AM
Brzoza
Engine Management and ECU Remapping
1
02 October 2015 05:26 PM



Quick Reply: Another Excel Question (Not About My Company!)



All times are GMT +1. The time now is 03:04 AM.