+ Reply to Thread
Results 1 to 13 of 13

Upper and Lower Cases of Text

  1. #1
    Registered User
    Join Date
    08-08-2013
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    2

    Upper and Lower Cases of Text

    Hi, I need a formula to convert a text in all upper cases into lower cases except for the first letter in the first word after each equal sign. However, the text before the equal sign must still be in capital letters. I currentrly use the function PROPER which did not give me the desired result. Please see attachment.
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Upper and Lower Cases of Text

    I could offer you a formula that would deal with ONE = sign and make everything CAPS before it and Proper after it. For delimited strings like you are demonstrating I would resort to VBA programming to resolve this scenario.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    Newcastle, Australia
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    1,429

    Re: Upper and Lower Cases of Text

    Without VBA, this would only be possible if you had a fixed number of entries in each cell in Column A (i.e. you had the same number of "=" signs in every cell). Without this knowledge, there is no formula that I am aware of that will accomplish what it is that you are trying to achieve unfortunately.

    To achieve the result in VBA, place a button onto your worksheet, and place the following code into your button's Click event (my button is called "CommandButton1"):
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    06-26-2013
    Location
    LAX
    MS-Off Ver
    Excel 2007,Excel 2010
    Posts
    363

    Re: Upper and Lower Cases of Text

    Yes, As JBeaucaire says VBA would be the solution.
    But if you would like to have a non VBA solution, see if the attached kind of work around helps.
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    08-11-2012
    Location
    bengalur
    MS-Off Ver
    Excel 2003, 2007
    Posts
    152

    Re: Upper and Lower Cases of Text

    This is above formula used for the first BUS=BUSINESS, RES=RESIDENTIAL
    Please Login or Register  to view this content.

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,447

    Re: Upper and Lower Cases of Text

    If you do want a VBA function, then maybe this:

    Please Login or Register  to view this content.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  7. #7
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Upper and Lower Cases of Text

    Try this UDF which will work with N number of permutation combination.

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


    Or

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


    How to install your new code
    1. Copy the Excel VBA code
    2. Select the workbook in which you want to store the Excel VBA code
    3. Press Alt+F11 to open the Visual Basic Editor
    4. Choose Insert > Module
    5. Edit > Paste the macro into the module that appeared
    6. Close the VBEditor
    7. Save your workbook (Excel 2007+ select a macro-enabled file format, like *.xlsm)


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  8. #8
    Forum Contributor
    Join Date
    07-02-2013
    Location
    Stockholm, Sweden
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    197

    Re: Upper and Lower Cases of Text

    That code was very impressing Sixthsense!!!

  9. #9
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Upper and Lower Cases of Text

    Thanks for the feedback and rep

    But the code of TMShucks is having lot more functionalities/features than my suggested code

  10. #10
    Registered User
    Join Date
    08-08-2013
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Upper and Lower Cases of Text

    Thank you all for your suggestions. For now, I will use the Excel formula since I'm on tight deadline and VBA for the next project.

  11. #11
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Upper and Lower Cases of Text

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  12. #12
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Upper and Lower Cases of Text

    Just for fun this formulae approach can be extended to suit any length of string.

    Name:="Split_Str"
    Refers to:=
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Then in C2, Drag across as far as required to split your longest string, then Down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Concatenate the results in B2
    =
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  13. #13
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,447

    Re: Upper and Lower Cases of Text

    You're welcome. Thanks for the rep.


    Seems a shame not to use the code solution when all you have to do is copy and paste the code into a standard module. It will work "out of the box".

    But, your choice. Good luck with your project.


    Regards, TMS

+ 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] How to convert a column of text to upper and lower case?
    By jewell b in forum Excel General
    Replies: 1
    Last Post: 08-06-2006, 04:10 AM
  2. How to test text case for Upper/Lower/Proper
    By JS in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-22-2006, 08:05 PM
  3. Replies: 2
    Last Post: 12-09-2005, 05:15 AM
  4. Replies: 14
    Last Post: 08-25-2005, 10:05 PM
  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