Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I have an xls in which I need to FILTER OUT data
worksheet name: Format columns name: a) Incentive Name b) Level criteria: a) Incentive Name = 'S' or 'N' b) Level '10' I have very little experience in Excel previously, more so in macro/VBA programming. Thanks in advance. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi,
click on the menu DATA | AUTO FILTER Excel will create an arrow on the top of you column for the column A click on the arrow select custom put igual S or N (you have two options) click OK click on the column B arrow select Custom Higher than 10 HTH Regards from Brazil Marcelo "shabb090177" escreveu: I have an xls in which I need to FILTER OUT data worksheet name: Format columns name: a) Incentive Name b) Level criteria: a) Incentive Name = 'S' or 'N' b) Level '10' I have very little experience in Excel previously, more so in macro/VBA programming. Thanks in advance. |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi Marcelo. Thnx in advance. I need to have this in macro. Any sample
of codes? Marcelo wrote: Hi, click on the menu DATA | AUTO FILTER Excel will create an arrow on the top of you column for the column A click on the arrow select custom put igual S or N (you have two options) click OK click on the column B arrow select Custom Higher than 10 HTH Regards from Brazil Marcelo |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Sub Filter()
ActiveWindow.ScrollRow = 1 Selection.AutoFilter Selection.AutoFilter Field:=1, Criteria1:="=S*", Operator:=xlOr, _ Criteria2:="=N*" Selection.AutoFilter Field:=2, Criteria1:="10" End Sub "shabb090177" wrote: Hi Marcelo. Thnx in advance. I need to have this in macro. Any sample of codes? Marcelo wrote: Hi, click on the menu DATA | AUTO FILTER Excel will create an arrow on the top of you column for the column A click on the arrow select custom put igual S or N (you have two options) click OK click on the column B arrow select Custom Higher than 10 HTH Regards from Brazil Marcelo |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thanks Jon,
But this allows me to select only data that met the criteria. How do I inverse/reverse the selection. I need to filter out these data. My requirement, get data in Field A which is not S or N; and above 10 in Field B (Field A != 'S' or Field A != 'N') and Field B = 10 JonR wrote: Sub Filter() ActiveWindow.ScrollRow = 1 Selection.AutoFilter Selection.AutoFilter Field:=1, Criteria1:="=S*", Operator:=xlOr, _ Criteria2:="=N*" Selection.AutoFilter Field:=2, Criteria1:="10" End Sub |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Sorry Shabb,
I must have misread the original criteria. This should do the trick. The criteria are between the quotes. You can adjust them as appropriate. Sub Filter() ActiveWindow.ScrollRow = 1 Selection.AutoFilter Selection.AutoFilter Field:=1, Criteria1:="<S*", Operator:=xlAnd, _ Criteria2:="<N*" Selection.AutoFilter Field:=2, Criteria1:="=10" End Sub "shabb090177" wrote: Thanks Jon, But this allows me to select only data that met the criteria. How do I inverse/reverse the selection. I need to filter out these data. My requirement, get data in Field A which is not S or N; and above 10 in Field B (Field A != 'S' or Field A != 'N') and Field B = 10 JonR wrote: Sub Filter() ActiveWindow.ScrollRow = 1 Selection.AutoFilter Selection.AutoFilter Field:=1, Criteria1:="=S*", Operator:=xlOr, _ Criteria2:="=N*" Selection.AutoFilter Field:=2, Criteria1:="10" End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro that filter data | Excel Worksheet Functions | |||
Pivot Table macro to set print area and print details of drill down data | Excel Discussion (Misc queries) | |||
import data using macro | Excel Discussion (Misc queries) | |||
Pulling data from 1 sheet to another | Excel Worksheet Functions | |||
Daily Macro to Download Data, Order and paste in order | Excel Worksheet Functions |