View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.misc
Roger Govier[_3_] Roger Govier[_3_] is offline
external usenet poster
 
Posts: 2,480
Default Concatenate and include trailing blanks

Sorry, typo in previous post

last REPR should have been REPT

=A1&REPT(" ",30-LEN(A1))&B1&REPT(" " ,30-LEN(B1))&C1&REPT(" ",30-LEN(C1))

--
Regards
Roger Govier

"Roger Govier" <roger@technology4unospamdotcodotuk wrote in message
...
Hi

=A1&REPT(" ",30-LEN(A1))&B1&REPT(" " ,30-LEN(B1))&C1&REPR(" ",30-LEN(C1))

--
Regards
Roger Govier

"Mr_Wilf" wrote in message
...
Hi,

I need to concatenate three seperate Text fields in to one long string,
but
keeping each value to 30 char.

eg
A1 "999 Letsbe Avenue"
B1 "Little Doing Quickly"
C1 "Abyssinia"

into "999 Letsbe Avenue Little Doing Quickly Abyssinia
"
instead of "999 Letsbe AvenueLittle Doing QuicklyAbyssinia" which is what
I'm getting.

Any suggestions?

__________ Information from ESET Smart Security, version of virus
signature database 4533 (20091022) __________

The message was checked by ESET Smart Security.

http://www.eset.com




__________ Information from ESET Smart Security, version of virus
signature database 4533 (20091022) __________

The message was checked by ESET Smart Security.

http://www.eset.com




__________ Information from ESET Smart Security, version of virus signature database 4533 (20091022) __________

The message was checked by ESET Smart Security.

http://www.eset.com