+ Reply to Thread
Results 1 to 3 of 3

Proper with exceptions list

  1. #1
    Registered User
    Join Date
    04-05-2013
    Location
    Chester
    MS-Off Ver
    Excel 2010
    Posts
    13

    Proper with exceptions list

    At my office deal with a lot of strings in BLOCK CAPS and we often use Proper to convert it to title case but there's a fairly regular list of abbreviations we run into where we don't want that specific word proper-ing (e.g. GTI, RS4 etc.).

    Is there a good work-around / VB widget / way to do it with formulas?

    I'm thinking I could either write some VB to evaluate each word in turn against a list or use search and then substitute to substitute the word from a string (although presumably this is only gonna work if there's just one of the words on my list - perhaps I could run the same process two or three times) but just wondering if there's any existing solution for this because it seems like a really obvious thing to want to do.

    Did try search, to no avail.

    Cheers.

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Proper with exceptions list

    Well if you have your text in A1 and your abbreviation in A2 (in caps) then:
    =SUBSTITUTE(PROPER(A1),PROPER(A2),A2)
    would give you the correct term with your exception in A2.

    You could maybe use this idea with a macro, such as:

    Please Login or Register  to view this content.
    and use
    =proper_with_exceptions(a1,a2:a10) to make A1 proper but excepting the values in a2 to a10.

  3. #3
    Registered User
    Join Date
    04-05-2013
    Location
    Chester
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Proper with exceptions list

    Comparing that to the method I was trying I just feel fick. Many thanks

+ 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. Replies: 2
    Last Post: 04-29-2013, 05:18 PM
  2. Create a DBR - Database Reporting tool for a list of exceptions!
    By shanx.gr in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-18-2012, 06:43 PM
  3. Multiconditional sort, match and list with exceptions
    By kabaa01 in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 04-18-2010, 05:39 AM
  4. Macro To Compare Worksheets And List Differences With Exceptions
    By JimmiOO in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-14-2010, 07:52 AM
  5. List File Name with multiple exceptions
    By AdamParker in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-02-2008, 11:59 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