Results 1 to 1 of 1

Data Filter copy Paste

Threaded View

  1. #1
    Forum Contributor pr4t3ek's Avatar
    Join Date
    10-13-2008
    Location
    Melbourne, Australia
    MS-Off Ver
    2003 & 2007, 2010
    Posts
    483

    Data Filter copy Paste

    I have a spreadsheet which has data in the following format
    FILE_STARTxxxxxxxxx
    111moneyistheking                   money joker
    12312342453534
    123monkey love packages
    FILE_STARTxXxxXaidoa
    4564543love
    666pokerking
    888love
    FILE_START1231231
    445joker
    FILE_START6666
    4848864
    I would like code which looks through each of these rows, if it contains the word "love" then extract that set of file.
    a file starts with the word "FILE_START" and ends when the next "FILE_START" is present. So the "extract" must contain all rows inbetween the two "FILE_START"s if the word "love" exists in between the two "FILE_START"s...

    The number of rows in between each "FILE_START" can vary.

    so with the above data in say sheet1, i would like to following output in sheet2

    FILE_STARTxxxxxxxxx
    111moneyistheking                   money joker
    12312342453534
    123monkey love packages
    FILE_STARTxXxxXaidoa
    4564543love
    666pokerking
    888love
    I hope this makes sense?
    Last edited by pr4t3ek; 06-09-2011 at 01:13 AM.
    --
    Regards
    PD

    ----- Don't Forget -----

    1. Use code tags. Place "[code]" before the first line of code and "[/code"]" after the last line of code. Exclude quotation marks

    2. Thank those who have helped you by Clicking the scales above each post.

    3. Please mark your post [SOLVED] if it has been answered satisfactorily.

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