LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default extracting info from an address block

I recieve info from clients in outlook.
The info is client addresses and phone.
I would like to build a little function that when I drop the information
into an excel worksheet, that it would process the information to extract
the
NAME ADDRESS1 ADDRESS2 CITY ST ZIP PHONE PHONE2


the info may come like
name
address1
city, st zip

name
addr1
add2
city, st zip

It my have 0-2 phones on the line after the city, st zip

I am not sure if it would be best to paste into the formula bar (and all
take 1 cell), or to paste into a cell, and then it would be 3-7 cells.
Any idea how to handle this?
How could I tell if there is 1 or 2 address lines?

Would it be best to just do something like:
NAME = A1
ADDRESS =A2
ADDRESS2 =if(search(",",A3)0,"",A3)
City
=if(search(",",A3)0,left(A3,search(","A3)),left(A 4,search(",",A4)))
St =??
ZIP =??
phone1 =if(search(",",A3)0,A5,A6) 'how would I format it as a phone?
Phone2 =if(search(",",A3)0,A7,A8)

Thanks
Bruce


 
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
What's wrong: Only one address block appears per page CarolRy Excel Discussion (Misc queries) 2 July 28th 09 04:06 PM
Convert address block into delimited rows? Mr B[_2_] Excel Discussion (Misc queries) 1 July 24th 09 07:32 PM
Address block carriage returns not correct Bill Excel Worksheet Functions 3 October 4th 06 02:10 AM
show a block of info from a list on another worksheet thunderbirds Excel Worksheet Functions 1 December 20th 05 06:06 PM
LINKING Address cells from an EXCEL spreadsheet to fill MapQuest Address Info Duane S. Meyer Excel Programming 0 August 30th 03 12:16 AM


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