+ Reply to Thread
Results 1 to 8 of 8

Only Capitalize First Letter & Delete Last Name

  1. #1
    Registered User
    Join Date
    12-03-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2011 For Mac
    Posts
    6

    Only Capitalize First Letter & Delete Last Name

    \1

    Hi guys,

    I need some help here. I have about 1000 subscribers name & email list here. I want to do some housekeeping where:

    1. I want to remove 'last name' (in this case, Smith is the last name and I only want John to be there).

    2. I want to only capitalize the first letter and did not want ALL CAPS records like JOHN SMITH.

    Any Excel shortcuts to settle this?

    Thank you.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,879

    Re: Only Capitalize First Letter & Delete Last Name

    In columns B1. =PROPER(LEFT(A1,FIND(" ",A1,1)))

    Copy down

    Alan
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Only Capitalize First Letter & Delete Last Name

    Hi zulhfreelancer and welcome to the forum,

    I'd suggest three functions to learn.
    First is Find(" ",A1) which will find the first space in "JOHN SMITH"
    Then Left(A1, Find(" ",A1) which will return only JOHN
    Then Proper() or the above which will return John.

    I'd do a TRIM function at the end to remove leading or trailing spaces too.

    If JOHN SMITH was in A1 then my formula in B1 would be:

    =TRIM(PROPER(LEFT(A1,FIND(" ",A1))))
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Registered User
    Join Date
    12-03-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2011 For Mac
    Posts
    6

    Re: Only Capitalize First Letter & Delete Last Name

    Quote Originally Posted by alansidman View Post
    In columns B1. =PROPER(LEFT(A1,FIND(" ",A1,1)))

    Copy down

    Alan
    Thank you very much!

  5. #5
    Registered User
    Join Date
    12-03-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2011 For Mac
    Posts
    6

    Re: Only Capitalize First Letter & Delete Last Name

    Quote Originally Posted by MarvinP View Post
    Hi zulhfreelancer and welcome to the forum,

    I'd suggest three functions to learn.
    First is Find(" ",A1) which will find the first space in "JOHN SMITH"
    Then Left(A1, Find(" ",A1) which will return only JOHN
    Then Proper() or the above which will return John.

    I'd do a TRIM function at the end to remove leading or trailing spaces too.

    If JOHN SMITH was in A1 then my formula in B1 would be:

    =TRIM(PROPER(LEFT(A1,FIND(" ",A1))))
    Thank you very much!

  6. #6
    Registered User
    Join Date
    12-03-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2011 For Mac
    Posts
    6

    Re: Only Capitalize First Letter & Delete Last Name

    Good day guys,

    I've another question here that closely related to this thread.

    If I have these records in an Excel file (http://i.imgur.com/o13Cv.png),
    what could I do to trim them to obtain just their first name?

    1. Remove text after space (Smith) and obtain only John.
    2. Remove text after space (SMITH) and obtain only John and capitalize only the front letter.
    3. Maintain records that already capitalize it's front letter and doesn't have last name.
    4. Capitalize front letter for name that doesn't have last name.
    5. Normalize the case and only capitalize the front letter for name that doesn't have last name.

    Thank you.

  7. #7
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,879

    Re: Only Capitalize First Letter & Delete Last Name

    Try this:

    =IF(ISERR(FIND(" ",A1,1)),TRIM(PROPER(A1)),TRIM(PROPER(LEFT(A1,FIND(" ",A1,1)))))

  8. #8
    Registered User
    Join Date
    12-03-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2011 For Mac
    Posts
    6

    Re: Only Capitalize First Letter & Delete Last Name

    Thank you Alan! It's worked for me.

+ 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