+ Reply to Thread
Results 1 to 9 of 9

Capitalization.

Hybrid View

  1. #1
    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: Capitalization.

    You could expand on this, but I'd go with a UDF.
    This handles the punctation marks, "Full Stop", "Question Mark", and "Exclamation Mark" with carriage return thrown in for good luck ...

    Drag C3 Across as far as you like
    Formula: copy to clipboard
    =UPPER(LEFT(TRIM(MID(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE("."&LOWER($A1),".",REPT(" ",255)),"?",REPT(" ",255)),"!",REPT(" ",255)),CHAR(10),""),COLUMNS($C:C)*255,255)),1))&MID(TRIM(MID(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE("."&LOWER($A1),".",REPT(" ",255)),"?",REPT(" ",255)),"!",REPT(" ",255)),CHAR(10),""),COLUMNS($C:C)*255,255)),2,255)

    Then in B2 expand on this, I have only allowed for 3 sentences.
    Formula: copy to clipboard
    =REPLACE(REPLACE(REPLACE(A1,SEARCH(C1,A1),LEN(C1),C1),SEARCH(D1,A1),LEN(D1),D1),SEARCH(E1,A1),LEN(E1),E1)
    Attached Files Attached Files
    Last edited by Marcol; 06-01-2013 at 12:45 PM. Reason: Bad spelling
    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.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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