Table:
0
A
B
C
D
E
F
G
1
Season
Ep #
Season Premiere
Season Finale
Ranking
Viewers (Households in millions)
Rating
2
Season 1
24
September 17, 1972
March 25, 1973
#46
N/A
N/A
3
Season 2
24
September 15, 1973
March 2, 1974
#4
17.02
25.7
4
Season 3
24
September 10, 1974
March 18, 1975
#5
18.76
27.4
5
Season 4
24
September 12, 1975
February 24, 1976
#15
15.93
22.9
6
Season 5
24
September 21, 1976
March 15, 1977
#4
18.44
25.9
7
Season 6
24
September 20, 1977
March 27, 1978
#9
16.91
23.2
8
Season 7
25
September 18, 1978
March 12, 1979
#7
18.92
25.4
9
Season 8
25
September 17, 1979
March 24, 1980
#5
19.30
25.3
10
Season 9
20
November 17, 1980
May 4, 1981
#4
20.53
25.7
11
Season 10
21
October 26, 1981
April 12, 1982
#9
18.17
22.3
12
Season 11
16
October 25, 1982
February 28, 1983
#3
18.82
22.6

Questions and formulas:
Question: What was the ranking for the episode number before 24 that had a rating of 25.7?
Formula: LET(query1,LET(query1,FILTER(A1:G1,G1=25.7),SUMMARIZE(CHOOSECOLS(query1,5),SUMX(CHOOSECOLS(query1,2)))),FILTER(query1,CHOOSECOLS(query1,2)<24))
Formula2: LET(query1,LET(query1,FILTER(A2:G12,G2:G12=25.7),SUMMARIZE(CHOOSECOLS(query1,5),SUMX(CHOOSECOLS(query1,2)))),FILTER(query1,CHOOSECOLS(query1,2)<24))
Level: hard
Question: How many million viewers watched the season finale on March 12, 1979?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,D1="march 12, 1979"),6))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G12,D2:D12="march 12, 1979"),6))
Level: medium
Question: What is the rating of the season 10?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,A1="season 10"),7))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G12,A2:A12="season 10"),7))
Level: medium
Question: What was the rating of the season that had 18.17 million household viewers?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,F1=18.17),7))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G12,F2:F12=18.17),7))
Level: medium