+ Reply to Thread
Results 1 to 3 of 3

Select data based on content, cut content, and move to new cell

  1. #1
    Registered User
    Join Date
    12-06-2005
    Posts
    3

    Question Select data based on content, cut content, and move to new cell

    I am looking to select data based on a given criteria. Let's say that I want to select all the cells that contain the word "CHAPTER". After these cells are selected, I want to cut/delete the content of these cells and paste them into a another location within the spreadsheet. How do I do this?

  2. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by urbanplanner
    I am looking to select data based on a given criteria. Let's say that I want to select all the cells that contain the word "CHAPTER". After these cells are selected, I want to cut/delete the content of these cells and paste them into a another location within the spreadsheet. How do I do this?
    Hi,

    it's a little rough, but will move any 'Chapter' in columns A to D to column H
    Please Login or Register  to view this content.
    remove the msgbox after testing.

    You may wish to suppress the 'each ws' and just do the Activesheet

    hth
    ---
    Si fractum non sit, noli id reficere.

  3. #3
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Talking

    Hi,

    Try the following N steps:

    1. Assumimg the data starts in cell A1, enter the following formula into the first cell in the first available column =IF(ISERROR(SEARCH("Chapter",A1)),2,1) to the rigt of the dataset
    2. Copy this down the entire range
    3. Sort the entire dataset by this column
    4. Move (CTRL + X) the range flagged by a 1 to the desired location
    5. Delete any columns with the sort flag if need be

    Hope this helps.

    Kind regards,

    Robert

+ 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