In article <1107707119.371429.79870@l41g2000cwc.googlegroups.com>,
jajoseph@zoominternet.net wrote:
> Is there a way to do it without using Text to Columns in the menu ba
For the following format...
New York, NY 012345
....try the following...
City: =LEFT(A1,SEARCH(",",A1)-1)
State: =MID(A1,SEARCH(",",A1)+2,2)
Zip Code:
=MID(A1,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},A1&"0123456789")),255)
....confirmed with CONTROL+SHIFT+ENTER.
For the following format...
New York, New York 012345
....replace the formula for State with the following...
=MID(A5,SEARCH(",",A1)+2,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},A1&"0123456789"
))-2-(SEARCH(",",A1)+1))
....confirmed with CONTROL+SHIFT+ENTER.
Hope this helps!
Bookmarks