Excel drops leading zeros

shanealbrandt

New Member
Joined
Aug 12, 2008
Messages
25
I have a column where I've typed several numbers that start with zero, however when I convert this column to text, it drops the leading zeros. How can I keep the leading zeros?

Example:
Number Format: 00306
Text Format: 306

Thanks,
Shane
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
When typing it in the cell you could always start it with an apostrophe '. But if you format as text and then type in the number it shouldn't drop the zero? You could also set a custom formatting of 00000.

Hope that helps.
 
Upvote 0
Well the problem is I've got 800 rows of data typed in already, and I didn't want to have to retype everything.

I'm going to have this same problem with the zip code field too. Sure, I can format tjhe column for Zip code, but when i save it as a CSV file, it drops all of the zeros again.

I need it as a CSV file to I can import it into ADP.

Ideas? Anyone??

-S
 
Upvote 0
Set the cell to text and then use this formula and then copy and paste values:

=rept("0",5-len(a1))&a1

Hope that helps.
 
Upvote 0

Forum statistics

Threads
1,214,985
Messages
6,122,607
Members
449,090
Latest member
vivek chauhan

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