+ Reply to Thread
Results 1 to 9 of 9

Set Filter conditions for excel workbook

  1. #1
    Registered User
    Join Date
    10-15-2019
    Location
    London
    MS-Off Ver
    2016
    Posts
    62

    Post Set Filter conditions for excel workbook

    I have data with 5000 rows, I filter the rows to be left with 100-200 rows.

    My question is :
    Is it possible to set predefined filters and only keep the filtered rows, the rest should be deleted (not even hidden)

    I tried using advance filter but after I filter everything goes blank.

    EDIT:
    How I plan to use the file:
    1) download raw data from web
    2) copy and paste the data in my excel workbook
    3) click 1 button to filter the data as per my pre defined conditions
    or
    4) just paste the data and upon pasting only the filtered data remains, rest is deleted.


    Any help on this will be greatly appreciated.

    Thanks & regards,
    Mukul
    Attached Files Attached Files
    Last edited by mukuljain99; 01-22-2020 at 10:30 PM.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,444

    Re: Set Filter conditions for excel workbook

    Administrative note

    Welcome to the forum

    missed the yellow banner advising how to get answers faster by posting a sheet ?

    Please take a moment to read it and attach a sheet accordingly.

    Thanks you for helping us help you

  3. #3
    Registered User
    Join Date
    10-15-2019
    Location
    London
    MS-Off Ver
    2016
    Posts
    62

    Re: Set Filter conditions for excel workbook

    Apologies for the miss, attached desired filter criteria and raw data.

  4. #4
    Registered User
    Join Date
    10-15-2019
    Location
    London
    MS-Off Ver
    2016
    Posts
    62

    Re: Set Filter conditions for excel workbook

    Bumppppppppp

  5. #5
    Registered User
    Join Date
    10-22-2019
    Location
    Qatar
    MS-Off Ver
    2013
    Posts
    58

    Re: Set Filter conditions for excel workbook

    Hi Mukul,
    As per my understanding of your problem, i have one solution.

    1. First filter all data which you need.
    2. In one column select all visible cells and fill by one color.
    3. Filter again by No Color (Filter - Filter by Color - No Fill).
    4. Delete all visible rows to remove unwanted data.





    Do you know how to select visible cells?
    If No, Please check the screen shot.
    Attached Images Attached Images

  6. #6
    Registered User
    Join Date
    10-15-2019
    Location
    London
    MS-Off Ver
    2016
    Posts
    62

    Re: Set Filter conditions for excel workbook

    This is a short term solution to a long term problem, I knew of this trick but I want it done on a daily basis.

    I want the filters to be predefined in the worksheet, as soon as I Paste my data there it should get filtered.

    I have no idea if this feature even exists in excel, any help is appreciated.

  7. #7
    Registered User
    Join Date
    10-22-2019
    Location
    Qatar
    MS-Off Ver
    2013
    Posts
    58

    Re: Set Filter conditions for excel workbook

    Give a list which data need to remains(filter by what?), so that some one can help you.
    Share a sample sheet.

  8. #8
    Registered User
    Join Date
    10-15-2019
    Location
    London
    MS-Off Ver
    2016
    Posts
    62

    Re: Set Filter conditions for excel workbook

    Edited Post #1 with the data sheet, the filters that I require are also there in column R, S, T

  9. #9
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,526

    Re: Set Filter conditions for excel workbook

    Making a few assumptions.
    1. New data is always pasted into the same sheet
    2. Symbol names are unique
    3. When new data is pasted it is not in table format.
    If all of that is true then on a separate sheet (Sheet2) the following could be placed once and left in place:
    1. Column headers in A1:P1
    2. Formula for A2:A250
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    3. Formula for B2:P250 =IF(A2="","",INDEX('sec_bhavdata_full (1)'!B$2:B$2000,MATCH($A2,'sec_bhavdata_full (1)'!$A$2:$A$2000,0)))
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. Replies: 2
    Last Post: 06-06-2019, 10:27 AM
  2. filter excel workbook based on Criteria which is Specific
    By swk8429 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-01-2017, 09:39 AM
  3. [SOLVED] Filter data that changes everyday to a new excel workbook
    By Nadina in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-29-2017, 10:01 PM
  4. [SOLVED] Advanced Filter Between Two Columns all OR conditions (4 conditions)
    By nobodyukno in forum Excel General
    Replies: 2
    Last Post: 02-16-2017, 01:13 PM
  5. Using excel workbook to update access database on conditions
    By swade730 in forum Access Tables & Databases
    Replies: 5
    Last Post: 02-23-2016, 09:53 AM
  6. Excel VBA filter to criteria and copy data and paste to another workbook
    By aalvaro03 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-19-2013, 07:33 PM
  7. [SOLVED] Copying data from a closed workbook into an open workbook ignoring excel filter?
    By reach78 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 09-17-2013, 12:31 AM

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