+ Reply to Thread
Results 1 to 8 of 8

Changing Text Using Formula

Hybrid View

  1. #1
    Registered User
    Join Date
    09-18-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    13

    Changing Text Using Formula

    Hi Everyone,

    I was wondering if there is a formula to change cell C2 to "Red" (One uppdercase, the rest lowercase) or if this was only possible through macro?
    Also, would there be a way to combine B2 & C2? I apologize, but I am an amateur when it comes to formulas and that was the only logical way I could think of to get the output in C2.
    B2 is actually not needed at all if possible. Thank you all in advance
    Attached Images Attached Images
    Last edited by dahh; 07-01-2014 at 02:07 PM. Reason: Solved

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,274

    Re: Changing Text Using Formula

    Change your formula to

    =PROPER(Old formula without the equal sign)

    To combine the formulas, use

    =IFERROR(PROPER(LEFT(MID(A2,FIND("-",A2)+1,LEN(A2)),FIND("-",MID(A2,FIND("-",A2)+1,LEN(A2)))-1)),"")
    Last edited by Bernie Deitrick; 07-01-2014 at 02:02 PM.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Registered User
    Join Date
    09-18-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Changing Text Using Formula

    Wow, thank you so much. It worked perfectly!

  4. #4
    Registered User
    Join Date
    09-18-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Changing Text Using Formula

    Thank you very much again Bernie for the update.
    It appears both methods work!

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Changing Text Using Formula

    Try

    =PROPER(TRIM(MID(SUBSTITUTE(A2,"-",REPT(" ",LEN(A2))),LEN(A2),LEN(A2))))

  6. #6
    Registered User
    Join Date
    09-18-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Changing Text Using Formula

    Thank you so much Jonmo1!

    Worked perfectly.
    I think I understand most of the functions in your formula.
    If I may ask what TRIM and REPT are?
    Always trying to understand how a formula works rather than copy and paste it.

  7. #7
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Changing Text Using Formula

    Quote Originally Posted by dahh View Post
    Thank you so much Jonmo1!
    You're welcome

    Quote Originally Posted by dahh View Post
    If I may ask what TRIM and REPT are?
    Trim removes extra spaces.
    Turns "____Hello____There___" into "Hello_There" <- _'s are spaces because forum software removes extra spaces..

    Rept repeats a given string x number of times.
    REPT("A",5) = "AAAAA"
    REPT("hello",3) = "hellohellohello"

  8. #8
    Registered User
    Join Date
    09-18-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Changing Text Using Formula

    I can't thank you enough.
    I appreciate the quick learning experience!

+ 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. Changing formula to add text
    By Koda7 in forum Excel General
    Replies: 2
    Last Post: 04-11-2011, 02:35 PM
  2. changing text to formula format
    By dcobau in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-24-2010, 07:22 PM
  3. Changing Text using a Formula
    By Paul1975 in forum Excel General
    Replies: 3
    Last Post: 09-04-2009, 05:23 AM
  4. Changing the text color in a formula
    By Carleilam in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-27-2008, 08:33 PM
  5. Changing formula result to text?
    By hutchie in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-25-2006, 06:55 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