+ Reply to Thread
Results 1 to 2 of 2

Stripping Out Un-Needed Cell Contents and Reordering What Remains

  1. #1
    Registered User
    Join Date
    09-29-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    1

    Unhappy Stripping Out Un-Needed Cell Contents and Reordering What Remains

    Hi, I'm new to the forum and will appreciate any help you can give to help me automate clean-up in a QuickBooks export file I have to use:

    Most cells in Col A contain individuals names displayed as FirstName LastName. Some line items (about 50% of all lines) begin with "CompanyName, City:" or just "CompanyName:" preceding FirstName LastName. Text is random length when present but always before ":". I need to strip out everything from the ":" to the left and then work with what's left to get a name list displayed as Last, First.

    Of course, some of the names also come with a MiddleInitial which must be retained as well, just to add to the joy of my Sunday morning!

    Ultimately, I need to end up with a column of names reordered as Last, First MiddleInitial -- with no Company or City info.

    Now: Company, City:First Last or Company:First Last or Company, City: First Last MiddleInitial

    Need: Last, First MiddleInitial

    I've been testing some LEFT and LEN combinations but haven't yet been successful -- can you point me in the right direction, please?

    Thanks so much!

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Stripping Out Un-Needed Cell Contents and Reordering What Remains

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

+ 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. Reordering Text and Numbers in a Cell
    By jkemerley in forum Excel General
    Replies: 1
    Last Post: 09-23-2011, 10:43 AM
  2. VBA code needed to look at cell value/contents
    By TreasureCat in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-10-2007, 10:29 AM
  3. Replies: 2
    Last Post: 07-28-2006, 11:05 AM
  4. reordering text and numbers in a cell
    By nospaminlich in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-13-2005, 01:06 PM
  5. [SOLVED] Stripping out contents of a cell after 8 characters?
    By Lance Hoffmeyer in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-01-2005, 01:06 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