Can I filter by formula rather than values? I have a simple formula in Col K. Example: =T54
What I would like to do is perform a filter showing all the rows where the formula in Col K begins with a letter other than T, (Where Formula <> "=T*")?
You can view all formulas by changing the View options, menu command Tools/Options/View and tick the Formulas checkbox in the Window Options section ( shortcut to toggle Formulas is Ctrl-' ( that's Ctrl key and the left single quote that is to the left of the 1 key on a UK keyboard ).
To filter on formula you'd need an extra column to contain the text of the formula, and that would have to be generated by VBA, or a VBA User-defined Function, or a Defined Name macro formula. I'd use the Defined Name macro formula ... Insert/Name/Define, CellLeftFormula with a definition of =GET.CELL(6,cell_ref_cell_left_of_current_cell)
which will show the formula of the cell to the left of the cell where =CellLeftFormula is entered. Then you can filter on that column.
Copied the formula
Clicked on Insert, Name, Define
Entered "CellLeftFormula" in "Names in WorkBook"
Pasted "=GET.CELL(6,cell_ref_cell_left_of_current_cell)" in "Refers to"
Clicked Add
Clicked OK
Inserted a Col after Col K
Pasted "=CellLeftFormula" in the new col
Also tried "=CellLeftFormula(K5)"
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.