Table:
0
A
B
C
D
E
F
1
District
Incumbent
Party
First elected
Result
Candidates
2
Kentucky 1
Noble Jones Gregory
Democratic
1936
Re-elected
Noble Jones Gregory (D) Unopposed
3
Kentucky 2
Beverly M. Vincent
Democratic
1937
Re-elected
Beverly M. Vincent (D) Unopposed
4
Kentucky 3
Emmet O'Neal
Democratic
1934
Re-elected
Emmet O'Neal (D) 60.0% Ben J. Brumleve (R) 40.0%
5
Kentucky 5
Brent Spence
Democratic
1930
Re-elected
Brent Spence (D) 61.2% Henry J. Cook (R) 38.8%
6
Kentucky 7
Andrew J. May
Democratic
1930
Re-elected
Andrew J. May (D) 56.8% James W. Turner (R) 43.2%
7
Kentucky 8
Joe B. Bates
Democratic
1930
Re-elected
Joe B. Bates (D) 58.0% H. Clell Hayes (R) 42.0%

Questions and formulas:
Question: Who were the candidates when Noble Jones Gregory was incumbent?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,B1="Noble Jones Gregory"),6))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F7,B2:B7="Noble Jones Gregory"),6))
Level: medium