Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
DS DS is offline
external usenet poster
 
Posts: 117
Default creating numbers to a fixed length string...

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!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default creating numbers to a fixed length string...

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!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default creating numbers to a fixed length string...

Custom format to 000000


Gord Dibben MS Excel MVP

On Tue, 3 Jul 2007 10:40:03 -0700, 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!


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
DS DS is offline
external usenet poster
 
Posts: 117
Default creating numbers to a fixed length string...

Thanks Gord. Appreciate the confirmation of this technique.
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
DS DS is offline
external usenet poster
 
Posts: 117
Default creating numbers to a fixed length string...

Thanks Mike - worked like a charm.

Very much appreciated!
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
fixed length file Steve S[_2_] Excel Discussion (Misc queries) 2 March 13th 07 04:12 PM
Fixed length text file Eric Excel Discussion (Misc queries) 1 July 12th 06 10:02 PM
Advanced export/ Fixed length fields raws New Users to Excel 2 January 12th 06 02:38 PM
Create fields in a form with a fixed length sgeels Excel Discussion (Misc queries) 1 November 12th 05 05:11 AM
fixed string length,even other record is copied viv Excel Discussion (Misc queries) 0 May 30th 05 08:28 PM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"