Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Finding (and eliminating) hidden "space" character | Excel Discussion (Misc queries) | |||
Eliminating 0 values when using the Small formula | Excel Worksheet Functions | |||
=concatenate With A Space | Excel Worksheet Functions | |||
space between text strings with concatenate | Excel Discussion (Misc queries) | |||
Add Space between concatenate cells | Excel Worksheet Functions |