+ Reply to Thread
Results 1 to 8 of 8

Help needed with a formula to convert upper-case words only to lower-case

  1. #1
    Registered User
    Join Date
    11-13-2009
    Location
    France
    MS-Off Ver
    Excel 2007
    Posts
    32

    Help needed with a formula to convert upper-case words only to lower-case

    Hi,

    Can you think of a formula that will convert upper-case words longer than three letters, into lower-case. Leaving the rest of the string unchanged?

    For example,

    Mary and John at IBM thought this was a GREAT OPPORTUNITY. Becomes:
    Mary and John at IBM thought this was a great opportunity.

    I have also tried using morefunc's REGEX.SUBSTITUTE but I couldn't get that to work either!

    Any ideas or help would be appreciated, thanks,

    Chris
    Last edited by holmwood; 04-18-2014 at 09:06 AM.

  2. #2
    Registered User
    Join Date
    01-08-2006
    Posts
    8

    Re: Help needed with a formula to convert upper-case words only to lower-case

    is it a set few 3 letter uppercase words, or do they have a lot of variance? is there only one 3 letter word per string, plus name/place capitalizations?

    (..any sample data?)
    Last edited by mcrae; 04-18-2014 at 09:57 AM.

  3. #3
    Valued Forum Contributor
    Join Date
    07-04-2012
    Location
    Cape Town, RSA
    MS-Off Ver
    Office 365 ProPlus
    Posts
    1,050

    Re: Help needed with a formula to convert upper-case words only to lower-case

    Hi,

    Without VBA it would be quite tricky to string together an array formula to do this. It is MUCH easier to use a user defined function.
    Just add it to a module in VBA (ALT+F11) and use it instantly in your sheets like this:

    String in A1: Mary and John at IBM thought this was a GREAT OPPORTUNITY.
    In B1 enter: =WordsToLower(A1)

    Please Login or Register  to view this content.
    Regards,
    Rudi

  4. #4
    Registered User
    Join Date
    11-13-2009
    Location
    France
    MS-Off Ver
    Excel 2007
    Posts
    32

    Re: Help needed with a formula to convert upper-case words only to lower-case

    Regrettably, the formula has to cope with a lot of variances, so a a list of 'substitute' phrases is not possible.

  5. #5
    Registered User
    Join Date
    11-13-2009
    Location
    France
    MS-Off Ver
    Excel 2007
    Posts
    32

    Re: Help needed with a formula to convert upper-case words only to lower-case

    Rudi, I will try this out and report back.

    Thanks.

  6. #6
    Registered User
    Join Date
    11-13-2009
    Location
    France
    MS-Off Ver
    Excel 2007
    Posts
    32

    Re: Help needed with a formula to convert upper-case words only to lower-case

    Yipee!

    Rudi thanks. It will be no surprise to you that your code worked perfectly.

    Thank you very much.

    Chris

    (I can't see how you mark a thread as 'SOLVED', but solved it is!)
    Last edited by holmwood; 04-18-2014 at 12:57 PM.

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Help needed with a formula to convert upper-case words only to lower-case

    Thread tools menu above the first post, Chris.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  8. #8
    Valued Forum Contributor
    Join Date
    07-04-2012
    Location
    Cape Town, RSA
    MS-Off Ver
    Office 365 ProPlus
    Posts
    1,050

    Re: Help needed with a formula to convert upper-case words only to lower-case

    My pleasure Chris...
    Glad it's doing what you need.

+ 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] Convert 1st letter of word to Upper Case and rest to lower case
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-23-2013, 11:44 AM
  2. [SOLVED] Trying to convert lower to upper case
    By Allgermanparts in forum Excel General
    Replies: 2
    Last Post: 07-02-2012, 05:07 AM
  3. [SOLVED] Convert lower case charecters to upper case
    By Dinesh in forum Excel General
    Replies: 3
    Last Post: 09-10-2005, 08:05 AM
  4. Convert UPPER CASE to Lower Case?
    By Newbie in forum Excel General
    Replies: 6
    Last Post: 07-21-2005, 06:05 AM
  5. Replies: 1
    Last Post: 03-09-2005, 05:06 PM

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