So I’m talking Google Sheets here, one of the types of available Google Docs. Sheets is like Excel – in many ways. It’s also different – in many ways.
So I recently had a situation where I needed to filter data from one sheet (tab) into another. In English it would have read:
Bring me in the 5th column, of all the rows from the sheet called “Raw Data”, where the 11th column has a date of either today or later and the 4th column says anything other than “TEST”.
Eventually and after a lot of experimentation, I ended up with the forumla above, which on the whole, is self-explanatory.
Except for that ‘*‘!
The FILTER function has two parameters:
What to filter:
and the criteria to use:
('Raw Data'!K:K>=TODAY())*('Raw Data'!D:D<>"TEST")
And that ‘*‘ in the middle? Well it’s simply GSheet’s way of saying ‘AND’. (A ‘+‘ is used to mean ‘OR’).
In Excel you’d say something like:
AND('Raw Data'!K:K>=TODAY(),'Raw Data'!D:D<>"TEST")
And so we end up with:
=ArrayFormula(FILTER('Raw Data'!E:E,('Raw Data'!K:K>=TODAY())*('Raw Data'!D:D<>"TEST")))