Table:
0
A
B
C
D
E
F
G
1
Episode No.
Series No.
Title
Directed by
Written by
Viewers (millions)
Original airdate
2
23
1
"Better the Devil"
Ben Bolt
Jack Lothian
8.30
20 September 2009
3
24
2
"Uneasy Lies the Head"
Ben Bolt
Ben Bolt
8.03
27 September 2009
4
25
3
"Perish Together as Fools"
Ben Bolt
Richard Stoneman
8.71
4 October 2009
5
26
4
"Driving Mr. McLynn"
Minkie Spiro
Richard Stoneman
9.21
11 October 2009
6
27
5
"The Departed"
Minkie Spiro
Jack Lothian
9.49
18 October 2009
7
28
6
"Midwife Crisis"
Ben Bolt
Ben Bolt
9.23
25 October 2009
8
29
7
"Do Not Disturb"
Ben Bolt
Richard Stoneman
9.95
1 November 2009

Questions and formulas:
Question: Who directed the episode "the departed"?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,C1="The Departed"),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G8,C2:C8="The Departed"),4))
Level: medium
Question: Who directed episode number 23?
Formula: LET(query1,SUMMARIZE(D1,SUMX(A1)),FILTER(query1,CHOOSECOLS(query1,2)=23))
Formula2: LET(query1,SUMMARIZE(D2:D8,SUMX(A2:A8)),FILTER(query1,CHOOSECOLS(query1,2)=23))
Level: hard