Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Lou
 
Posts: n/a
Default Concatenate custom cells

I've managed to concatenate 4 cells into 1 but they are custom format
(as they need to be a certain length) so many have leading 0's. The
cell displaying the joint information is missing out the 0's. How can I
get the concatenation to show all the numbers?

eg. 06263212103641 + 09940351822154315 + 0000000000461579 =
62632121036419940351822154315461579 but I want
06263212103641099403518221543150000000000461579

  #2   Report Post  
Posted to microsoft.public.excel.misc
dh01uk
 
Posts: n/a
Default Concatenate custom cells


Have you tried changing the format for the cells you want to combine to
text first?

Regards
dh01uk


--
dh01uk
------------------------------------------------------------------------
dh01uk's Profile: http://www.excelforum.com/member.php...o&userid=30442
View this thread: http://www.excelforum.com/showthread...hreadid=501035

  #3   Report Post  
Posted to microsoft.public.excel.misc
JE McGimpsey
 
Posts: n/a
Default Concatenate custom cells

One way:

=TEXT(A1,"00000000000000") & TEXT(A2, "00000000000000000") &
TEXT(A3, "0000000000000000")

In article .com,
"Lou" wrote:

I've managed to concatenate 4 cells into 1 but they are custom format
(as they need to be a certain length) so many have leading 0's. The
cell displaying the joint information is missing out the 0's. How can I
get the concatenation to show all the numbers?

eg. 06263212103641 + 09940351822154315 + 0000000000461579 =
62632121036419940351822154315461579 but I want
06263212103641099403518221543150000000000461579

  #4   Report Post  
Posted to microsoft.public.excel.misc
Lou
 
Posts: n/a
Default Concatenate custom cells

When changing the number to text it doesn't retain the correct
number.... changes 06263212103641 to 1.62632E+13

  #5   Report Post  
Posted to microsoft.public.excel.misc
JE McGimpsey
 
Posts: n/a
Default Concatenate custom cells

Then you didn't use the TEXT() functions the way I illustrated.

Are you trying to add the strings (i.e., using "+") rather than
concatenate ("&")???

That wouldn't explain your example, 06263212103641, if anything, should
be changed to 6.26321E+12, not 1.62632E+13


In article .com,
"Lou" wrote:

When changing the number to text it doesn't retain the correct
number.... changes 06263212103641 to 1.62632E+13



  #6   Report Post  
Posted to microsoft.public.excel.misc
Lou
 
Posts: n/a
Default Concatenate custom cells

Worked a treat, thanks very much.

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
Custom format for cells Jack Excel Discussion (Misc queries) 4 January 12th 06 01:21 PM
custom cells format puiuluipui Excel Discussion (Misc queries) 5 August 31st 05 07:54 PM
How do I get custom colors for filling cells in Excel? David Grant New Users to Excel 3 January 28th 05 09:17 PM
Help adding text values Texas-DC_271 Excel Worksheet Functions 7 January 15th 05 11:14 PM
Convert data type of cells to Text,Number,Date and Time Kevin Excel Worksheet Functions 1 December 31st 04 12:57 PM


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