Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #5  
Old 11-11-2014, 10:52 PM
excelledsoftware excelledsoftware is offline How to use mid or left functions to seperate city,st,zip with no commas Windows 7 64bit How to use mid or left functions to seperate city,st,zip with no commas Office 2003
IT Specialist
 
Join Date: Jan 2012
Location: Utah
Posts: 455
excelledsoftware will become famous soon enough
Default

Quote:
Originally Posted by macropod View Post
For the City: =LEFT(C2,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},C2 & "0123456789"))-5)
For the State: =MID(C2,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},C2 & "0123456789"))-3,2)
For the Zip: =RIGHT(C2,LEN(C2)+1-MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},C2 & "0123456789")))
Wow Macropod, I never knew you could use curly braces in a search formula like that. I learned something really important today. Thanks.
Reply With Quote
 

Tags
address, function, separate



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use mid or left functions to seperate city,st,zip with no commas Suppress comma in "city , stat zip" line when blank DHammer Mail Merge 1 05-30-2014 02:43 AM
How to use mid or left functions to seperate city,st,zip with no commas No inverted commas in word 2013. tonycrossley Word 3 01-27-2014 04:55 PM
How to use mid or left functions to seperate city,st,zip with no commas mail merge treating CITY as DATE woody Mail Merge 6 01-30-2013 03:22 PM
How to use mid or left functions to seperate city,st,zip with no commas Merge to Seperate Documents joughin Mail Merge 1 05-17-2012 05:08 PM
Seperate Column widths in one worksheet miller.3276 Excel 2 01-27-2010 02:12 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:51 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft