ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   Concatenate (https://www.excelbanter.com/new-users-excel/176490-concatenate.html)

Susie

Concatenate
 
I have four columns to combine and I use the concatenate function. One of my
columns has either 3,4 or 5 characters. When I concatenate, there are spaces
in the middle of the end product.

How do I get those spaces to disappear in column 1? I can't just set the
length of the column to 3 or 4 or 5 characters because I need that varied
length. I just don't want the spaces at the end.

Ron Coderre

Concatenate
 
With
A1: "Alpha "
B1: "Bravo "
C1: "Charlie "
(all without the quotes, of course)

This formula scrubs the spaces from the end result:
D1: =SUBSTITUTE(A1&B1&C1," ","")

In that example, it returns "AlphaBravoCharlie"

Does that help?
--------------------------

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)

"Susie" wrote in message
...
I have four columns to combine and I use the concatenate function. One of
my
columns has either 3,4 or 5 characters. When I concatenate, there are
spaces
in the middle of the end product.

How do I get those spaces to disappear in column 1? I can't just set the
length of the column to 3 or 4 or 5 characters because I need that varied
length. I just don't want the spaces at the end.




Gord Dibben

Concatenate
 
=TRIM(B1&C1&D1&E1) entered in A1


Gord Dibben MS Excel MVP

On Tue, 12 Feb 2008 16:23:02 -0800, Susie
wrote:

I have four columns to combine and I use the concatenate function. One of my
columns has either 3,4 or 5 characters. When I concatenate, there are spaces
in the middle of the end product.

How do I get those spaces to disappear in column 1? I can't just set the
length of the column to 3 or 4 or 5 characters because I need that varied
length. I just don't want the spaces at the end.



Tyro[_2_]

Concatenate
 
Not considered good to post in muliple groups

Tyro

"Susie" wrote in message
...
I have four columns to combine and I use the concatenate function. One of
my
columns has either 3,4 or 5 characters. When I concatenate, there are
spaces
in the middle of the end product.

How do I get those spaces to disappear in column 1? I can't just set the
length of the column to 3 or 4 or 5 characters because I need that varied
length. I just don't want the spaces at the end.





All times are GMT +1. The time now is 11:22 PM.

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