Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
Don't know if this can be done but i'd like to be able to filter a list that has a keyword within a cell formula. EG I'd like to filter all the rows that have a vlookup function Is this possible? Thanks in advance Peter PS My current code filters the results from a formula: Range("Database").AdvancedFilter Action:=xlFilterInPlace, CriteriaRange:= _ Workbooks("Lookup Tables.xls").Sheets("Opening Screen").Range("CriteriaTravel"), Unique:=False The Range "CriteriaTravel": =OR(COUNTIF(D3,"*travel*")=1,COUNTIF(D3,"*mileage* ")=1) |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Seeing as you didn't get any better answers maybe this will do.
"Filters" column A. Sub hide() Dim eRow As Long Dim ColA As Range Dim cell As Range eRow = Cells(Rows.Count, 1).End(xlUp).Row Set ColA = Range(Cells(2, 1), Cells(eRow, 1)) ColA.EntireRow.Hidden = False For Each cell In ColA If Not cell.FormulaR1C1 Like "*VLOOKUP*" Then cell.EntireRow.Hidden = True End If Next cell End Sub Regards Rowan mcnaught@lincoln wrote: Hi, Don't know if this can be done but i'd like to be able to filter a list that has a keyword within a cell formula. EG I'd like to filter all the rows that have a vlookup function Is this possible? Thanks in advance Peter PS My current code filters the results from a formula: Range("Database").AdvancedFilter Action:=xlFilterInPlace, CriteriaRange:= _ Workbooks("Lookup Tables.xls").Sheets("Opening Screen").Range("CriteriaTravel"), Unique:=False The Range "CriteriaTravel": =OR(COUNTIF(D3,"*travel*")=1,COUNTIF(D3,"*mileage* ")=1) |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Formula (not adv. filter) to list unique values from list | Excel Worksheet Functions | |||
check text in cell for at least one keyword from a list on anothersheet | Excel Worksheet Functions | |||
How can I see if a cell contains a keyword from a list? | Excel Worksheet Functions | |||
Place a set value in a cell from a drop down list name reference | Excel Worksheet Functions | |||
how to place formula to cell | Excel Programming |