PC Review


Reply
Thread Tools Rate Thread

Concatenation in Excel

 
 
Muthalaly
Guest
Posts: n/a
 
      24th Jun 2008
Hi,
I am trying to concatenate two fields in excel.In this one field is a cutom
number field .When I am doing the concatenation I am losing the zeros before
the number.
Example 00123 + abc I am getting a result of 123abc .But I am looking
forward to get 00123abc. Is it possible in excel?Please help.
 
Reply With Quote
 
 
 
 
FSt1
Guest
Posts: n/a
 
      24th Jun 2008
hi
i suspect that the 00123 is formated with leading zeros meaning that the
zeros are not there to concatinate. i think you may have to reform as text
and add the leading zeros.

regards
FSt1

"Muthalaly" wrote:

> Hi,
> I am trying to concatenate two fields in excel.In this one field is a cutom
> number field .When I am doing the concatenation I am losing the zeros before
> the number.
> Example 00123 + abc I am getting a result of 123abc .But I am looking
> forward to get 00123abc. Is it possible in excel?Please help.

 
Reply With Quote
 
MartinW
Guest
Posts: n/a
 
      24th Jun 2008
Hi Muthalaly,

This is a bit long winded but you may be able to work it in to your formula.
=IF(LEN(A1)=1,"0000"&A1,IF(LEN(A1)=2,"000"&A1,IF(LEN(A1)=3,"00"&A1,IF(LEN(A1)=4,"0"&A1,A1))))

With A1 formatted as custom 00000, this will add the formatted
zeroes to your concatenation. Just add the abc where appropriate.

HTH
Martin

"Muthalaly" <(E-Mail Removed)> wrote in message
news:004F11A2-74B0-4896-A922-(E-Mail Removed)...
> Hi,
> I am trying to concatenate two fields in excel.In this one field is a
> cutom
> number field .When I am doing the concatenation I am losing the zeros
> before
> the number.
> Example 00123 + abc I am getting a result of 123abc .But I am looking
> forward to get 00123abc. Is it possible in excel?Please help.



 
Reply With Quote
 
Pete_UK
Guest
Posts: n/a
 
      24th Jun 2008
Try this:

=TEXT(A1,"00000") & B1

with your number in A1 and the text in B1.

Hope this helps.

Pete

On Jun 24, 12:12*pm, Muthalaly <Muthal...@discussions.microsoft.com>
wrote:
> Hi,
> I am trying to concatenate two fields in excel.In this one field is a cutom
> number field .When I am doing the concatenation I am losing the zeros before
> the number.
> Example 00123 + abc I am getting a result of 123abc .But I am looking
> forward to get 00123abc. Is it possible in excel?Please help.


 
Reply With Quote
 
MartinW
Guest
Posts: n/a
 
      24th Jun 2008
Derrr!! <bg>

No excuses
Martin

"Pete_UK" <(E-Mail Removed)> wrote in message
news:57b94ffb-7999-4f28-92ad-(E-Mail Removed)...
Try this:

=TEXT(A1,"00000") & B1

with your number in A1 and the text in B1.

Hope this helps.

Pete

On Jun 24, 12:12 pm, Muthalaly <Muthal...@discussions.microsoft.com>
wrote:
> Hi,
> I am trying to concatenate two fields in excel.In this one field is a
> cutom
> number field .When I am doing the concatenation I am losing the zeros
> before
> the number.
> Example 00123 + abc I am getting a result of 123abc .But I am looking
> forward to get 00123abc. Is it possible in excel?Please help.



 
Reply With Quote
 
Muthalaly
Guest
Posts: n/a
 
      24th Jun 2008
Thank you so much for the help!!!

"Pete_UK" wrote:

> Try this:
>
> =TEXT(A1,"00000") & B1
>
> with your number in A1 and the text in B1.
>
> Hope this helps.
>
> Pete
>
> On Jun 24, 12:12 pm, Muthalaly <Muthal...@discussions.microsoft.com>
> wrote:
> > Hi,
> > I am trying to concatenate two fields in excel.In this one field is a cutom
> > number field .When I am doing the concatenation I am losing the zeros before
> > the number.
> > Example 00123 + abc I am getting a result of 123abc .But I am looking
> > forward to get 00123abc. Is it possible in excel?Please help.

>
>

 
Reply With Quote
 
Pete_UK
Guest
Posts: n/a
 
      24th Jun 2008
You're welcome - thanks for feeding back.

Pete

On Jun 24, 2:35*pm, Muthalaly <Muthal...@discussions.microsoft.com>
wrote:
> Thank you so much for the help!!!
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel concatenation VB Code Microsoft Excel Worksheet Functions 2 7th Jan 2009 07:02 PM
Concatenation in Excel 2003 =?Utf-8?B?bGlyZWxhbmQ=?= Microsoft Excel Worksheet Functions 7 9th Nov 2007 12:40 AM
Concatenation with Pocket Excel =?Utf-8?B?Ui4gSWFuIExlZQ==?= Microsoft Excel Programming 2 27th Jun 2006 11:50 AM
VBA & Excel: Concatenation problem Henry Microsoft Excel Programming 5 10th Nov 2005 11:55 PM
Concatenation not working in Excel 2003 gschoser Microsoft Excel Misc 0 19th Oct 2004 03:50 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:22 AM.