+ Reply to Thread
Results 1 to 10 of 10

Excel Title Case Formula

  1. #1
    Registered User
    Join Date
    11-18-2009
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    29

    Excel Title Case Formula

    So, I have a spreadsheet with a couple of thousand addresses that are all in upper case. In the column to the right of the address, I'm using the formula =PROPER(A1) and that does a pretty good job of converting it to title case. My major issue with it is for those addresses like 1st, 2nd, 3rd, 4th street because it comes out like 1St St., which looks kind of weird. Is there any way around that?

    Thanks.

  2. #2
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Excel Title Case Formula

    Give this a shot:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by Arkadi; 10-26-2018 at 01:49 PM.
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  3. #3
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Excel Title Case Formula

    Oops... you will need to add 3 Substitute layers... 1Th (for 11th for example), 2Th, 3Th

  4. #4
    Registered User
    Join Date
    11-18-2009
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    29

    Re: Excel Title Case Formula

    Thanks. We will have some on 240th St., 265th St. Will I have to add even more substitute layers to go all the way up to that?

  5. #5
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Excel Title Case Formula

    No... 240th still contains "0th" so it still gets replaced.

    Only need the last digit before the ordinal letters ("th" "st" etc.)... So there are 13 cases and I did 10 of them you just need to add the 3 that I mentioned above because I missed those.

    Actually, I just did it... as long as I made no typos it should work:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by Arkadi; 10-26-2018 at 02:14 PM.

  6. #6
    Registered User
    Join Date
    11-18-2009
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    29

    Re: Excel Title Case Formula

    Perfect, that worked. Thank you so much.

  7. #7
    Registered User
    Join Date
    11-18-2009
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    29

    Re: Excel Title Case Formula

    Sorry, I forgot about SW, NE, etc. at the end of an address. Do I just include those into that formula somewhere?

  8. #8
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Excel Title Case Formula

    Well... sw and ne could be part of a word... so that's a harder one.... I suppose SW and NE would always have a space in front of them, but words could start with those letters too.... so it depends on whether we can find a unique condition such as space-NE or space-SW are always followed by a space, or a period or something else that would ensure it is not the start of a word

  9. #9
    Registered User
    Join Date
    11-18-2009
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    29

    Re: Excel Title Case Formula

    Disregard, I just added those to the end and added a SUBSTITUTE parameter for each one and it's working. Thanks again for your help.

  10. #10
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Excel Title Case Formula

    Yes but with a straight substitute, Ne for NE, would mean Nebraska becomes NEbraska for example?

+ 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. [SOLVED] Trying to make a nice Title Case
    By jomili in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-22-2018, 10:24 AM
  2. Converting MSWord Title Case macro to work in Excel
    By jerrydiaz in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-12-2014, 11:50 AM
  3. Auto change column to Title Case
    By Zyphon in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-08-2008, 11:18 AM
  4. How can I force Title Case in a cell?
    By Zyphon in forum Excel General
    Replies: 8
    Last Post: 01-29-2008, 09:22 AM
  5. [SOLVED] Title case for text in columns
    By Annalise Vogel in forum Excel General
    Replies: 3
    Last Post: 12-08-2005, 12:50 AM
  6. Title Case--No mail merge
    By Derek Y via OfficeKB.com in forum Excel General
    Replies: 3
    Last Post: 07-29-2005, 03:05 PM
  7. Change case from UPPER to Title Case??
    By Mamacsee in forum Excel General
    Replies: 2
    Last Post: 07-05-2005, 05:05 PM

Tags for this Thread

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