PC Review


Reply
Thread Tools Rate Thread

creating numbers to a fixed length string...

 
 
=?Utf-8?B?ZHM=?=
Guest
Posts: n/a
 
      3rd Jul 2007
Hi!

I have a column of numbers that have varied length some have 2 digits, some
have 3 and some 4 and some 6. I need to add a sting 0's to bring the length
of the string of all all the numbers to 6.

I am an excel newbie so any help would be great!
 
Reply With Quote
 
 
 
 
=?Utf-8?B?TWlrZSBI?=
Guest
Posts: n/a
 
      3rd Jul 2007
hi,

Select your cells then

Format:Cells|Custom

add a custom format of 000000

Mike

"ds" wrote:

> Hi!
>
> I have a column of numbers that have varied length some have 2 digits, some
> have 3 and some 4 and some 6. I need to add a sting 0's to bring the length
> of the string of all all the numbers to 6.
>
> I am an excel newbie so any help would be great!

 
Reply With Quote
 
Gord Dibben
Guest
Posts: n/a
 
      4th Jul 2007
Custom format to 000000


Gord Dibben MS Excel MVP

On Tue, 3 Jul 2007 10:40:03 -0700, ds <(E-Mail Removed)> wrote:

>Hi!
>
>I have a column of numbers that have varied length some have 2 digits, some
>have 3 and some 4 and some 6. I need to add a sting 0's to bring the length
>of the string of all all the numbers to 6.
>
>I am an excel newbie so any help would be great!


 
Reply With Quote
 
=?Utf-8?B?ZHM=?=
Guest
Posts: n/a
 
      5th Jul 2007
Thanks Mike - worked like a charm.

Very much appreciated!
 
Reply With Quote
 
=?Utf-8?B?ZHM=?=
Guest
Posts: n/a
 
      5th Jul 2007
Thanks Gord. Appreciate the confirmation of this technique.
 
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
Creating sequential text string of fixed length dhstein Microsoft Excel Misc 6 10th Dec 2008 03:52 AM
Re: Creating sequential text string of fixed length Fred Smith Microsoft Excel Misc 0 10th Dec 2008 02:39 AM
Fixed length string Scotty Microsoft VB .NET 4 26th Mar 2008 04:17 AM
Fixed Length String =?Utf-8?B?U2hhd24gQw==?= Microsoft Access Form Coding 5 6th Jun 2005 10:13 PM
How to get the fixed length of a fixed length string active Microsoft VB .NET 1 21st Nov 2003 09:43 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:28 AM.