+ Reply to Thread
Results 1 to 11 of 11

Capitalize First Letter of All Words and Disregard Rest

  1. #1
    Registered User
    Join Date
    04-04-2013
    Location
    New York
    MS-Off Ver
    Excel 2016
    Posts
    32

    Capitalize First Letter of All Words and Disregard Rest

    Hello-

    I know how to use =PROPER to capitalize the first letter of each word in a cell and make the rest lowercase. But is there a way to capitalize the first letter of each word and leave everything else alone? For example, if I have:

    first lAST

    How can I end up with?:

    First LAST

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Capitalize First Letter of All Words and Disregard Rest

    Try this

    =PROPER(LEFT(A1,FIND(" ",A1)))&UPPER(MID(A1,FIND(" ",A1)+1,10))

    v A B
    1 first lAST First LAST
    Last edited by AlKey; 10-09-2019 at 12:02 PM.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    27,028

    Re: Capitalize First Letter of All Words and Disregard Rest

    How many words are in your cells?
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  4. #4
    Registered User
    Join Date
    04-04-2013
    Location
    New York
    MS-Off Ver
    Excel 2016
    Posts
    32

    Re: Capitalize First Letter of All Words and Disregard Rest

    Try this

    =PROPER(LEFT(A1,FIND(" ",A1)))&UPPER(MID(A1,FIND(" ",A1)+1,10))

    v A B
    1 first lAST First LAST





    Thanks for the response.

    Your formula seems to be capitalizing EVERY letter in any second word. In my example, "lAST" should indeed end up with all capital letters. But if the example used is "first lasT", it should end up as "First LasT". In other words, only the first letter of each word should be capitalized; every other letter that is not a first letter should be left as is.
    Last edited by dlc3172; 10-09-2019 at 12:14 PM. Reason: forgot to quote

  5. #5
    Registered User
    Join Date
    04-04-2013
    Location
    New York
    MS-Off Ver
    Excel 2016
    Posts
    32

    Re: Capitalize First Letter of All Words and Disregard Rest

    >>>How many words are in your cells?



    Some have only one word. Others have two or more.
    Last edited by dlc3172; 10-09-2019 at 12:14 PM. Reason: forgot to quote

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    27,028

    Re: Capitalize First Letter of All Words and Disregard Rest

    I think doing this with a worksheet formula for an indefinite number of words would be very complex. Here is a VBA function to do it:

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    04-04-2013
    Location
    New York
    MS-Off Ver
    Excel 2016
    Posts
    32

    Re: Capitalize First Letter of All Words and Disregard Rest

    Quote Originally Posted by 6StringJazzer View Post
    I think doing this with a worksheet formula for an indefinite number of words would be very complex. Here is a VBA function to do it:

    Please Login or Register  to view this content.



    Thanks - I need to keep this to a simple formula, though. I could limit this to no more than two words in a cell. Do you think a formula would work in that case?

  8. #8
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    27,028

    Re: Capitalize First Letter of All Words and Disregard Rest

    This will work for one or two words:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Although Excel can do string manipulation, it is not very good at it.

  9. #9
    Registered User
    Join Date
    04-04-2013
    Location
    New York
    MS-Off Ver
    Excel 2016
    Posts
    32

    Re: Capitalize First Letter of All Words and Disregard Rest

    Quote Originally Posted by 6StringJazzer View Post
    This will work for one or two words:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Although Excel can do string manipulation, it is not very good at it.

    Thanks. That works for me. I would have never figured this out, so many thanks.

  10. #10
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    27,028

    Re: Capitalize First Letter of All Words and Disregard Rest

    Thanks for the rep--if your question has been answered please mark your thread as "Solved" so that members will know by looking at the thread title that your problem is solved. Go to the menu immediately above your first post to the thread and click on Thread Tools. From the dropdown menu select "Mark this thread as solved..."

  11. #11
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,477

    Re: Capitalize First Letter of All Words and Disregard Rest

    Quote Originally Posted by 6StringJazzer View Post
    Please Login or Register  to view this content.
    The OP's needs appear pretty simple, but in a generalized case, a word could follow a punctuation (opening parenthesis, dot, dash, and some others). Here is a solution that accounts for that possibility...
    Please Login or Register  to view this content.

+ 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. Need to capitalize the first letter in a sentence and then the rest in small
    By ash81sen in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-09-2019, 02:23 PM
  2. [SOLVED] first letter is capitalize
    By nizar2016 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-18-2016, 11:16 AM
  3. Capitalize letter when using formatting
    By horsefish01 in forum Excel General
    Replies: 10
    Last Post: 03-06-2016, 02:45 PM
  4. Capitalize all first letter
    By CoachBarker in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-07-2013, 12:25 PM
  5. Replies: 6
    Last Post: 01-18-2013, 12:01 PM
  6. Capitalize first letter
    By randall78 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-14-2012, 03:56 AM
  7. Capitalize first letter of every word
    By inspirone1505 in forum Excel General
    Replies: 5
    Last Post: 02-20-2007, 03:06 AM

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