Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 2
Default Extract Specific Text

I have a mailing list that has a line in each address that looks like the examples below:

Anchorage, AK 99523-2416

Montville, NJ 07045-9601

San Francisco, CA 94110-5368

I would like to put the state abbreviation in the column next to it so I can sort by state. Ideally I wuld like to break out the city, state and zip. The state is the essential piece.

Michael
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Beege
 
Posts: n/a
Default Extract Specific Text

mjmoore

First, search/replace comma with nothing
Then, text to columns.

Beege

"mjmoore" wrote in message
...

I have a mailing list that has a line in each address that looks like
the examples below:

Anchorage, AK 99523-2416

Montville, NJ 07045-9601

San Francisco, CA 94110-5368

I would like to put the state abbreviation in the column next to it so
I can sort by state. Ideally I wuld like to break out the city, state
and zip. The state is the essential piece.

Michael


--
mjmoore



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CLR
 
Posts: n/a
Default Extract Specific Text

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

Vaya con Dios,
Chuck, CABGx3



"mjmoore" wrote:


I have a mailing list that has a line in each address that looks like
the examples below:

Anchorage, AK 99523-2416

Montville, NJ 07045-9601

San Francisco, CA 94110-5368

I would like to put the state abbreviation in the column next to it so
I can sort by state. Ideally I wuld like to break out the city, state
and zip. The state is the essential piece.

Michael


--
mjmoore

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
returning specific text only Jane Excel Worksheet Functions 10 March 21st 06 08:44 PM
formula to extract partial content (text) of cell milano Excel Discussion (Misc queries) 3 November 9th 05 04:57 PM
Using 'If' refer to specific words in a cell containing text Casino Guy Excel Worksheet Functions 5 August 10th 05 02:02 PM
Sort or Filter option? Mcobra41 Excel Worksheet Functions 3 February 23rd 05 07:22 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 04:59 AM.

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"