+ Reply to Thread
Results 1 to 4 of 4

Extract uppercase words from string

  1. #1
    Registered User
    Join Date
    11-21-2011
    Location
    boston, ma
    MS-Off Ver
    Excel 2007
    Posts
    25

    Smile Extract uppercase words from string

    Hi,

    I was trying to extract capital words from a string, and was given a great code seen below. My original goal was to extract capital letter like seen in Example 1 below. Now I am wondering if anyone can help me with EXCLUDING the following:

    - The first word in the string
    - Any words which begin a new sentence if the cell includes multiple sentences.
    - A specific word, like Fox


    Example 1 (Original):

    A1: The quick brown Fox Jumps over the lazy dog.

    Ideally in B1: The Fox Jumps



    Example 2 (New) Excluding words beginning a sentence and the word Fox:

    A1: The quick brown Fox Jumps over the lazy dog. It was Very Neat.

    Ideally in A1: Jumps Very Neat





    Please Login or Register  to view this content.




    Thanks in advance!

    -Andrew

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Extract uppercase words from string

    Try this

    Please Login or Register  to view this content.
    Martin

  3. #3
    Registered User
    Join Date
    11-21-2011
    Location
    boston, ma
    MS-Off Ver
    Excel 2007
    Posts
    25

    Re: Extract uppercase words from string

    That did it! Only problem at first was I was getting #value, but it was due to some cells ending with arbitrary spaces. I just used the TRIM function to clean that up, and voila! Thanks!

  4. #4
    Registered User
    Join Date
    11-21-2011
    Location
    boston, ma
    MS-Off Ver
    Excel 2007
    Posts
    25

    Re: Extract uppercase words from string

    Can anyone help me to adjust the latest code above? I actually want to keep the first word in the cell, but keep everything else as is. Thanks!

    A1: The quick brown Fox Jumps over the lazy dog. It was Very Neat.

    Ideally in B1: The Jumps Very Neat

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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