+ Reply to Thread
Results 1 to 4 of 4

Name CONCATENATE Problem

  1. #1
    Valued Forum Contributor mohan.r1980's Avatar
    Join Date
    09-18-2010
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2010 (windows7)
    Posts
    729

    Name CONCATENATE Problem

    Hi Friends

    I have Six field of Name i.e. First Name, Middle Name, third Name, Fourth Name, Fifth Name, Sixth Name.

    First Name is compulsory come but the Middle Name to sixth Name is Optional


    I want to CONCATENATE it like First Name and Last Name

    if third Name is Blank then First Name and Forth Name
    if Forth name is blank then First Name and fifth name
    if Fifth name is blank then First Name and Sixth Name
    if all names come then First Name and Sixth Name will Show
    if third,fourth,fifth,sixth name is blank then first and Second Name will come.

    For More details i attached sample file here
    Attached Files Attached Files
    Last edited by mohan.r1980; 02-24-2012 at 04:20 AM.

  2. #2
    Forum Expert
    Join Date
    06-09-2010
    Location
    Australia
    MS-Off Ver
    Excel 2013
    Posts
    1,714

    Re: Name CONCATENATE Problem

    Hi
    try

    =A2&" "&IF(F2<>"",F2,IF(E2<>"",E2,IF(D2<>"",D2,IF(C2<>"",C2,B2))))

  3. #3
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Name CONCATENATE Problem

    I wrote a custom function. I think it might do the trick
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor mohan.r1980's Avatar
    Join Date
    09-18-2010
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2010 (windows7)
    Posts
    729

    Re: Name CONCATENATE Problem

    Thanks NickyC and JieJenn
    it works fine
    thanks a lot

+ 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