Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Hal Hal is offline
external usenet poster
 
Posts: 19
Default the "0" number is lost when combining multiple columns

Hello,

I have data in two columns (A and B) that I wish to combine into a third
column (C) by using the "&" feature as follows:

=A1&B1

The data in Column A is a product code # (i.e. 05296)
The data in Column B are letters (i.e. MND)

However, when I combine them both together in Column "C", I get "5296MND"
instead of "05296MND". The "0" is missing. How I can maintain the
integrity of the "0" and have it appear in the cell?

Thank you in advance.

Hal.


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default the "0" number is lost when combining multiple columns

Try it in C1 as:
=TEXT(A1,"00000")&B1
where col A = prod codes
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Hal" wrote in message
...
Hello,

I have data in two columns (A and B) that I wish to combine into a third
column (C) by using the "&" feature as follows:

=A1&B1

The data in Column A is a product code # (i.e. 05296)
The data in Column B are letters (i.e. MND)

However, when I combine them both together in Column "C", I get "5296MND"
instead of "05296MND". The "0" is missing. How I can maintain the
integrity of the "0" and have it appear in the cell?

Thank you in advance.

Hal.




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 427
Default the "0" number is lost when combining multiple columns

This should work,
the problem is that the format of cell A1, is not used when you have
C1= A1 & B1

So you have to explicitly format A1 in the combine formula
Steve

On Thu, 25 Jan 2007 13:57:24 -0000, Max wrote:

Try it in C1 as:
=TEXT(A1,"00000")&B1
where col A = prod codes




--
Steve (3)
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Hal Hal is offline
external usenet poster
 
Posts: 19
Default the "0" number is lost when combining multiple columns

Thank you Max for your help!

Hal

"Max" wrote in message
...
Try it in C1 as:
=TEXT(A1,"00000")&B1
where col A = prod codes
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Hal" wrote in message
...
Hello,

I have data in two columns (A and B) that I wish to combine into a third
column (C) by using the "&" feature as follows:

=A1&B1

The data in Column A is a product code # (i.e. 05296)
The data in Column B are letters (i.e. MND)

However, when I combine them both together in Column "C", I get

"5296MND"
instead of "05296MND". The "0" is missing. How I can maintain the
integrity of the "0" and have it appear in the cell?

Thank you in advance.

Hal.






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Hal Hal is offline
external usenet poster
 
Posts: 19
Default the "0" number is lost when combining multiple columns

Thank you Steve for your help!

Hal.

"SteveW" wrote in message
news:op.tmpu75abevjsnp@enigma03...
This should work,
the problem is that the format of cell A1, is not used when you have
C1= A1 & B1

So you have to explicitly format A1 in the combine formula
Steve

On Thu, 25 Jan 2007 13:57:24 -0000, Max wrote:

Try it in C1 as:
=TEXT(A1,"00000")&B1
where col A = prod codes




--
Steve (3)




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default the "0" number is lost when combining multiple columns

You're welcome, Hal !
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Hal" wrote in message
...
Thank you Max for your help!

Hal



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
combining multiple columns from multiple files osiris73 Excel Discussion (Misc queries) 2 January 17th 07 03:30 AM
Combining Cell Contents - entire columns SV Excel Worksheet Functions 7 December 11th 06 11:30 PM
How to determine the maximum lost? Eric Excel Discussion (Misc queries) 3 March 6th 06 09:49 PM
using functions to compare multiple columns for mismatch of cells MDIAZ451 Excel Worksheet Functions 3 February 13th 06 02:49 AM
making multiple columns when printing long datasheet Piet Excel Discussion (Misc queries) 1 November 11th 05 04:00 AM


All times are GMT +1. The time now is 09:05 AM.

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"