Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bunson
 
Posts: n/a
Default Auto Filter by Criteria

I am looking for a way to have the data auto filtered according to the
criteria.
For example, I have data as following:
1
1
2
2
3
4

I have another cell for criteria input. If users input "2" in the cell.
The those data are not "2" will be filtered out.
Can I have a way by using excel functions only? Or Macro is needed?
Thanks all.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bpeltzer
 
Posts: n/a
Default Auto Filter by Criteria

Check the Advanced Filter (Data Filters Advanced Filter...). Its
arguments are the data range plus a criteria range. You'd set the criteria
range to be two rows by one column, with the first cell containing the column
header (it must match the corresponding header in your data table) and the
second cell the selected value. (Advanced filters allow more complex and/or
criteria, but it doesn't sound like you need that yet).

"Bunson" wrote:

I am looking for a way to have the data auto filtered according to the
criteria.
For example, I have data as following:
1
1
2
2
3
4

I have another cell for criteria input. If users input "2" in the cell.
The those data are not "2" will be filtered out.
Can I have a way by using excel functions only? Or Macro is needed?
Thanks all.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
listing winners formula sirdef Excel Discussion (Misc queries) 4 June 5th 06 05:26 PM
Is there a way to link Auto Filter values to a Cell SteveC Excel Worksheet Functions 2 May 1st 06 07:47 PM
Auto Filter - Protected sheet/workbook ronwill Excel Discussion (Misc queries) 3 January 10th 06 03:28 PM
auto filter question Juco Excel Worksheet Functions 0 November 29th 04 02:48 PM
Why can't my macro use Auto Filter when I told the Sheet Protecti. KC Rippstein Excel Worksheet Functions 1 October 28th 04 06:13 PM


All times are GMT +1. The time now is 09:37 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"