+ Reply to Thread
Results 1 to 7 of 7

Filter some lines from one sheet to another.

  1. #1
    Registered User
    Join Date
    07-15-2012
    Location
    Israel
    MS-Off Ver
    Excel 2007
    Posts
    7

    Filter some lines from one sheet to another.

    Hello,

    I have some data imported from a text file.

    Some not important text
    Some more not important text
    CustomerReferenceNumber 5 Customer_A
    CustomerReferenceNumber 7 Customer_B
    CustomerReferenceNumber 8 Customer_C
    CustomerReferenceNumber 9 Customer_G
    CustomerReferenceNumber 12 Customer_K
    and more text
    and more text
    and more text


    I would like to have only the lines with "CustomerReferenceNumber" to be filtered to new sheet.
    I prefer doing that using formula.
    Starting row and ending row can vary from a file to another.
    Sample attached.


    Thanks
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    06-26-2013
    Location
    Makati
    MS-Off Ver
    Excel 2010
    Posts
    138

    Re: Filter some lines from one sheet to another.

    Hi,

    You can try to use advance filter for this, after you filter it just copy paste to the new sheet.
    Try see attached file

    Customerlistupdate.xlsx

  3. #3
    Registered User
    Join Date
    07-15-2012
    Location
    Israel
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Filter some lines from one sheet to another.

    Thanks,

    I would like to do that using formula.
    I need to prepare a Excel file with an empty sheet where the raw data will be pasted in and the filter will be automatically applied to another sheet. Using advanced filter will require user doing more actions.

    Any thoughts?

  4. #4
    Forum Contributor
    Join Date
    08-02-2013
    Location
    Wageningen, The Netherlands
    MS-Off Ver
    365
    Posts
    495

    Re: Filter some lines from one sheet to another.

    To remove the irrelevant data, use this:
    =IF(ISERROR(FIND("CustomerReferenceNumber";$A1))=TRUE;"";A1)
    (where your data starts in column A)
    drag to the right and below.

    Then the next step would be to remove the empty rows somehow
    When I say semicolon, u say comma!

  5. #5
    Registered User
    Join Date
    07-15-2012
    Location
    Israel
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Filter some lines from one sheet to another.

    Great Thanks,

    I modified it a bit to have the data on a new sheet.
    When the IF is FALSE it leaves empty rows in the begining.
    Can i delete rows with no data? Do i have to use a macro for that?

    Regards

  6. #6
    Forum Contributor
    Join Date
    08-02-2013
    Location
    Wageningen, The Netherlands
    MS-Off Ver
    365
    Posts
    495

    Re: Filter some lines from one sheet to another.

    I don't know if it's possible with a formula, but you could also just sort the data

  7. #7
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Filter some lines from one sheet to another.

    Try this array formula, confirm with Ctrl+Shift+Enter not just Enter before dragging Across and Down.
    In A2
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

+ 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. Filter multiple lines with 1 condition
    By buddhaqc1 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 04-08-2013, 03:55 PM
  2. [SOLVED] Need: filter, paste info to new sheet, rename sheet, unfilter, hide column, filter next
    By esmithqg in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-18-2012, 04:49 PM
  3. How to ignore lines in filter?
    By karl-heinz-1950 in forum Excel General
    Replies: 0
    Last Post: 04-23-2008, 12:43 AM
  4. How do I filter out lines in a range?
    By Aaron in forum Excel General
    Replies: 9
    Last Post: 04-21-2006, 09:35 AM
  5. [SOLVED] Counting lines when using a filter
    By hagan in forum Excel General
    Replies: 8
    Last Post: 07-05-2005, 04:05 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