Table:
0
A
B
C
D
E
F
G
H
1
No. in series
No. in season
Title
Directedby
Writtenby
Originalairdate
Production code
U.S.viewers (million)
2
14
1
"Albification"
Guy Ferland
Kurt Sutter
September8,2009
2WAB01
4.29
3
15
2
"Small Tears"
Stephen Kay
Jack LoGiudice
September15,2009
2WAB02
N/A
4
16
3
"Fix"
Gwyneth Horder-Payton
Dave Erickson
September22,2009
2WAB03
3.49
5
17
4
"Eureka"
Guy Ferland
Kurt Sutter & Brett Conrad
September29,2009
2WAB04
3.76
6
18
5
"Smite"
Terrence O'Hara
Chris Collins
October6,2009
2WAB05
N/A
7
19
6
"Falx Cerebri"
Billy Gierhart
Regina Corrado
October13,2009
2WAB06
N/A
8
20
7
"Gilead"
Gwyneth Horder-Payton
Kurt Sutter & Chris Collins
October20,2009
2WAB07
3.70
9
21
8
"Potlatch"
Paul Maibaum
Kurt Sutter & Misha Green
October27,2009
2WAB08
3.39
10
22
9
"Fa Guan"
Stephen Kay
Brett Conrad & Liz Sagal
November3,2009
2WAB09
3.52
11
23
10
"Balm"
Paris Barclay
Dave Erickson & Stevie Long
November10,2009
2WAB10
3.38
12
25
12
"The Culling"
Gwyneth Horder-Payton
Kurt Sutter & Dave Erickson
November24,2009
2WAB12
N/A

Questions and formulas:
Question: What was the production code for the episode with 3.38 million viewers?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:H1,H1=3.38),7))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:H12,H2:H12=3.38),7))
Level: medium
Question: Who were the writers for "Balm"?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:H1,C1="Balm"),5))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:H12,C2:C12="Balm"),5))
Level: medium
Question: What season number did production code  2wab12?
Formula: SUMIFS(B1,G1,"2WAB12")
Formula2: SUMIFS(B2:B12,G2:G12,"2WAB2:B122")
Level: easy
Question: How many numbers in the season were written by  Brett Conrad & Liz Sagal?
Formula: SUMIFS(B1,E1,"Brett Conrad & Liz Sagal")
Formula2: SUMIFS(B2:B12,E2:E12,"Brett Conrad & Liz Sagal")
Level: easy