+ Reply to Thread
Results 1 to 3 of 3

Move text (the word "The") to beginning of cell

  1. #1
    Registered User
    Join Date
    08-09-2012
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1

    Move text (the word "The") to beginning of cell

    I have a few thousand rows of text all in 1 column that all start and end with different words but some have the word "The" at the end after a comma. I need a way to move "The" to the beginning of the cell in front of the rest of the text.

    Example - I need to turn this:
    Test
    Something
    Problem, The
    Anything
    Something else
    Macro, The

    Into This:
    Test
    Something
    The Problem
    Anything
    Something else
    The Macro

    Any thoughts on how this can be done? I thought about using text to columns and using a comma as the deliminator however several cells throughout the document have commas in them and I don't want that text moved to a new column - only the cells with ,The at the end.

    Thanks!
    Last edited by techstorm; 08-09-2012 at 01:57 AM.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,598

    Re: Move text (the word "The") to beginning of cell

    Use a helper column with:

    Please Login or Register  to view this content.
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    09-27-2012
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: Move text (the word "The") to beginning of cell

    This results in an error if there isn't a "The" in the column, is there more code that should be added so that the text remains as is, if there isn't a "The"? Thanks

+ 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