Separate text string into 2 columns

FireBott

Board Regular
Joined
Nov 10, 2003
Messages
66
Office Version
  1. 2016
Platform
  1. Windows
Hi. I have looked through this forum and can't find anything to help me. I have 1 column that contains city names followed by a 5 digit code. I need to separate the 5 digit code from the city name. There is no space between the city name and number. Some of the city names have spaces. Is there a way to have a formula too look at the string, find the first numeric character and separate it.

1620829278082.png
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Try using this.
Text StringTownZip
acrp johnstown00144
Excel Formula:
=TRIM(LEFT(A1,MIN(FIND({0,1,2,3,4,5,6,7,8,9},A1&"0123456789"))-1))
Excel Formula:
=RIGHT(A1,5)

The zip formula assumes that the Zip Code is always 5 characters long.
 
Upvote 0
Another option
Excel Formula:
=LEFT(A2,LEN(A2)-5)
and
Excel Formula:
=TEXT(RIGHT(A2,5),"00000")
 
Upvote 0
Solution
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,978
Messages
6,122,549
Members
449,089
Latest member
davidcom

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top