Solved

leading 0's stripped

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Manipulate Data Quickly 2 15
onOpen 14 43
Excel 2016 Hiding Toolbars 7 23
Find missing excel values from Column A and B 4 20
This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

747 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now