Table:
0
A
B
C
D
E
F
G
1
Season
Premier Division
Division One
Division Two
Division Three
Division Four
Division Five
2
2006–07
Reigate Priory
South Park Reserves
Real Holmesdale
Nork Social
Wallington New Foresters
Sutton Churches
3
2007–08
Brockham
Chipstead 'A'
Reigate Hill
Merstham 'A'
Real Holmesdale Reserves
Sagemaster
4
2008–09
Caterham Old Boys
AFC Woodhatch
Westcott 1935
Woodcote Old Boys
Holland Sports Reserves
Real Holmesdale Reserves
5
2009–10
Brockham
Westcott
Racing Epsom
Warlingham 'B'
Caterham Old Boys Reserves
Godstone
6
2010–11
Smallfield
Racing Epsom
Caterham Old Boys
Real Holmesdale Reserves
Wallington
South Park 'B'

Questions and formulas:
Question: When westcott is in division one how many leagues are in division 5?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,C1="Westcott"),7))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G6,C2:C6="Westcott"),7))
Level: medium
Question: When godstone is in division five who is in division four?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,G1="Godstone"),6))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G6,G2:G6="Godstone"),6))
Level: medium
Question: When the wallington new foresters are in division four what is the season?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,F1="Wallington New Foresters"),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G6,F2:F6="Wallington New Foresters"),1))
Level: medium
Question: When racing epsom is in division two how many seasons are there?
Formula: ROWS(UNIQUE(FILTER(A1, D1="Racing Epsom")))
Formula2: ROWS(UNIQUE(FILTER(A2:A6, D2:D6="Racing Epsom")))
Level: medium
Question: When westcott 1935 is in division two how many leagues are in division three?
Formula: ROWS(UNIQUE(FILTER(E1, D1="Westcott 1935")))
Formula2: ROWS(UNIQUE(FILTER(E2:E6, D2:D6="Westcott 1935")))
Level: medium
Question: When real holmesdale reserves is division four who is in division one?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,F1="Real Holmesdale Reserves"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G6,F2:F6="Real Holmesdale Reserves"),3))
Level: medium