#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Format


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
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default Format

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


--
Regards,

Peo Sjoblom


"Lamar" wrote in message
...

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



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Format

These formulae can convert the numerics to the text format you
requi

=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

On Jun 28, 11:34 pm, Lamar wrote:
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



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default Format

Oops! Forgot to include the formula

=TEXT(A2,"00000-0000")


--
Regards,

Peo Sjoblom



"Peo Sjoblom" wrote in message
...
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


--
Regards,

Peo Sjoblom


"Lamar" wrote in message
...

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





  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Format

custom format:

00000-0000


"Lamar" wrote:


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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Lock Cell Format - Allow copy and paste of data without format change Chris12InKC Excel Worksheet Functions 2 May 9th 23 07:42 PM
Decide comment format 'globally'? Restore format with ws_change? tskogstrom Excel Discussion (Misc queries) 0 April 16th 07 09:07 AM
Custom Cell format to mimic time format [email protected] Excel Discussion (Misc queries) 6 November 7th 06 09:17 PM
Replace million-billion number format to lakhs-crores format Sumit Excel Discussion (Misc queries) 1 December 9th 05 04:58 PM
how to format excel format to text format with separator "|" in s. azlan New Users to Excel 1 January 31st 05 12:57 PM


All times are GMT +1. The time now is 06:37 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"