ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Pad field length (https://www.excelbanter.com/excel-discussion-misc-queries/81248-pad-field-length.html)

MarkM

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

Peo Sjoblom

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




MarkM

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






All times are GMT +1. The time now is 09:30 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com