+ Reply to Thread
Results 1 to 5 of 5

Finding ALL CAPS in large dataset

  1. #1
    Registered User
    Join Date
    02-09-2012
    Location
    Phoenix, Arizona
    MS-Off Ver
    Excel 2007
    Posts
    7

    Post Finding ALL CAPS in large dataset

    Is there a way to Find and highlight ALL CAPS within a large dataset and make them proper?

    I don't want to use the Proper function on the entire dataset since I am working with Company Names. I have a mixture of proper and CAPS within the dataset. I want to keep the formatted Companies as is since they were corrected such as PJM Interconnections LLC and proper would undo the corrections and change it to Pjm Interconnections Llc which I don't want.

    Example:
    Dish Network
    Western State Hospital
    The City of New York
    BFG KALAMAZOO LLC
    5th Food Group
    PJM Interconnections LLC
    King Architectural Metals
    Alliant Techsystems Inc
    RAYBESTOS POWERTRAIN, LLC
    RAYBESTOS POWERTRAIN, LLC
    Wienerschnitzel
    Ichor Systems, Inc

    I want to be able to highlight the ALL CAPS so that I can do a Proper function on just those Companies.
    Does anyone know how to do this? I am working with a 500K rows of data

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Finding ALL CAPS in large dataset

    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Valued Forum Contributor
    Join Date
    03-23-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    1,093

    Re: Finding ALL CAPS in large dataset

    Hello there,

    I have provided two options below.

    The first finds and highlights all cells that are uppercase red.

    The second finds the cell that's uppercase then provides you with a message box asking if you'd like to proper case it. If you select yes then the macro proper cases the cell and then formats any cells that end in llc to LLC. I think you might like option 2 so you might want to give that a try first.

    These options assume that your data is in Column A
    If it is not the please change all A's to the correct column letter before attempting to run the code.
    Option 1

    Please Login or Register  to view this content.
    Option 2

    Please Login or Register  to view this content.
    To insert one of these codes

    1.Press Alt+F8 on your keyboard
    2.Clear the macro name box and type LocateCells in the blank box provided
    3.Select the Create option
    4.In between the Sub LocateCells() and End Sub copy and paste one of the options I have provided above.
    5.Exit out of the Visual Basic Window
    6.Press Alt+F8 again and this time select the LocateCells macro
    7.Select Run


    Let me know how these work for you!
    Last edited by rvasquez; 07-30-2012 at 02:01 PM.

  4. #4
    Registered User
    Join Date
    02-09-2012
    Location
    Phoenix, Arizona
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Finding ALL CAPS in large dataset

    You Rock!! It worked. Saves me a lot of time...
    Much Appreciated.

  5. #5
    Valued Forum Contributor
    Join Date
    03-23-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    1,093

    Re: Finding ALL CAPS in large dataset

    No prob!
    Thanks for the star tap!

+ 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