Table:
0
A
B
C
D
E
F
G
1
No. in series
No. in season
Title
Directed by
Written by
Original air date
Production code
2
33
1
"Mac and Dennis: Manhunters"
Fred Savage
Charlie Day & Jordan Young & Elijah Aron
September18,2008
IP04002
3
34
2
"The Gang Solves the Gas Crisis"
Matt Shakman
Charlie Day & Sonny Lee & Patrick Walsh
September18,2008
IP04009
4
36
4
"Mac's Banging the Waitress"
Fred Savage
David Hornsby
September25,2008
IP04011
5
37
5
"Mac and Charlie Die (Part 1)"
Fred Savage & Matt Shakman
Charlie Day & Glenn Howerton & Rob McElhenney
October2,2008
IP04003
6
38
6
"Mac and Charlie Die (Part 2)"
Fred Savage
Charlie Day & Glenn Howerton & Rob McElhenney
October2,2008
IP04004
7
39
7
"Who Pooped the Bed?"
Fred Savage
Rob McElhenney & Scott Marder & Rob Rosell
October9,2008
IP04007
8
40
8
"Paddy's Pub: The Worst Bar in Philadelphia"
Matt Shakman
Scott Marder & Rob Rosell & David Hornsby
October16,2008
IP04012
9
41
9
"Dennis Reynolds: An Erotic Life"
Fred Savage
Glenn Howerton & Rob Rosell & Scott Marder
October23,2008
IP04005
10
42
10
" Sweet Dee Has a Heart Attack "
Matt Shakman
Rob Rosell & Scott Marder
October30,2008
IP04013
11
43
11
"The Gang Cracks the Liberty Bell"
Matt Shakman
Rob McElhenney & Glenn Howerton & David Hornsby
November6,2008
IP04010
12
44
12
"The Gang Gets Extreme: Home Makeover Edition"
Fred Savage
Charlie Day & Glenn Howerton & David Hornsby
November13,2008
IP04001

Questions and formulas:
Question: How many episodes have the production code ip04004?
Formula: ROWS(UNIQUE(FILTER(C1, G1="IP04004")))
Formula2: ROWS(UNIQUE(FILTER(C2:C12, G2:G12="IP04004")))
Level: medium
Question: What season number is the episode "The Gang Cracks The Liberty Bell"?
Formula: SUMIFS(B1,C1,"The Gang Cracks the Liberty Bell")
Formula2: SUMIFS(B2:B12,C2:C12,"The Gang Cracks the Liberty Bell")
Level: easy
Question: How many people wrote "Paddy's Pub: The Worst Bar in Philadelphia"?
Formula: ROWS(UNIQUE(FILTER(E1, C1="Paddy's Pub: The Worst Bar in Philadelphia")))
Formula2: ROWS(UNIQUE(FILTER(E2:E12, C2:C12="Paddy's Pub: The Worst Bar in Philadelphia")))
Level: medium
Question: Who wrote episode number 11?
Formula: LET(query1,SUMMARIZE(E1,SUMX(B1)),FILTER(query1,CHOOSECOLS(query1,2)=11))
Formula2: LET(query1,SUMMARIZE(E2:E12,SUMX(B2:B12)),FILTER(query1,CHOOSECOLS(query1,2)=11))
Level: hard
Question: Who wrote the episode "The Gang Gets Extreme: Home Makeover Edition"?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,C1="The Gang Gets Extreme: Home Makeover Edition"),5))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G12,C2:C12="The Gang Gets Extreme: Home Makeover Edition"),5))
Level: medium