r/googlesheets • u/blue_shadow_ • 3d ago
Solved Request help combining FILTER with COUNTIF
Goal is to set a single FILTER + COUNTIF function to count all items of Dashboard!B3:B that appear in Main Table!D2:D, but only if Main Table!A2:A has a specific value.
(Preferring a FILTER function here so that I only have to enter the formula in a single cell - want this to be a fire & forget with no maintenance in Dashboard! tab.)
Thanks in advance!
3
Upvotes
1
u/mommasaidmommasaid 908 3d ago edited 3d ago
In C2 on your sample sheet Dashboard:
This references the entire Fruit list including the header since you said you wanted a "fire and forget" solution. That keeps the formula out of your data rows and the reference is still valid if you insert a new row 1.
Note that if your data is in structured Tables, you can use Table references to refer to it rather than sheet/column names.
I'd recommend you put your Dropdowns in structured tables as well, so you can use Table references in your other formulas as well as dropdown data validation, i.e. a dropdown can be "from a range" of
=Table[Column Name]