+ Reply to Thread
Results 1 to 5 of 5

Need Help with Capitalizing Certain Letters

  1. #1
    Registered User
    Join Date
    02-03-2013
    Location
    NC
    MS-Off Ver
    Excel 2010
    Posts
    3

    Need Help with Capitalizing Certain Letters

    I have a very large spreadsheet with business names in it. Many are J&j Auto, J&s Transmission Repair, Ss&t Wheels And Tires, and so forth. Using the Proper or Upper function will not accomplish what I am trying to do.

    I need a formula that will look in a cell and if it contains *&* then apply the UPPER case to only the letters around the &.

    Can this be done?

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Need Help with Capitalizing Certain Letters

    Hello & Welcome to the Forum,

    Maybe...

    =IF(ISNUMBER(SEARCH("&",A1)),UPPER(LEFT(A1,FIND(" ",A1)-1))&" "&MID(A1,FIND(" ",A1)+1,LEN(A1)),A1)
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    02-03-2013
    Location
    NC
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Need Help with Capitalizing Certain Letters

    Quote Originally Posted by jeffreybrown View Post
    Hello & Welcome to the Forum,

    Maybe...

    =IF(ISNUMBER(SEARCH("&",A1)),UPPER(LEFT(A1,FIND(" ",A1)-1))&" "&MID(A1,FIND(" ",A1)+1,LEN(A1)),A1)
    Awesome! That worked great. One last question...

    What about the ones that just have B&b and nothing else in the cell?

    To convert those to B&B


    Also if a business has 3 letters in their name... how to make that AAA instead of Aaa.

    My spreadsheet is 68,000 rows long.... so looking through it is nuts to fix these one at a time.

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Need Help with Capitalizing Certain Letters

    What about...

    =IF(LEN(A1)=3,UPPER(A1),IF(ISNUMBER(SEARCH("&",A1)),UPPER(LEFT(A1,FIND(" ",A1)-1))&" "&MID(A1,FIND(" ",A1)+1,LEN(A1)),A1))

  5. #5
    Registered User
    Join Date
    02-03-2013
    Location
    NC
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Need Help with Capitalizing Certain Letters

    Thanks for the help!

+ 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