+ Reply to Thread
Results 1 to 5 of 5

Initials from a name

  1. #1
    Registered User
    Join Date
    07-25-2007
    Location
    Florida
    Posts
    1

    Initials from a name

    Can you show me a formula to change a name to initials?
    Example John Doe = JD

  2. #2
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127
    Assuming the name is in cell A1, and the first and last name are separated by a space, this formula will work:

    =LEFT(A1,1)&" "&LEFT(REPLACE(A1,1,FIND(" ",A1),""),1)

  3. #3
    Registered User
    Join Date
    08-27-2003
    Location
    Melbourne, Australia
    Posts
    75
    Works fine, but can an error filter put incorporated so if only one word is entered, it just shows one initial (instead of an error)?

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,719
    Perhaps try

    =LEFT(REPLACE(A1,2,FIND(" ",A1&" ")-1,""),2)

  5. #5
    Registered User
    Join Date
    08-27-2003
    Location
    Melbourne, Australia
    Posts
    75
    Quote Originally Posted by daddylonglegs
    Perhaps try

    =LEFT(REPLACE(A1,2,FIND(" ",A1&" ")-1,""),2)

    Works Great! Thanks heaps, DLL.

+ 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