LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
bubberz
 
Posts: n/a
Default Format single column cells to be 6 characters long


I have a sheet with a single column, but there are about 3700 rows.
Some are 4 to 5 characters long. I need them all 6 char long.

Below is kinda what I need to do (add zeros to the left side to make
the cells 6 chars long):

If Len(x) = 4 then "00"+X
Else
If len(x) = 5 then "0"+X
End If


--
bubberz
------------------------------------------------------------------------
bubberz's Profile: http://www.excelforum.com/member.php...o&userid=27181
View this thread: http://www.excelforum.com/showthread...hreadid=466838

 
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
Add the same character(s) to multiple cells in a column (or row) . flashcatj Excel Discussion (Misc queries) 6 April 22nd 23 06:09 AM
Date & Time mully New Users to Excel 4 May 23rd 05 11:56 AM
Count Position of Filtered TEXT cells in a column Sam via OfficeKB.com Excel Worksheet Functions 0 May 15th 05 08:14 PM
COUNT NON-BLANK CELLS WITH REFERENCE TO ANOTHER COLUMN carricka Excel Worksheet Functions 1 May 6th 05 04:50 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


All times are GMT +1. The time now is 03:18 PM.

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

About Us

"It's about Microsoft Excel"