I have a range of data (up to 20,000 cells) that has up to 30 different entries. I need to apply a filter to this data to filter out all but 5 of these. Any ideas?
I have a range of data (up to 20,000 cells) that has up to 30 different entries. I need to apply a filter to this data to filter out all but 5 of these. Any ideas?
Last edited by mattydalton; 10-21-2008 at 12:31 PM.
You are limited to two criteria with AutoFilter, are all entries in one column?
Hope that helps.
RoyUK
--------
For Excel Tips & Solutions, free examples and tutorials why not check out my web site
Free DataBaseForm example
You could use Advanced Filter for this but note I frequently find Advanced Filter to be sloooooow especially on large data ranges.
Your criteria for the Advanced Filter could be along the lines of:
=ISNUMBER(MATCH(A2,{1,2,3,4,5},0))
where {1,2,3,4,5} represents your 5 values you want returned in the filter. eg is strings this would be {"String1","String2","String3","String4","String5"}.
Richard
Richard Schollar
Microsoft MVP - Excel
I have figured it out:
I have created a template file with my fields in row 1 and my criteria in row 2. I have then applied an advanced filter referencing the criteria range as the range in my template file. Works a treat.
Thanks
you could use vba.
not really sure what happens if one of the items is not on the list.Please Login or Register to view this content.
alsoe if you know how to make user forms you could make a shanzzy input form.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks