LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 30
Default How do I manipulate a string to collect the address from it?

My string is in a notes column (exported file to excel) which includes a
variable length address separated by two distinct words (Address: and
Description) which I would like to place into three new columns.

For example, string in column is:
"'ABC Ltd Address: John Farm
Ringo Road
Milton Keynes
MK11 ABC
Description: Band members Telephone: (01908) 111111 Facsimile: (01908)
222222 Web site www.abc.com

So I would like to obtain the address as follows:
Street City Post Code
John Farm Milton Keynes MK11 ABC
Ringo Road

I would also like to split the other data into appropriate columns but I am
more concerned with the address for now.

Can anyone help please?

I have tried Text to Columns but can't work out what the delimters are as
the data is on separate lines as shown above, so no comma to use etc and
space varies. Also tried MID starting at number of characters to Address: but
don't know how to work backwards to Description.
 
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
Find String in another string - only between spaces Nir Excel Worksheet Functions 9 November 2nd 06 11:31 AM
List File Properties - Author SS Excel Worksheet Functions 1 June 23rd 06 04:56 PM
Extracting out of a emai address string harpscardiff Excel Discussion (Misc queries) 6 June 12th 06 09:19 AM
Browse File for Mac John Vickers Excel Discussion (Misc queries) 1 February 17th 06 06:23 PM
Read Text File into Excel Using VBA Willie T Excel Discussion (Misc queries) 13 January 8th 05 12:37 AM


All times are GMT +1. The time now is 11:36 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"