Table:
0
A
B
C
D
E
F
1
District
Incumbent
Party
First elected
Result
Candidates
2
Pennsylvania 6
Gus Yatron
Democratic
1968
Re-elected
Gus Yatron (D) 69.1% Norm Bertasavage (R) 30.9%
3
Pennsylvania 7
Robert W. Edgar
Democratic
1974
Retired to run for U. S. Senate Republican gain
Curt Weldon (R) 61.3% Bill Spingler (D) 38.7%
4
Pennsylvania 9
Bud Shuster
Republican
1972
Re-elected
Bud Shuster (R) Unopposed
5
Pennsylvania 12
John Murtha
Democratic
1974
Re-elected
John Murtha (D) 67.4% Kathy Holtzman (R) 32.6%
6
Pennsylvania 15
Donald L. Ritter
Republican
1978
Re-elected
Donald L. Ritter (R) 56.8% Joe Simonetta (D) 43.2%
7
Pennsylvania 17
George Gekas
Republican
1982
Re-elected
George Gekas (R) 73.6% Michael S. Ogden (D) 26.4%
8
Pennsylvania 18
Doug Walgren
Democratic
1976
Re-elected
Doug Walgren (D) 63.0% Ernie Buckman (R) 37.0%
9
Pennsylvania 21
Tom Ridge
Republican
1982
Re-elected
Tom Ridge (R) 80.9% Joylyn Blackwell (D) 19.1%

Questions and formulas:
Question: who is the incumbent with candidates being bud shuster (r) unopposed
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,F1="Bud Shuster (R) Unopposed"),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F9,F2:F9="Bud Shuster (R) Unopposed"),2))
Level: medium
Question: who is the incumbent with candidates being tom ridge (r) 80.9% joylyn blackwell (d) 19.1%
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,F1="Tom Ridge (R) 80.9% Joylyn Blackwell (D) 19.1%"),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F9,F2:F9="Tom Ridge (R) 80.9% Joylyn Blackwell (D) 19.1%"),2))
Level: medium
Question: what's district with candidates being curt weldon (r) 61.3% bill spingler (d) 38.7%
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,F1="Curt Weldon (R) 61.3% Bill Spingler (D) 38.7%"),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F9,F2:F9="Curt Weldon (R) 61.3% Bill Spingler (D) 38.7%"),1))
Level: medium
Question: what's party with district being pennsylvania 21
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,A1="Pennsylvania 21"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F9,A2:A9="Pennsylvania 21"),3))
Level: medium
Question: what is the maximum first elected with incumbent being gus yatron
Formula: MAXIFS(D1,B1,"Gus Yatron")
Formula2: MAXIFS(D2:D9,B2:B9,"Gus Yatron")
Level: easy
Question: what's the district with first elected being 1972
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,D1=1972),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F9,D2:D9=1972),1))
Level: medium