Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 24
Default Sort addresses for data split

We're in the process of merging data from one database to a new one. The old
database kept addresses as a single field, i.e., 11700 Princeton Pike. The
new database has two fields, one for Number (11700) and one for street
(Princeton Pike). THe total dataset has over 40,000 records and my test data
set has 1,500. Trying to sort in Excel is not possible, as many posters here
have mentioned. Doing Text-to-Columns just 1,500 times is a big enough pain,
let alone 40,000.
Any suggestions?
--
I know enuff to be dangerous.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Sort addresses for data split

You can select your 40000 cell range (single column only) and do one text to
columns. Same with the 1500 version.

And if you wanted to combine them, you could use a formula:

=a1&" "&b1
if a1 contained the number and b1 contained the rest.

Or you could split the combined version based on the first space:

=left(a1,search(" ",a1)-1)
and
=mid(a1,search(" ",a1)+1, 32768)

(32768 can be any number larger than the longest entry)

RealGomer wrote:

We're in the process of merging data from one database to a new one. The old
database kept addresses as a single field, i.e., 11700 Princeton Pike. The
new database has two fields, one for Number (11700) and one for street
(Princeton Pike). THe total dataset has over 40,000 records and my test data
set has 1,500. Trying to sort in Excel is not possible, as many posters here
have mentioned. Doing Text-to-Columns just 1,500 times is a big enough pain,
let alone 40,000.
Any suggestions?
--
I know enuff to be dangerous.


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 24
Default Sort addresses for data split

That would work, but as I said, one field is the street number. And as is
true in most communities, the street numbers can range from a single digit to
5 digits. I did cheat and use the Text to Columns wich got most of the sample
set done. I used a set width with the break being after the third digit. Took
care of most of the cells.
--
I know enuff to be dangerous.


"Dave Peterson" wrote:

You can select your 40000 cell range (single column only) and do one text to
columns. Same with the 1500 version.

And if you wanted to combine them, you could use a formula:

=a1&" "&b1
if a1 contained the number and b1 contained the rest.

Or you could split the combined version based on the first space:

=left(a1,search(" ",a1)-1)
and
=mid(a1,search(" ",a1)+1, 32768)

(32768 can be any number larger than the longest entry)

RealGomer wrote:

We're in the process of merging data from one database to a new one. The old
database kept addresses as a single field, i.e., 11700 Princeton Pike. The
new database has two fields, one for Number (11700) and one for street
(Princeton Pike). THe total dataset has over 40,000 records and my test data
set has 1,500. Trying to sort in Excel is not possible, as many posters here
have mentioned. Doing Text-to-Columns just 1,500 times is a big enough pain,
let alone 40,000.
Any suggestions?
--
I know enuff to be dangerous.


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Sort addresses for data split

Maybe the formula approach looking for the first space would have been better.

RealGomer wrote:

That would work, but as I said, one field is the street number. And as is
true in most communities, the street numbers can range from a single digit to
5 digits. I did cheat and use the Text to Columns wich got most of the sample
set done. I used a set width with the break being after the third digit. Took
care of most of the cells.
--
I know enuff to be dangerous.

"Dave Peterson" wrote:

You can select your 40000 cell range (single column only) and do one text to
columns. Same with the 1500 version.

And if you wanted to combine them, you could use a formula:

=a1&" "&b1
if a1 contained the number and b1 contained the rest.

Or you could split the combined version based on the first space:

=left(a1,search(" ",a1)-1)
and
=mid(a1,search(" ",a1)+1, 32768)

(32768 can be any number larger than the longest entry)

RealGomer wrote:

We're in the process of merging data from one database to a new one. The old
database kept addresses as a single field, i.e., 11700 Princeton Pike. The
new database has two fields, one for Number (11700) and one for street
(Princeton Pike). THe total dataset has over 40,000 records and my test data
set has 1,500. Trying to sort in Excel is not possible, as many posters here
have mentioned. Doing Text-to-Columns just 1,500 times is a big enough pain,
let alone 40,000.
Any suggestions?
--
I know enuff to be dangerous.


--

Dave Peterson


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Sort Invalid Email Addresses? la90292 New Users to Excel 10 February 10th 06 05:36 AM
How can I sort multiple times Sorting data Excel Worksheet Functions 2 February 9th 06 05:22 PM
HELP! How do you--> Lock a set of rows but also link worksheets to FRUSTRATED Excel Discussion (Misc queries) 6 December 29th 04 10:05 PM
How do you sort a column of email addresses by domain name in Exc. Andy R Excel Discussion (Misc queries) 5 December 10th 04 09:26 PM
Data > Sort function amnesia? Dave D Excel Discussion (Misc queries) 1 November 29th 04 10:44 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"