Format

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a spreadsheet with a list of Zip Codes. The Zip Codes are formatted
as
"#####-####". So it looks like 98507-9046 but was entered as 985079046.

I want the Zip Codes to be stored as 98507-9046 instead of 985079046. How
can I do this for over 1000 entries instead of doing it manually one by one?

thanks, Lamar
 
Use a help column, assume the data starts in A2, insert a new column B
(unless B is already empty) and in B2 put

Copy down the formula 1000 rows (double click lower right corner of B2)

copy and paste special as values in place, once that is done you can delete
column A
 
These formulae can convert the numerics to the text format you
require:

=TEXT(A1,"00000-0000")

or

=LEFT(A1,5)&"-"&RIGHT(A1,4)

assuming the data starts in A1. Just copy them down the column, then
you can fix the values and get rid of the original column.

Hope this helps.

Pete
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top