Formula: Filter()
Category: Filters
Filter()
Retrieves a list of values that match whatever filter you create.
Or, put otherwise...
Hey Coda, can you look at this table and give me all rows that match this specific criteria?
Filter() uses two parameters:
List
Filter(List, Expression)
This is the table or list you want to filter.
Expression
Find(List, Expression)
The formula that describes the information you want to extract.
Filter() is a contender for the top three “must-know” formulas in Coda. It’s one of the primary formulas used in extracting and focusing on meaningful information from your tables or lists.
Let’s See How Filter() Works
Given the definitions we have above, let’s see how the formula works with examples. For now, we are going to take a look at the and extract specific information from it. All people over 79 years old
All people with a salary > than $147,000
All people who’s name starts with “N”
You can also use Filter() to return rows that match multiple criteria!
All people who have a birthday in January and who are over 71
Now let’s learn to use Filter() to unlock some real Coda magic!
The Filter() formula becomes especially powerful when used to summarize or lookup information from another table. For example, take these two tables below and their tasks. All the task information you see in the yellow columns is thanks to our Filter() formula!
Go ahead and play these these tables. Notice how the task numbers automatically adjust depending on how many you add and how many you mark as “complete.”