Solved

leading 0's stripped

Posted on 2014-02-17
3
162 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Excel Spacing Anomaly 4 24
Request to review costing formula 3 36
Excel - DATEDIF error #NUM 6 26
VBA to add shapes inside a chart 9 20
PaperPort has a feature called the "Send To Bar". It provides a convenient, drag-and-drop interface for using other installed software, such as Microsoft Office. However, this article shows that the latest Office 2016 apps (installed with an Office …
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.
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…

803 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