#1   Report Post  
Posted to microsoft.public.excel.misc
Vic Vic is offline
external usenet poster
 
Posts: 117
Default Concatenation

I need to produce column C by concatenating A and B.
C must always have 10 alphanumerics.
A always consists of 7 numerics.
B may have different value:
numbers from 1 to 30 should convert to C01 to C30,
letter C followed by a number from 1 to 30 (C1 to C30) should convert to C01
to C30,
letter C followed by a 2 digit number (C01 to C30) no conversion needed,
letter P should convert to PRS,
value ES shold convert to EOS.
What is the fornula to do this?
Thank you.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 747
Default Concatenation

=A1&IF(B1="P","PRS",IF(B1="ES","EOS",""))


On Oct 22, 7:24*pm, Vic wrote:
I need to produce column C by concatenating A and B.
C must always have 10 alphanumerics.
A always consists of 7 numerics.
B may have different value:
numbers from 1 to 30 should convert to C01 to C30,
letter C followed by a number from 1 to 30 (C1 to C30) should convert to C01
to C30,
letter C followed by a 2 digit number (C01 to C30) no conversion needed,
letter P should convert to PRS,
value ES shold convert to EOS.
What is the fornula to do this?
Thank you.


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
Default Concatenation

On Thu, 22 Oct 2009 07:24:01 -0700, Vic wrote:

I need to produce column C by concatenating A and B.
C must always have 10 alphanumerics.
A always consists of 7 numerics.
B may have different value:
numbers from 1 to 30 should convert to C01 to C30,
letter C followed by a number from 1 to 30 (C1 to C30) should convert to C01
to C30,
letter C followed by a 2 digit number (C01 to C30) no conversion needed,
letter P should convert to PRS,
value ES shold convert to EOS.
What is the fornula to do this?
Thank you.


Perhaps:

=IF((A1&B1)<"",TEXT(A1,"0000000")&SUBSTITUTE(
SUBSTITUTE(TEXT(B1,"\C00"),"P","PRS"),"ES","EOS"), "")

--ron
  #4   Report Post  
Posted to microsoft.public.excel.misc
Vic Vic is offline
external usenet poster
 
Posts: 117
Default Concatenation

It only took care of P and ES.
My major task is to convert C1 thru C9 to C01 thru C09 and converting 1 thru
30 to C01 thru C30. How can I do this?
Thanks.

"muddan madhu" wrote:

=A1&IF(B1="P","PRS",IF(B1="ES","EOS",""))


On Oct 22, 7:24 pm, Vic wrote:
I need to produce column C by concatenating A and B.
C must always have 10 alphanumerics.
A always consists of 7 numerics.
B may have different value:
numbers from 1 to 30 should convert to C01 to C30,
letter C followed by a number from 1 to 30 (C1 to C30) should convert to C01
to C30,
letter C followed by a 2 digit number (C01 to C30) no conversion needed,
letter P should convert to PRS,
value ES shold convert to EOS.
What is the fornula to do this?
Thank you.


.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 806
Default Concatenation

Hello,

Copy into J1:K41 these values
1 C01
2 C02
3 C03
4 C04
5 C05
6 C06
7 C07
8 C08
9 C09
10 C10
11 C11
12 C12
13 C13
14 C14
15 C15
16 C16
17 C17
18 C18
19 C19
20 C20
21 C21
22 C22
23 C23
24 C24
25 C25
26 C26
27 C27
28 C28
29 C29
30 C30
C1 C01
C2 C02
C3 C03
C4 C04
C5 C05
C6 C06
C7 C07
C8 C08
C9 C09
P PRS
ES EOS

Then enter into C1:
=A1&IF(ISERROR(MATCH(B1,$J$1:$J$41,0)),B1,VLOOKUP( B1,$J$1:$K$41,2,0))
and copy down.

Regards,
Bernd


  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Concatenation

=A1&IF(B1="P","PRS",IF(B1="ES","EOS",IF(LEFT(B1)=" C",IF(LEN(B1)=2,"C0"&RIGHT(B1),B1),IF(ISNUMBER(B1) ,"C"&TEXT(B1,"00"),""))))
--
David Biddulph

"Vic" wrote in message
...
It only took care of P and ES.
My major task is to convert C1 thru C9 to C01 thru C09 and converting 1
thru
30 to C01 thru C30. How can I do this?
Thanks.

"muddan madhu" wrote:

=A1&IF(B1="P","PRS",IF(B1="ES","EOS",""))


On Oct 22, 7:24 pm, Vic wrote:
I need to produce column C by concatenating A and B.
C must always have 10 alphanumerics.
A always consists of 7 numerics.
B may have different value:
numbers from 1 to 30 should convert to C01 to C30,
letter C followed by a number from 1 to 30 (C1 to C30) should convert
to C01
to C30,
letter C followed by a 2 digit number (C01 to C30) no conversion
needed,
letter P should convert to PRS,
value ES shold convert to EOS.
What is the fornula to do this?
Thank you.


.



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
Concatenation MichaelS Excel Discussion (Misc queries) 8 September 11th 08 07:54 AM
Concatenation Muthalaly Excel Discussion (Misc queries) 2 June 24th 08 12:57 PM
Concatenation markmcd Excel Worksheet Functions 3 December 11th 07 12:29 AM
Concatenation Sol Excel Discussion (Misc queries) 5 October 23rd 07 08:03 AM
concatenation mattguerilla Excel Discussion (Misc queries) 3 January 26th 06 11:47 PM


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