Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Padding and Concatenate

Okay I have a collumn of formulas that generate numerical codes.

Because they're codes I need them to retain the 000 padding before them.
I do this by using the custom padding. so excel displays the collumn like...

0000001
0000002
0000003

Now... I need to concatenate these numerical values to the end of a text
code.
so I'm adding say, "code" to the begining of each.

what I want looks like

code.0000001
code.0000002
code.0000003

but when I try to do it, I loose the padding, resulting in

code.1
code.2
code.3

any ideas?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 396
Default Padding and Concatenate

If the numbers are in column A, consider:

="code."&Text(A1,"0000000")

--
Wigi
http://www.wimgielis.be = Excel/VBA, soccer and music


"Static" wrote:

Okay I have a collumn of formulas that generate numerical codes.

Because they're codes I need them to retain the 000 padding before them.
I do this by using the custom padding. so excel displays the collumn like...

0000001
0000002
0000003

Now... I need to concatenate these numerical values to the end of a text
code.
so I'm adding say, "code" to the begining of each.

what I want looks like

code.0000001
code.0000002
code.0000003

but when I try to do it, I loose the padding, resulting in

code.1
code.2
code.3

any ideas?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Padding and Concatenate

ah yes, thank you. Thats exactly what I needed.

"Wigi" wrote:

If the numbers are in column A, consider:

="code."&Text(A1,"0000000")

--
Wigi
http://www.wimgielis.be = Excel/VBA, soccer and music


"Static" wrote:

Okay I have a collumn of formulas that generate numerical codes.

Because they're codes I need them to retain the 000 padding before them.
I do this by using the custom padding. so excel displays the collumn like...

0000001
0000002
0000003

Now... I need to concatenate these numerical values to the end of a text
code.
so I'm adding say, "code" to the begining of each.

what I want looks like

code.0000001
code.0000002
code.0000003

but when I try to do it, I loose the padding, resulting in

code.1
code.2
code.3

any ideas?

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
Padding with leading zeros GKW in GA Excel Discussion (Misc queries) 2 July 4th 07 12:42 AM
Cell margins/padding ll17 Excel Discussion (Misc queries) 1 May 7th 07 11:10 PM
padding ? vbastarter Excel Discussion (Misc queries) 2 March 7th 06 12:11 PM
Change the cell padding? L_Coop Excel Worksheet Functions 1 December 14th 04 03:59 PM


All times are GMT +1. The time now is 07:37 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"