PC Review


Reply
Thread Tools Rate Thread

Adding "0" as leading digits into cells in Excel

 
 
=?Utf-8?B?VGlwcGV0dWU=?=
Guest
Posts: n/a
 
      18th Oct 2006
How can I add "0's" as additional first digits for numbers in a row
containing 4000 random numbers, i.e. change 1346 to become 01346 and 2345 to
become 02345... and so forth.

If I try "Format cells" and select "Text" I can type the "0" manually cell
by cell and it will be displayed with the "0" as the first digit. However if
I try to use "Edit" and "Replace" in order to automize the insertion of
thousands of "0", it still leaves the "0" out and only displays the number
as it was before. I would be greatful for any ideas.
 
Reply With Quote
 
 
 
 
SteveW
Guest
Posts: n/a
 
      18th Oct 2006
You can format the cell as Custom 00000
This won't add 1 specific zero, but will work for all 4 digiti numbers
So 10 will appear as 00010 and 10,000 as 10000

Steve


On Wed, 18 Oct 2006 05:09:01 +0100, Tippetue
<(E-Mail Removed)> wrote:

> How can I add "0's" as additional first digits for numbers in a row
> containing 4000 random numbers, i.e. change 1346 to become 01346 and
> 2345 to
> become 02345... and so forth.
>
> If I try "Format cells" and select "Text" I can type the "0" manually
> cell
> by cell and it will be displayed with the "0" as the first digit.
> However if
> I try to use "Edit" and "Replace" in order to automize the insertion of
> thousands of "0", it still leaves the "0" out and only displays the
> number
> as it was before. I would be greatful for any ideas.

 
Reply With Quote
 
Gord Dibben
Guest
Posts: n/a
 
      19th Oct 2006
If you don't care if they become text...........

In a helper row enter ="0" & cellref

Drag/copy across.

When happy, select the helper row and copy it.

Paste Special(in place)>Value>OK>Esc.

Delete original row.


Gord Dibben MS Excel MVP


Gord Dibben MS Excel MVP

On Tue, 17 Oct 2006 21:09:01 -0700, Tippetue
<(E-Mail Removed)> wrote:

>How can I add "0's" as additional first digits for numbers in a row
>containing 4000 random numbers, i.e. change 1346 to become 01346 and 2345 to
>become 02345... and so forth.
>
>If I try "Format cells" and select "Text" I can type the "0" manually cell
>by cell and it will be displayed with the "0" as the first digit. However if
>I try to use "Edit" and "Replace" in order to automize the insertion of
>thousands of "0", it still leaves the "0" out and only displays the number
>as it was before. I would be greatful for any ideas.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding a leading zero "0" to a number in a cell chipwood3 Microsoft Excel Programming 2 22nd Feb 2010 11:18 PM
adding a leading 0 to only the numbers with 4 digits SwampYankee Microsoft Excel Discussion 4 1st Jun 2006 08:34 PM
Is it possible to show leading zeros for "number" cells? =?Utf-8?B?Q29sdW1idXMgRXhjZWwgVXNlcg==?= Microsoft Excel Misc 1 21st Jul 2005 06:19 PM
Add "Significant Figures" to Number tab in "Format Cells" of Excel =?Utf-8?B?TWU=?= Microsoft Excel Misc 1 14th Oct 2004 12:54 PM
adding leading "0" to text field carol Microsoft Access Queries 9 31st Dec 2003 03:18 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:10 AM.