+ Reply to Thread
Results 1 to 6 of 6

I need to mass delete or split text from columns with different content

  1. #1
    Registered User
    Join Date
    11-17-2017
    Location
    Ireland
    MS-Off Ver
    2010
    Posts
    3

    I need to mass delete or split text from columns with different content

    Hi,

    I need help with deleting or splitting words using one word as a reference and deleting everything from this word. For example

    Column C

    I have worked at this desk

    Never tried cooking at your house


    What I want to do is to delete every single word that comes after "at", as all my rows will have the word "at" followed by different lines of text, so what I want it to be is either:

    Column C

    I have worked

    Never tried cooking

    Or splitting them like this:

    Column C

    I have worked

    Never tried cooking


    Column D

    this desk
    your house


    Any help? Thanks!

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,078

    Re: I need to mass delete or split text from columns with different content

    How about
    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor dotchiejack's Avatar
    Join Date
    05-21-2015
    Location
    Antwerp,Belgium
    MS-Off Ver
    2016
    Posts
    507

    Re: I need to mass delete or split text from columns with different content

    Or
    Please Login or Register  to view this content.
    Click the * Add Reputation below to say thanks.

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,078

    Re: I need to mass delete or split text from columns with different content

    @dotchiejack
    What happens if the cell contains "Today is Saturday"

  5. #5
    Registered User
    Join Date
    11-17-2017
    Location
    Ireland
    MS-Off Ver
    2010
    Posts
    3

    Re: I need to mass delete or split text from columns with different content

    Hi Fluff13, thanks for the reply. Is this a Macros formula to be insterted in teh developers portal and saved as such? I am wondering how do I trigger it.

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,078

    Re: I need to mass delete or split text from columns with different content

    Yes, it needs to go in a regular module. In the VBE click Insert > Module > then paste the code into the new window.
    You can run it from Xl by Alt+F8 > select the macro > Run

+ 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. Formula(s) to Split Text String Across Columns Using Columns as Seperator
    By WaylettChris in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-24-2016, 01:13 PM
  2. Replies: 2
    Last Post: 03-08-2015, 09:31 AM
  3. Any way to delete text in mass?
    By SPF33432 in forum Excel General
    Replies: 3
    Last Post: 09-25-2014, 05:38 PM
  4. Replies: 7
    Last Post: 08-12-2014, 10:40 AM
  5. [SOLVED] Mass delete certain rows/columns each time
    By dinker454 in forum Excel General
    Replies: 10
    Last Post: 09-19-2013, 06:12 PM
  6. Delete Text Content
    By QPM in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-11-2010, 05:55 AM
  7. Delete & Move columns based on Heading content
    By carsto in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-02-2007, 10:09 AM

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