Solved

leading 0's stripped

Posted on 2014-02-17
3
164 Views
Last Modified: 2014-02-17
Is there any way to add back into a column leading 0's that have been stripped during an extract. Basically we have a column, all should be in a 8 character numerical sequence. However those beginning with 0's have been stripped down to 7 characters. How could I reformat those (i.e. if 7 characters long add a leading 0).
0
Comment
Question by:pma111
3 Comments
 
LVL 8

Assisted Solution

by:itjockey
itjockey earned 167 total points
ID: 39864584
try this
=IF(LEN(A1)=7,"0"&A1,A1)

Open in new window


Thanks
0
 
LVL 70

Accepted Solution

by:
KCTS earned 167 total points
ID: 39864602
Select Format-Cells-Custom and type 00000000
0
 
LVL 24

Assisted Solution

by:Steve
Steve earned 166 total points
ID: 39864607
Try:

=TEXT(A1,"00000000")

Then copy down the rows.
Then copy and paste special values back over the original range.

Or
format the range using a custom format of "00000000"
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article we discuss how to recover the missing Outlook 2011 for Mac data like Emails and Contacts manually.
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question