Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Extracting data for address lists

I can use LEFT and MID to split certain lists, but where I have a whole
address in a cell, separated by commas, I need to take the data before the
first comma to another cell, the data between the next pair of commas to
another cell and so on. I can do this labouriously column by column, but is
there any shorter way where the program can look for data between sets of
characters (in this case the commas)?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,533
Default Extracting data for address lists

Hi

Goto Data Text To Columns Choose Delimited and let the wizard guide you
through.

Regards,
Per

"firestorm1954" skrev i
meddelelsen ...
I can use LEFT and MID to split certain lists, but where I have a whole
address in a cell, separated by commas, I need to take the data before the
first comma to another cell, the data between the next pair of commas to
another cell and so on. I can do this labouriously column by column, but
is
there any shorter way where the program can look for data between sets of
characters (in this case the commas)?


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Extracting data for address lists

Hi,

Posting a sample of your data would have been helpful because there are a
couple of ways of doing this. The simplest is probably using

Data|Text to columns and splitting the data in that way.

Another method involves finding the commas using FIND and then using Left,
right or Mid to seperate the data like this:
=FIND(",",A1,1)
finds the first comma so
=LEFT(A1,FIND(",",A1,1)-1)
Returns everyting before that comma

To find the second comma use
=FIND(",",A1,FIND(",",A1,1)+1)
This the same as the first find but because we know the position of the
first comma from that formula we can use that position (+1) to find the
second so now using mid the text between the first and second comma can be
extracted.

=MID(A1,FIND(",",A1,1)+1,FIND(",",A1,FIND(",",A1,1 )+1)-FIND(",",A1,1)-1)

Mike
"firestorm1954" wrote:

I can use LEFT and MID to split certain lists, but where I have a whole
address in a cell, separated by commas, I need to take the data before the
first comma to another cell, the data between the next pair of commas to
another cell and so on. I can do this labouriously column by column, but is
there any shorter way where the program can look for data between sets of
characters (in this case the commas)?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Extracting data for address lists

Highlight the column and click on Data | Text to Columns, choosing
delimited and comma as delimiter.

Hope this helps.

Pete

On Apr 30, 8:49*am, firestorm1954
wrote:
I can use LEFT and MID to split certain lists, but where I have a whole
address in a cell, separated by commas, I need to take the data before the
first comma to another cell, the data between the next pair of commas to
another cell and so on. I can do this labouriously column by column, but is
there any shorter way where the program can look for data between sets of
characters (in this case the commas)?


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 embbeded web address links Suzie Excel Discussion (Misc queries) 1 March 5th 08 02:32 PM
Excel Address Lists Karen Excel Discussion (Misc queries) 3 August 23rd 06 11:43 PM
Extracting out of a emai address string harpscardiff Excel Discussion (Misc queries) 6 June 12th 06 09:19 AM
Comparing two lists and extracting data from one to another Clement Excel Worksheet Functions 2 January 12th 06 06:38 PM
Extracting # numbers from address KH Excel Discussion (Misc queries) 2 August 4th 05 05:45 PM


All times are GMT +1. The time now is 07:24 PM.

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

About Us

"It's about Microsoft Excel"