ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Concatenate error (https://www.excelbanter.com/excel-discussion-misc-queries/176484-concatenate-error.html)

Susie

Concatenate error
 
I have 4 columns I want to combine with the concatenate function. Column 1
has either 3,4 or 5 characters. When I use the function, it works fine -
except there are spaces after the characters in column 1. There are no extra
spaces that show up from columns 2,3 or 4.

How do I set column 1 to only take the characters that are there over to the
concatenated function. I don't want any extra spaces.

FSt1

Concatenate error
 
hi
=Trim(A1) & b1 & C1 & D1
or
=Concatenate(Trim(A1),B1,C1,D1)

either way

Regards
FSt1

"Susie" wrote:

I have 4 columns I want to combine with the concatenate function. Column 1
has either 3,4 or 5 characters. When I use the function, it works fine -
except there are spaces after the characters in column 1. There are no extra
spaces that show up from columns 2,3 or 4.

How do I set column 1 to only take the characters that are there over to the
concatenated function. I don't want any extra spaces.


Tyro[_2_]

Concatenate error
 
Assuming your cells are A1, B1, C1 and D1 then in A2:
=TRIM(A1)&TRIM(B1)&TRIM(C1)&TRIM(D1)

Tyro

"Susie" wrote in message
...
I have 4 columns I want to combine with the concatenate function. Column 1
has either 3,4 or 5 characters. When I use the function, it works fine -
except there are spaces after the characters in column 1. There are no
extra
spaces that show up from columns 2,3 or 4.

How do I set column 1 to only take the characters that are there over to
the
concatenated function. I don't want any extra spaces.




Susie

Concatenate error
 
I had never heard of the 'Trim' command. Thanks. I'll give it a try.

"Tyro" wrote:

Assuming your cells are A1, B1, C1 and D1 then in A2:
=TRIM(A1)&TRIM(B1)&TRIM(C1)&TRIM(D1)

Tyro

"Susie" wrote in message
...
I have 4 columns I want to combine with the concatenate function. Column 1
has either 3,4 or 5 characters. When I use the function, it works fine -
except there are spaces after the characters in column 1. There are no
extra
spaces that show up from columns 2,3 or 4.

How do I set column 1 to only take the characters that are there over to
the
concatenated function. I don't want any extra spaces.






All times are GMT +1. The time now is 06:49 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com