+ Reply to Thread
Results 1 to 6 of 6

Formula issue - wish to exclude 'blank' value from appearing in concatenation

  1. #1
    Registered User
    Join Date
    09-16-2015
    Location
    Auckland
    MS-Off Ver
    2013
    Posts
    3

    Formula issue - wish to exclude 'blank' value from appearing in concatenation

    Hi - I have a three column sheet (Forename, Middle Name, Surname) and I'm using a simple concatenate formula to join the three names together with a " " in between each name. That's working fine. But when a person does not have a middle name I'm ending up with two " " (spaces) in between the first & last name...!!! I know this should be simple but how do I avoid having the two spaces between the forename and surname if the person has not middle name?

    All help much appreciated.

    Monty

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Formula issue - wish to exclude 'blank' value from appearing in concatenation

    Try something like this:
    Please Login or Register  to view this content.
    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    09-15-2015
    Location
    Lodz, Poland
    MS-Off Ver
    2010
    Posts
    16

    Re: Formula issue - wish to exclude 'blank' value from appearing in concatenation

    You could just insert IF statement to omit middle name if it's length is equal to 0.

  4. #4
    Registered User
    Join Date
    09-16-2015
    Location
    Auckland
    MS-Off Ver
    2013
    Posts
    3

    Re: Formula issue - wish to exclude 'blank' value from appearing in concatenation

    Hi Ron - that has worked perfectly! Thank you so much - I've never used that function before so I'll need to do some homework on how that works exactly, but you've just made me happy! Nice one brother.

  5. #5
    Registered User
    Join Date
    09-16-2015
    Location
    Auckland
    MS-Off Ver
    2013
    Posts
    3

    Re: Formula issue - wish to exclude 'blank' value from appearing in concatenation

    Hi wator - I have tried figuring that out but couldn't work it out - I'm learning to use Excel so not quite up to speed with IF statements yet. Thanks.

  6. #6
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Formula issue - wish to exclude 'blank' value from appearing in concatenation

    Glad you got something you can use!

    If that resolves your issue, please take a moment to mark this thread as SOLVED (from the Thread Tools menu)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Quotation marks appearing when using CHR() as an argument with concatenation
    By AnnieMcken in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-29-2014, 09:19 AM
  2. [SOLVED] Formula to exclude anything before first appearing number in a string
    By chriskay in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-26-2014, 09:49 AM
  3. Exclude blank cells from COUNTIFS formula
    By Leahsco in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 08-05-2014, 11:45 AM
  4. Replies: 4
    Last Post: 12-19-2013, 09:49 AM
  5. I want to exclude blank cell in index match formula with multiple criteria
    By NOOR8225 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 09-16-2013, 06:51 AM
  6. Getting Rank formula to exclude zero and blank cells
    By Catherine01 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-11-2013, 06:10 AM
  7. Exclude Blank Cell from Formula
    By Executive in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-25-2012, 03:53 PM

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