+ Reply to Thread
Results 1 to 3 of 3

Help eliminating a space in concatenate formula

Hybrid View

  1. #1
    Bob Reynolds
    Guest

    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. #2
    Norman Jones
    Guest

    Re: Help eliminating a space in concatenate formula

    Hi Bob,

    Try:

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

    ---
    Regards,
    Norman



    "Bob Reynolds" <rjr1040@bellsouthReMoVeThIsFiRsT.net> wrote in message
    news:wymle.21264$8S5.9381@bignews3.bellsouth.net...
    >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. #3
    philcud
    Guest

    Re: 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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1