Table:
0
A
B
C
D
E
F
G
1
No.
Title
Directed by
Written by
Original air date
Production code
U.S. viewers (million)
2
1
"Pilot"
David Nutter
Jennifer Johnson
September20,2010
296770
7.31
3
2
"Repo"
Karen Gaviola
Greg Plageman
September27,2010
2J5503
6.33
4
3
"The Comeback Kid"
Dermott Downs
Jerome Schwartz
October4,2010
2J5505
5.78
5
4
"Paranoia"
Karen Gaviola
Erica L. Anderson
October11,2010
2J5506
4.92
6
5
"Above the Law"
Paul McCrane
Tracy McMillan
October18,2010
2J5504
5.18
7
6
"Havoc"
Jeffrey Hunt
Ryan Farley
October25,2010
2J5507
4.89
8
7
"The Posse"
Holly Dale
Erik Oleson
November8,2010
2J5508
4.55
9
8
"The Longest Night"
Dermott Downs
Scott M. Gimple
November15,2010
2J5509
4.57
10
9
"Crazy Love"
Dean White
Dario Scardapane & Tracy McMillan
November22,2010
2J5510
5.34
11
10
"Under the Radar"
Deran Sarafian
Jennifer Johnson
November29,2010
2J5502
6.03
12
11
"Betrayed"
Eagle Egilsson
Erik Mountain & Jerome Schwartz
December6,2010
2J5511
4.99
13
12
"Narco (Part 1)"
Dermott Downs
Jennifer Johnson & Shaina Steinberg
January19,2011
2J5512
4.35
14
13
"Narco (Part 2)"
Holly Dale
Erik Oleson & Jerome Schwartz
January26,2011
2J5513
4.17
15
15
"Seven Years"
Dermott Downs
Jennifer Johnson & Shaina Steinberg
April30,2011
2J5515
3.74
16
16
"Roundup"
Eagle Egilsson
Erik Oleson & Erik Mountain
May7,2011
2J5516
3.62
17
17
"The Man At The Altar"
Holly Dale
Jeffrey Lieber & Jerome Schwartz
May14,2011
2J5517
2.77

Questions and formulas:
Question: What is the name of the episode that was written by Scott M. Gimple?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,D1="Scott M. Gimple"),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G17,D2:D17="Scott M. Gimple"),2))
Level: medium
Question: What is the title of the episode with a production code of 2j5504?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,F1="2J5504"),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G17,F2:F17="2J5504"),2))
Level: medium
Question: How many people wrote the episode with a production code of 2j5507?
Formula: ROWS(UNIQUE(FILTER(D1, F1="2J5507")))
Formula2: ROWS(UNIQUE(FILTER(D2:D17, F2:F17="2J5507")))
Level: medium