extracting numerics and alphas from cells

DevDevil

New Member
Joined
Dec 14, 2005
Messages
2
I have a downloaded zip code list that shows the 5 digit numeric zip code and the city which it is in. I'm building a database for a website and need to extract the zip code and city seperately to populate zipCode and city fields in the database. been looking for something already done for me for the state of Texas with no luck. Is there a formula that I can use to seperate the numeric and alpha parts of the record. Once I have this I can export to my database program. I appreciate any help with this matter.
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Welcome to the board

What does your data look like, do you just have zip code and City in one cell with no other data - what separates the two?

If it's something like

12345 Dallas

then can you not use Data > Text to columns to split into separate columns?
 
Upvote 0
Is it all run together as in "99999SanLuis" or is it delimited with a space such as "99999 SanLuis"?

If the first case, you can use the Left(), Mid() and Right() functions for parsing.

If the second case, you can use text-to-columns found under the data menu.
 
Upvote 0
Thanks to both of you. I used text to columns because my fields looked like this ' 73301 Austin'. You guys just saved me days of headaches.
 
Upvote 0

Forum statistics

Threads
1,215,650
Messages
6,126,014
Members
449,280
Latest member
Miahr

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