Solved

leading 0's stripped

Posted on 2014-02-17
3
166 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 8

Assisted Solution

by:Naresh Patel
Naresh Patel 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

To Patch or not to Patch? That is the question!

Don't get caught out like thousands of others around the world in the recent Ransomware Fiasco!
Discuss..
- Why it's not a good idea to wait before Patching
- Sensible approaches to Patching discussed
- Add your feedback, comments and suggestions

Question has a verified solution.

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

This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

738 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