A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Concatenation help



 
 
Thread Tools Display Modes
  #1  
Old June 3rd, 2010, 10:51 PM posted to microsoft.public.excel.worksheet.functions
nadine
external usenet poster
 
Posts: 303
Default Concatenation help

I have 3 cells I need to merge into one. One of the cells is a number
anywhere from 1-16 or more. What I need is for the number in this cells to
always be concatenated into a 2 digit number. Example:
Cell A1 = USA123-4555678952
Cell A2 = CD
Cell A3 = 4
I need the final output to be 234555678952CD04.
So far I have the following formula:
=RIGHT(LEFT(A1,5)&RIGHT(A1,10),12)&A2&A3 but this doesn't put "04" after the
CD. It only puts "4" after it. Any ideas for Excel 2003?
Thanks.
  #2  
Old June 3rd, 2010, 11:04 PM posted to microsoft.public.excel.worksheet.functions
Gary''s Student
external usenet poster
 
Posts: 7,584
Default Concatenation help

A tiny trick:

=RIGHT(LEFT(A1,5)&RIGHT(A1,10),12)&A2&TEXT(A3,"00" )
--
Gary''s Student - gsnu201003


"Nadine" wrote:

I have 3 cells I need to merge into one. One of the cells is a number
anywhere from 1-16 or more. What I need is for the number in this cells to
always be concatenated into a 2 digit number. Example:
Cell A1 = USA123-4555678952
Cell A2 = CD
Cell A3 = 4
I need the final output to be 234555678952CD04.
So far I have the following formula:
=RIGHT(LEFT(A1,5)&RIGHT(A1,10),12)&A2&A3 but this doesn't put "04" after the
CD. It only puts "4" after it. Any ideas for Excel 2003?
Thanks.

  #3  
Old June 3rd, 2010, 11:08 PM posted to microsoft.public.excel.worksheet.functions
nadine
external usenet poster
 
Posts: 303
Default Concatenation help

THANK YOU!!!!! I knew you'd come through for me.

"Gary''s Student" wrote:

A tiny trick:

=RIGHT(LEFT(A1,5)&RIGHT(A1,10),12)&A2&TEXT(A3,"00" )
--
Gary''s Student - gsnu201003


"Nadine" wrote:

I have 3 cells I need to merge into one. One of the cells is a number
anywhere from 1-16 or more. What I need is for the number in this cells to
always be concatenated into a 2 digit number. Example:
Cell A1 = USA123-4555678952
Cell A2 = CD
Cell A3 = 4
I need the final output to be 234555678952CD04.
So far I have the following formula:
=RIGHT(LEFT(A1,5)&RIGHT(A1,10),12)&A2&A3 but this doesn't put "04" after the
CD. It only puts "4" after it. Any ideas for Excel 2003?
Thanks.

  #4  
Old June 3rd, 2010, 11:22 PM posted to microsoft.public.excel.worksheet.functions
Gary''s Student
external usenet poster
 
Posts: 7,584
Default Concatenation help

You are welcome. Thanks for the feedback.
--
Gary''s Student - gsnu201003


"Nadine" wrote:

THANK YOU!!!!! I knew you'd come through for me.

"Gary''s Student" wrote:

A tiny trick:

=RIGHT(LEFT(A1,5)&RIGHT(A1,10),12)&A2&TEXT(A3,"00" )
--
Gary''s Student - gsnu201003


"Nadine" wrote:

I have 3 cells I need to merge into one. One of the cells is a number
anywhere from 1-16 or more. What I need is for the number in this cells to
always be concatenated into a 2 digit number. Example:
Cell A1 = USA123-4555678952
Cell A2 = CD
Cell A3 = 4
I need the final output to be 234555678952CD04.
So far I have the following formula:
=RIGHT(LEFT(A1,5)&RIGHT(A1,10),12)&A2&A3 but this doesn't put "04" after the
CD. It only puts "4" after it. Any ideas for Excel 2003?
Thanks.

  #5  
Old June 4th, 2010, 03:50 AM posted to microsoft.public.excel.worksheet.functions
Rick Rothstein[_2_]
external usenet poster
 
Posts: 2,013
Default Concatenation help

Two characters and one function call shorter...

=RIGHT(SUBSTITUTE(A1,"-",""),12)&A2&TEXT(A3,"00")

--
Rick (MVP - Excel)



"Gary''s Student" wrote in message
...
A tiny trick:

=RIGHT(LEFT(A1,5)&RIGHT(A1,10),12)&A2&TEXT(A3,"00" )
--
Gary''s Student - gsnu201003


"Nadine" wrote:

I have 3 cells I need to merge into one. One of the cells is a number
anywhere from 1-16 or more. What I need is for the number in this cells
to
always be concatenated into a 2 digit number. Example:
Cell A1 = USA123-4555678952
Cell A2 = CD
Cell A3 = 4
I need the final output to be 234555678952CD04.
So far I have the following formula:
=RIGHT(LEFT(A1,5)&RIGHT(A1,10),12)&A2&A3 but this doesn't put "04" after
the
CD. It only puts "4" after it. Any ideas for Excel 2003?
Thanks.


  #6  
Old June 4th, 2010, 03:00 PM posted to microsoft.public.excel.worksheet.functions
nadine
external usenet poster
 
Posts: 303
Default Concatenation help

Gary,
If the payment # is 10, this formula records it as 01. How do I write the
formula so pmt 1 comes out as 01 and pmt 10 comes out as 10 and pmt 15 comes
out as 15, etc?
Thanks.


"Gary''s Student" wrote:

A tiny trick:

=RIGHT(LEFT(A1,5)&RIGHT(A1,10),12)&A2&TEXT(A3,"00" )
--
Gary''s Student - gsnu201003


"Nadine" wrote:

I have 3 cells I need to merge into one. One of the cells is a number
anywhere from 1-16 or more. What I need is for the number in this cells to
always be concatenated into a 2 digit number. Example:
Cell A1 = USA123-4555678952
Cell A2 = CD
Cell A3 = 4
I need the final output to be 234555678952CD04.
So far I have the following formula:
=RIGHT(LEFT(A1,5)&RIGHT(A1,10),12)&A2&A3 but this doesn't put "04" after the
CD. It only puts "4" after it. Any ideas for Excel 2003?
Thanks.

  #7  
Old June 4th, 2010, 03:35 PM posted to microsoft.public.excel.worksheet.functions
steve
external usenet poster
 
Posts: 28
Default Concatenation help

Change the
&TEXT(A3,"00")
to read
&TEXT(A3,"0#")

Regards
Steve

"Nadine" wrote in message
...
Gary,
If the payment # is 10, this formula records it as 01. How do I write the
formula so pmt 1 comes out as 01 and pmt 10 comes out as 10 and pmt 15
comes
out as 15, etc?
Thanks.


"Gary''s Student" wrote:

A tiny trick:

=RIGHT(LEFT(A1,5)&RIGHT(A1,10),12)&A2&TEXT(A3,"00" )
--
Gary''s Student - gsnu201003


"Nadine" wrote:

I have 3 cells I need to merge into one. One of the cells is a number
anywhere from 1-16 or more. What I need is for the number in this
cells to
always be concatenated into a 2 digit number. Example:
Cell A1 = USA123-4555678952
Cell A2 = CD
Cell A3 = 4
I need the final output to be 234555678952CD04.
So far I have the following formula:
=RIGHT(LEFT(A1,5)&RIGHT(A1,10),12)&A2&A3 but this doesn't put "04"
after the
CD. It only puts "4" after it. Any ideas for Excel 2003?
Thanks.



  #8  
Old June 4th, 2010, 04:12 PM posted to microsoft.public.excel.worksheet.functions
Jackpot
external usenet poster
 
Posts: 28
Default Concatenation help

Which cell contain pmt number...

=TEXT(A1,"00")
will display the numeric in A1 as 2 digits (zero padded).

If this is nothing to do with the previous formula and in a totally
differnet cell; then change the number format of the cell to 00

"Nadine" wrote:

Gary,
If the payment # is 10, this formula records it as 01. How do I write the
formula so pmt 1 comes out as 01 and pmt 10 comes out as 10 and pmt 15 comes
out as 15, etc?
Thanks.


"Gary''s Student" wrote:

A tiny trick:

=RIGHT(LEFT(A1,5)&RIGHT(A1,10),12)&A2&TEXT(A3,"00" )
--
Gary''s Student - gsnu201003


"Nadine" wrote:

I have 3 cells I need to merge into one. One of the cells is a number
anywhere from 1-16 or more. What I need is for the number in this cells to
always be concatenated into a 2 digit number. Example:
Cell A1 = USA123-4555678952
Cell A2 = CD
Cell A3 = 4
I need the final output to be 234555678952CD04.
So far I have the following formula:
=RIGHT(LEFT(A1,5)&RIGHT(A1,10),12)&A2&A3 but this doesn't put "04" after the
CD. It only puts "4" after it. Any ideas for Excel 2003?
Thanks.

  #9  
Old June 4th, 2010, 06:20 PM posted to microsoft.public.excel.worksheet.functions
Rick Rothstein[_2_]
external usenet poster
 
Posts: 2,013
Default Concatenation help

Does A3 contain the payment number? If so, I don't get 01 with Gary''s
Student's formula like you posted; however, I do get the beginning part of
the resulting number to be an incorrect value. For the values you posted in
A1 and A2 and 10 in A3, I get his formula to display...

124555678952CD10

whereas I think the value you wanted for these values is this instead...

234555678952CD10

If that latter value is correct, then take a look at the formula I posted
because that is the value it calculates to.

--
Rick (MVP - Excel)



"Nadine" wrote in message
...
Gary,
If the payment # is 10, this formula records it as 01. How do I write the
formula so pmt 1 comes out as 01 and pmt 10 comes out as 10 and pmt 15
comes
out as 15, etc?
Thanks.


"Gary''s Student" wrote:

A tiny trick:

=RIGHT(LEFT(A1,5)&RIGHT(A1,10),12)&A2&TEXT(A3,"00" )
--
Gary''s Student - gsnu201003


"Nadine" wrote:

I have 3 cells I need to merge into one. One of the cells is a number
anywhere from 1-16 or more. What I need is for the number in this
cells to
always be concatenated into a 2 digit number. Example:
Cell A1 = USA123-4555678952
Cell A2 = CD
Cell A3 = 4
I need the final output to be 234555678952CD04.
So far I have the following formula:
=RIGHT(LEFT(A1,5)&RIGHT(A1,10),12)&A2&A3 but this doesn't put "04"
after the
CD. It only puts "4" after it. Any ideas for Excel 2003?
Thanks.


 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:46 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.