Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default Help eliminating a space in concatenate formula

I have the following formula in a cell in Excel
=CONCATENATE(BC2," ",BN2," ",BB2,","," ",BO2,"")
The result would normally be Bob N. Reynolds
or Bob Reynolds

My question is how do I remove the extra space when there is no middle
initial in cell bb2 so it will read
Bob Reynolds with one space.

Thanks so muych
Bob


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Help eliminating a space in concatenate formula

Hi Bob,

Try:

= Trim(CONCATENATE(BC2," ",BN2," ",BB2,","," ",BO2,""))

---
Regards,
Norman



"Bob Reynolds" wrote in message
.. .
I have the following formula in a cell in Excel
=CONCATENATE(BC2," ",BN2," ",BB2,","," ",BO2,"")
The result would normally be Bob N. Reynolds
or Bob Reynolds

My question is how do I remove the extra space when there is no middle
initial in cell bb2 so it will read
Bob Reynolds with one space.

Thanks so muych
Bob




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default Help eliminating a space in concatenate formula

use an if statement to look at the cell containing the middle names, if
the cell is blank, then just concatenate forename and surname, else
concatenate forename middle name and surname.
if your data is set up with forename in BC, middlename in BN and
surname in BB, then formula would be
=IF(BN2="",CONCATENATE(BC2," "," ",BB2,",","
",BO2,""),CONCATENATE(BC2," ",BN2," ",BB2,","," ",BO2,""))

not sure if i have guessed your colums correctly, but i hope u get my
drift.

and now time to go home!!

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
Finding (and eliminating) hidden "space" character smartgal Excel Discussion (Misc queries) 8 October 31st 08 03:45 AM
Eliminating 0 values when using the Small formula MIchel Khennafi Excel Worksheet Functions 1 January 31st 07 07:00 PM
=concatenate With A Space nander Excel Worksheet Functions 4 August 15th 05 08:26 PM
space between text strings with concatenate Jeff Excel Discussion (Misc queries) 2 March 3rd 05 06:54 PM
Add Space between concatenate cells Mac Landers Excel Worksheet Functions 3 February 1st 05 08:27 PM


All times are GMT +1. The time now is 04:24 AM.

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

About Us

"It's about Microsoft Excel"