#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Rhonda
 
Posts: n/a
Default concatinate data

I have several columns of numbers - some numbers have leading zeros. When I
concatinate the data the leading zero drops off even if I customize the cell
first. Is there any way to have the column data not drop leading zeros when
concatinating?
example:
A B
02536 5525

Concatinated
25365525 desired result = 025365525
Thanks for any ideas!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bernard Liengme
 
Posts: n/a
Default concatinate data

Try
="0"&A1&B1
or
=TEXT(A2,"00000")&B2
or
try giving your cell with 25365525 the custom format "000000000" (1 more
zero than existing digits)
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Rhonda" <Rhonda @discussions.microsoft.com wrote in message
...
I have several columns of numbers - some numbers have leading zeros. When
I
concatinate the data the leading zero drops off even if I customize the
cell
first. Is there any way to have the column data not drop leading zeros
when
concatinating?
example:
A B
02536 5525

Concatinated
25365525 desired result = 025365525
Thanks for any ideas!



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Rhonda
 
Posts: n/a
Default concatinate data

Thanks Bernard! The formula =Text(A2,"00000")&B2 worked perfectly! Since my
column of data has 5 digit numbers with or without leading zeros the
suggestion works for both data.
Rhonda

"Bernard Liengme" wrote:

Try
="0"&A1&B1
or
=TEXT(A2,"00000")&B2
or
try giving your cell with 25365525 the custom format "000000000" (1 more
zero than existing digits)
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Rhonda" <Rhonda @discussions.microsoft.com wrote in message
...
I have several columns of numbers - some numbers have leading zeros. When
I
concatinate the data the leading zero drops off even if I customize the
cell
first. Is there any way to have the column data not drop leading zeros
when
concatinating?
example:
A B
02536 5525

Concatinated
25365525 desired result = 025365525
Thanks for any ideas!




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CLR
 
Posts: n/a
Default concatinate data

Sounds like your leading zeros are just a matter of formatting rather than
actually being part of the value in the cell......

try something like this.....

=0&A1&B1

Vaya con Dios,
Chuck, CABGx3


"Rhonda" <Rhonda @discussions.microsoft.com wrote in message
...
I have several columns of numbers - some numbers have leading zeros. When

I
concatinate the data the leading zero drops off even if I customize the

cell
first. Is there any way to have the column data not drop leading zeros

when
concatinating?
example:
A B
02536 5525

Concatinated
25365525 desired result = 025365525
Thanks for any ideas!



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pete
 
Posts: n/a
Default concatinate data

It depends how you are joining them together. With a formula like:

=A1&B1

entered into C1, this should retain any leading zeroes.

Hope this helps.

Pete



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
Help PLEASE! Not sure what answer is: Match? Index? Other? baz Excel Worksheet Functions 7 September 3rd 05 03:47 PM
Saving data in a worksheet within a workbook Homeuser Excel Discussion (Misc queries) 2 August 21st 05 10:49 PM
Sort pages? David Excel Discussion (Misc queries) 15 May 13th 05 11:33 PM
Line Graph Data Recognition Nat Charts and Charting in Excel 2 April 30th 05 02:07 PM
Running Data Table using an input that triggers DDE linked data [email protected] Excel Discussion (Misc queries) 1 December 16th 04 11:56 AM


All times are GMT +1. The time now is 03:54 AM.

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"