0
0
Google Sheetsspreadsheet~10 mins

Combining clauses in Google Sheets - Cell-by-Cell Formula Trace

Choose your learning style9 modes available
Sample Data

This table lists people with their names, ages, and cities.

CellValue
A1Name
B1Age
C1City
A2Alice
B230
C2New York
A3Bob
B325
C3Los Angeles
A4Charlie
B435
C4New York
A5Diana
B528
C5Chicago
Formula Trace
=FILTER(A2:A5, (B2:B5>27) * (C2:C5="New York"))
Step 1: B2:B5>27
Step 2: C2:C5="New York"
Step 3: (B2:B5>27) * (C2:C5="New York")
Step 4: FILTER(A2:A5, [1, 0, 1, 0])
Cell Reference Map
    A       B       C
1 | Name  | Age   | City     |
2 | Alice | 30    | New York |
3 | Bob   | 25    | Los Angeles |
4 | Charlie | 35  | New York |
5 | Diana | 28    | Chicago  |

Formula references:
- A2:A5 for names
- B2:B5 for ages
- C2:C5 for cities
The formula uses the names in A2:A5, ages in B2:B5, and cities in C2:C5 to filter names based on age and city conditions.
Result
Filtered Names
1 | Result
2 | Alice
3 | Charlie
The formula returns the names of people older than 27 who live in New York: Alice and Charlie.
Sheet Trace Quiz - 3 Questions
Test your understanding
What does the expression (B2:B5>27) evaluate to?
A[FALSE, TRUE, FALSE, FALSE]
B[TRUE, FALSE, TRUE, TRUE]
C[TRUE, TRUE, TRUE, TRUE]
D[FALSE, FALSE, FALSE, FALSE]
Key Result
FILTER(range, (condition1) * (condition2)) filters rows where both conditions are true.