#1   Report Post  
Old February 13th 08, 12:37 AM posted to microsoft.public.excel.misc
external usenet poster
 
First recorded activity by ExcelBanter: Aug 2006
Posts: 24
Default 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.

  #2   Report Post  
Old February 13th 08, 12:47 AM posted to microsoft.public.excel.misc
external usenet poster
 
First recorded activity by ExcelBanter: Jul 2006
Posts: 3,942
Default 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.

  #3   Report Post  
Old February 13th 08, 12:47 AM posted to microsoft.public.excel.misc
external usenet poster
 
First recorded activity by ExcelBanter: Oct 2007
Posts: 1,091
Default 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.



  #4   Report Post  
Old February 13th 08, 12:56 AM posted to microsoft.public.excel.misc
external usenet poster
 
First recorded activity by ExcelBanter: Aug 2006
Posts: 24
Default 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.






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
concatenate expression error philr Excel Worksheet Functions 2 July 26th 07 04:18 PM
Concatenate reno Excel Discussion (Misc queries) 5 September 22nd 06 08:06 PM
why do i sometimes get a "value" error when i try to concatenate? islandrm Excel Discussion (Misc queries) 1 July 28th 06 01:21 PM
I know how to concatenate ,can one de-concatenate to split date? QUICK BOOKS PROBLEM- New Users to Excel 1 July 26th 05 05:07 PM
Use numbers in CONCATENATE formula without getting error JSS Excel Worksheet Functions 5 February 9th 05 03:40 PM


All times are GMT +1. The time now is 10:38 PM.

Powered by vBulletin® Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
Copyright 2004-2021 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"

 

Copyright © 2017