#1   Report Post  
Posted to microsoft.public.excel.misc
MarkM
 
Posts: n/a
Default Pad field length

I have a spreadsheet with item numbers that range from 6-8 characters in
length. What I want to try to accomplish is pad the end of those items
numbers that are less than 8 chars. with 0s so they are 8 chars. long. So
item # ME850C will pad out to ME850C00. Can I do this in Excel 2000?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
Peo Sjoblom
 
Posts: n/a
Default Pad field length

You can use a help column, assume the example is in A1

=A1&REPT("0",8-LEN(A1))

copy down and paste special as values then paste over the old entries if
needed


--

Regards,

Peo Sjoblom

http://nwexcelsolutions.com



"MarkM" wrote in message
...
I have a spreadsheet with item numbers that range from 6-8 characters in
length. What I want to try to accomplish is pad the end of those items
numbers that are less than 8 chars. with 0's so they are 8 chars. long.
So
item # ME850C will pad out to ME850C00. Can I do this in Excel 2000?

Thanks



  #3   Report Post  
Posted to microsoft.public.excel.misc
MarkM
 
Posts: n/a
Default Pad field length

Thank you for your help. That is exactly what I needed.

"Peo Sjoblom" wrote:

You can use a help column, assume the example is in A1

=A1&REPT("0",8-LEN(A1))

copy down and paste special as values then paste over the old entries if
needed


--

Regards,

Peo Sjoblom

http://nwexcelsolutions.com



"MarkM" wrote in message
...
I have a spreadsheet with item numbers that range from 6-8 characters in
length. What I want to try to accomplish is pad the end of those items
numbers that are less than 8 chars. with 0's so they are 8 chars. long.
So
item # ME850C will pad out to ME850C00. Can I do this in Excel 2000?

Thanks




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
How can I show all field data in a pivot table, instead of blank Alastair Scott Excel Discussion (Misc queries) 3 August 17th 05 07:08 PM
Field length of VBA totals in Excel 2003 JoanE Excel Discussion (Misc queries) 2 August 17th 05 09:49 AM
Export file to CSV delimited with fixed field length Plucky Duck Excel Discussion (Misc queries) 2 May 28th 05 11:01 PM
How do I fix a field length? Karina Excel Discussion (Misc queries) 4 February 1st 05 04:39 PM
Pivot Tables..I give up... Debutante Excel Worksheet Functions 4 January 21st 05 10:43 PM


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

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"