=Text

B

Bob

I have a long column of ref numbers, each cell needs to be converted
to text. So i am using =TEXT (B2,0) - (with the result I then copy
and paste as special)

This works fine .... up to a point. As I also need the ref number to
have 8 digits so a number that starts as 6 digits needs to be padded
with two zeros at the start ie 585859 needs to end up as 00585859.

Can this adjustment be made in the original =TEXT statement, if so how
or what is the best way to deal with this problem.

With thanks
 
L

Lars-Åke Aspelin

I have a long column of ref numbers, each cell needs to be converted
to text. So i am using =TEXT (B2,0) - (with the result I then copy
and paste as special)

This works fine .... up to a point. As I also need the ref number to
have 8 digits so a number that starts as 6 digits needs to be padded
with two zeros at the start ie 585859 needs to end up as 00585859.

Can this adjustment be made in the original =TEXT statement, if so how
or what is the best way to deal with this problem.

With thanks


Try this:

=TEXT(B2,"00000000")

Hope this helps / Lars-Åke
 

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