Table:
0
A
B
C
D
E
F
G
1
Race name
Dist (miles)
Course
Prize
Jockey
Odds
Runners
2
Great Subscription Purse
4
York
£160 5s
Christopher Jackson
1/2
3
3
not known
not known
Morpeth
£50
not known
not known
not known
4
Ladies' Plate
4
York
126 gs
not known
not known
not known
5
Ladies' Plate
not known
Lincoln
£80
not known
not known
not known
6
Unnamed race
not known
Morpeth
£50
none
not known
walkover
7
Unnamed race
4m 1.5f
Newmarket
£50
not known
£4/£5 6s
4
8
Open race
not known
York
£20
none
none
no entries
9
Match race
4 m 1.5f
Newmarket
200 gs
John Singleton
1/2
2
10
Jockey Club Plate
not known
Newmarket
not known
not known
2/1 first heat
6
11
Unnamed race
not known
Newcastle
60 gs
not known
not known
3
12
Jockey Club Plate
not known
Newmarket
not known
not known
10/1
5
13
Unnamed race
not known
Scarborough
£50
not known
10/1
3

Questions and formulas:
Question: What is the distance for the unnamed race with 3 runners at Newcastle?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,(A1="unnamed race")*(G1=3)*(C1="newcastle")),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G13,(A2:A13="unnamed race")*(G2:G13=3)*(C2:C13="newcastle")),2))
Level: medium