Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 11-10-2014, 10:21 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

Assuming that all of your addresses have 5 digit zipcodes and 2 character states you can use a combination of mid, right, and len formulas to do this quite easily.

The following formulas start with addresses in cell A2
Code:
For the City: =MID(A2,1,LEN(A2)-9)
For the State: =MID(A2,LEN(A2)-7,2)
For the Zip: =RIGHT(A2,5)
Let me know if that works out.

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 12:48 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