Not sure I understand how FILTER works
Google Sheets - FILTER function
Google Sheets: Filtering
Google Sheets Filters
Posting your data can make it easier for others to help you, but it looks like your submission doesn't include any. If this is the case and data would help, you can read how to include it in the submission guide. You can also use this tool created by a Reddit community member to create a blank Google Sheets document that isn't connected to your account. Thank you.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
More on reddit.comWhat exactly is the FILTER function in Google Sheets?
What is the FILTER function in Google Sheets used for?
What's the difference between FILTER and QUERY in Google Sheets?
I made a sheet with A1:A6 like so:
foo foo bar foo foo foo
In B1 I made the following FILTER(A1:A6, A1:A6="bar"), this makes it so B1 is just bar, which I expected.
In C1 I made something I had thought would be logically equivalent: =FILTER(A1:A6, AND(A1:A6="bar", TRUE)). But that gives me an error: "FILTER has mismatched range sizes. Expected: 6 rows 1 column, Actual: 1 row 1 column."
Strangely replacing AND(...) with IF(A1:A6="bar", TRUE, FALSE) works. Any ideas?