CONCATENATE/& Function ?

A

Ash

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!
 
T

tim m

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.
 
R

Ron Rosenfeld

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
 
A

Ash

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top