Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / February 2008

Tip: Looking for answers? Try searching our database.

Concatenate

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Susie - 13 Feb 2008 00:23 GMT
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 - 13 Feb 2008 00:49 GMT
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)

>I have four columns to combine and I use the concatenate function.  One of
>my
[quoted text clipped - 5 lines]
> 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 - 13 Feb 2008 00:53 GMT
=TRIM(B1&C1&D1&E1)  entered in A1

Gord Dibben  MS Excel MVP

>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
[quoted text clipped - 3 lines]
>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 - 13 Feb 2008 01:56 GMT
Not considered good to post in muliple groups

Tyro

>I have four columns to combine and I use the concatenate function.  One of
>my
[quoted text clipped - 5 lines]
> 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.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.