Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
ash ash is offline
external usenet poster
 
Posts: 54
Default CONCATENATE/& Function ?

I am trying to concantenate three columns of data that contain numbers.

The first column has 2 numbers, the second has 4, and the third has 2. When
I combine the three nubmers they form a budget group, so all digits are
necessary.

In the second and third column, many have lead zeroes, or even have all zero
digits. When using the Concatenate or & function, it eliminates the leading
zeroes or leaves out a column if it is all zeroes.

Is there a way around this?

Ex: Column 1: 14 Column2: 0098 Column 3: 15
Currently: =A1&B1&C1 gives 149815 versus the needed 14009815

Any help is appreciated. Thank you!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 430
Default CONCATENATE/& Function ?

Do you need to do any mathematical calculations with the numbers? You could
format all the numbers as text and then use the same forumla as you used
before, it should then show the zeros.

"Ash" wrote:

I am trying to concantenate three columns of data that contain numbers.

The first column has 2 numbers, the second has 4, and the third has 2. When
I combine the three nubmers they form a budget group, so all digits are
necessary.

In the second and third column, many have lead zeroes, or even have all zero
digits. When using the Concatenate or & function, it eliminates the leading
zeroes or leaves out a column if it is all zeroes.

Is there a way around this?

Ex: Column 1: 14 Column2: 0098 Column 3: 15
Currently: =A1&B1&C1 gives 149815 versus the needed 14009815

Any help is appreciated. Thank you!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
Default CONCATENATE/& Function ?

On Fri, 23 Feb 2007 08:42:10 -0800, Ash wrote:

I am trying to concantenate three columns of data that contain numbers.

The first column has 2 numbers, the second has 4, and the third has 2. When
I combine the three nubmers they form a budget group, so all digits are
necessary.

In the second and third column, many have lead zeroes, or even have all zero
digits. When using the Concatenate or & function, it eliminates the leading
zeroes or leaves out a column if it is all zeroes.

Is there a way around this?

Ex: Column 1: 14 Column2: 0098 Column 3: 15
Currently: =A1&B1&C1 gives 149815 versus the needed 14009815

Any help is appreciated. Thank you!



=text(a1,"00")&text(b1,"0000")&text(c1,"00")


--ron
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default CONCATENATE/& Function ?

Try:

=TEXT(A1,"00")&TEXT(B1,"0000")&TEXT(C1,"00")

"Ash" wrote:

I am trying to concantenate three columns of data that contain numbers.

The first column has 2 numbers, the second has 4, and the third has 2. When
I combine the three nubmers they form a budget group, so all digits are
necessary.

In the second and third column, many have lead zeroes, or even have all zero
digits. When using the Concatenate or & function, it eliminates the leading
zeroes or leaves out a column if it is all zeroes.

Is there a way around this?

Ex: Column 1: 14 Column2: 0098 Column 3: 15
Currently: =A1&B1&C1 gives 149815 versus the needed 14009815

Any help is appreciated. Thank you!

  #5   Report Post  
Posted to microsoft.public.excel.misc
ash ash is offline
external usenet poster
 
Posts: 54
Default CONCATENATE/& Function ?

When I tried formatting it as text it got rid of all the leading zeroes. I
appreciate your help though!

I used the formula posted by Topper and it seems to work. Thank again.

"tim m" wrote:

Do you need to do any mathematical calculations with the numbers? You could
format all the numbers as text and then use the same forumla as you used
before, it should then show the zeros.

"Ash" wrote:

I am trying to concantenate three columns of data that contain numbers.

The first column has 2 numbers, the second has 4, and the third has 2. When
I combine the three nubmers they form a budget group, so all digits are
necessary.

In the second and third column, many have lead zeroes, or even have all zero
digits. When using the Concatenate or & function, it eliminates the leading
zeroes or leaves out a column if it is all zeroes.

Is there a way around this?

Ex: Column 1: 14 Column2: 0098 Column 3: 15
Currently: =A1&B1&C1 gives 149815 versus the needed 14009815

Any help is appreciated. Thank you!



  #6   Report Post  
Posted to microsoft.public.excel.misc
ash ash is offline
external usenet poster
 
Posts: 54
Default CONCATENATE/& Function ?

Worked like a charm! Thank you.

"Toppers" wrote:

Try:

=TEXT(A1,"00")&TEXT(B1,"0000")&TEXT(C1,"00")

"Ash" wrote:

I am trying to concantenate three columns of data that contain numbers.

The first column has 2 numbers, the second has 4, and the third has 2. When
I combine the three nubmers they form a budget group, so all digits are
necessary.

In the second and third column, many have lead zeroes, or even have all zero
digits. When using the Concatenate or & function, it eliminates the leading
zeroes or leaves out a column if it is all zeroes.

Is there a way around this?

Ex: Column 1: 14 Column2: 0098 Column 3: 15
Currently: =A1&B1&C1 gives 149815 versus the needed 14009815

Any help is appreciated. Thank you!

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
concatenate function help andresg1975 Excel Discussion (Misc queries) 2 October 19th 06 04:32 PM
Concatenate Function BenG Excel Discussion (Misc queries) 3 September 21st 06 10:08 PM
function to concatenate range GoBobbyGo Excel Discussion (Misc queries) 2 April 19th 06 01:34 AM
concatenate a range function Wildaz Excel Worksheet Functions 7 March 15th 06 07:10 PM
Concatenate function in vba camerons New Users to Excel 3 June 15th 05 12:09 AM


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