Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 67
Default Extracting Address data from single cells

I have a worksheet with a column listing addresses. Unfortunately, the
whole address in each case is entered in a single cell with just commas
separating the different lines, ie:

John Smith, 5 High Street, Anytown, Any County, AB12 CD5

How can I extract the data in these cells and place them in separate
columns, so that the address in cell A1 separates to:

A2 becomes John Smith
A3 becomes 5 High Street
etc, etc

Many thanks.


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default Extracting Address data from single cells

First, select your column of data and leave it selected through the next two
steps.

1) Click Edit/Replace on Excel's menu bar. Put a comma followed by a space
in the "Find What" field (make that all you type is those two characters).
Next, put just a single comma in the "Replace With" field. Finally, click
the Replace All button and then close the dialog box.

2) Click Data/Text To Columns on Excel's menu bar. In the "Step 1 of 3"
dialog, select the Delimited OptionButton and then click the Next button. In
"Step 2 of 3" dialog, put a check mark in the Comma CheckBox and then click
the Finish button.

Your data should be split into the columns the way you want now.

--
Rick (MVP - Excel)


"Terry Bennett" wrote in message
...
I have a worksheet with a column listing addresses. Unfortunately, the
whole address in each case is entered in a single cell with just commas
separating the different lines, ie:

John Smith, 5 High Street, Anytown, Any County, AB12 CD5

How can I extract the data in these cells and place them in separate
columns, so that the address in cell A1 separates to:

A2 becomes John Smith
A3 becomes 5 High Street
etc, etc

Many thanks.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 67
Default Extracting Address data from single cells

Many thanks Rick - that's it!



"Rick Rothstein" wrote in message
...
First, select your column of data and leave it selected through the next
two steps.

1) Click Edit/Replace on Excel's menu bar. Put a comma followed by a space
in the "Find What" field (make that all you type is those two characters).
Next, put just a single comma in the "Replace With" field. Finally, click
the Replace All button and then close the dialog box.

2) Click Data/Text To Columns on Excel's menu bar. In the "Step 1 of 3"
dialog, select the Delimited OptionButton and then click the Next button.
In "Step 2 of 3" dialog, put a check mark in the Comma CheckBox and then
click the Finish button.

Your data should be split into the columns the way you want now.

--
Rick (MVP - Excel)


"Terry Bennett" wrote in message
...
I have a worksheet with a column listing addresses. Unfortunately, the
whole address in each case is entered in a single cell with just commas
separating the different lines, ie:

John Smith, 5 High Street, Anytown, Any County, AB12 CD5

How can I extract the data in these cells and place them in separate
columns, so that the address in cell A1 separates to:

A2 becomes John Smith
A3 becomes 5 High Street
etc, etc

Many thanks.





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
Extracting email address from various data Wade Excel Worksheet Functions 2 June 25th 09 05:08 PM
Extracting data for address lists firestorm1954 Excel Worksheet Functions 3 April 30th 08 09:10 AM
Extracting single piece of data Louis Excel Discussion (Misc queries) 7 February 9th 06 12:28 AM
Extracting single piece of data Ron Coderre Excel Discussion (Misc queries) 0 February 8th 06 07:51 PM
Extracting single piece of data CLR Excel Discussion (Misc queries) 0 February 8th 06 07:46 PM


All times are GMT +1. The time now is 02:43 PM.

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"