Table:
0
A
B
C
D
E
F
G
1
Series #
Title
Directed by
Written by
Original air date
Production code
U.S. viewers (million)
2
1
"Pilot" "Welcome to the CIA"
Tim Matheson
Matt Corman & Chris Ord
July13,2010
CA101
4.88
3
2
"Walter's Walk"
Félix Alcalá
Matt Corman & Chris Ord
July20,2010
CA102
5.21
4
3
"South Bound Suarez"
John Kretchmer
James Parriott
July27,2010
CA103
4.83
5
4
"No Quarter"
Allan Kroeker
Stephen Hootstein
August3,2010
CA104
5.30
6
5
"In the Light"
Jonathan Glassner
Meredith Lavender & Marcie Ulin
August10,2010
CA105
5.17
7
6
"Houses of the Holy"
Alex Chapple
Dana Calvo
August17,2010
CA106
5.36
8
7
"Communication Breakdown"
Kate Woods
Matthew Lau
August24,2010
CA107
5.87
9
8
"What Is and What Should Never Be"
Rod Hardy
Brett Conrad
August31,2010
CA108
5.26
10
9
"Fool in the Rain"
Vincent Misiano
Stephen Hootstein
September7,2010
CA109
5.40
11
10
"I Can't Quit You Baby"
Ken Girotti
James Parriott
September14,2010
CA110
4.59

Questions and formulas:
Question: How many episodes with the production code CA106 are there?
Formula: ROWS(UNIQUE(FILTER(D1, F1="CA106")))
Formula2: ROWS(UNIQUE(FILTER(D2:D11, F2:F11="CA106")))
Level: medium
Question: Who was the director for episodes that were written be Matthew Lau?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,D1="Matthew Lau"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G11,D2:D11="Matthew Lau"),3))
Level: medium
Question: How many episode were written by Brett Conrad?
Formula: ROWS(UNIQUE(FILTER(B1, D1="Brett Conrad")))
Formula2: ROWS(UNIQUE(FILTER(B2:B11, D2:D11="Brett Conrad")))
Level: medium
Question: How many episodes were directed by Tim Matheson?
Formula: ROWS(UNIQUE(FILTER(E1, C1="Tim Matheson")))
Formula2: ROWS(UNIQUE(FILTER(E2:E11, C2:C11="Tim Matheson")))
Level: medium
Question: How many episodes were directed by Rod Hardy?
Formula: ROWS(UNIQUE(FILTER(E1, C1="Rod Hardy")))
Formula2: ROWS(UNIQUE(FILTER(E2:E11, C2:C11="Rod Hardy")))
Level: medium