Table:
0
A
B
C
D
E
1
Name
Type
Date
Condition
Ownership
2
Borthwick Castle
Tower house
1430
Occupied
Private
3
Crichton Castle
Courtyard castle
14th century
Preserved
Historic Scotland
4
Dalhousie Castle
Historic house
16th century
Occupied
Private
5
Dalkeith Palace
Historic house
18th century
Occupied
Duke of Buccleuch
6
Hawthornden Castle
Tower house
17th century
Occupied
Private
7
Melville Castle
Castellated mansion
18th century
Restored
Private
8
Newbattle Abbey
Fortified house
17th century
Altered
Newbattle Abbey College
9
Roslin Castle
Keep & ranges
14th century
Keep is a ruin, later ranges occupied
Earl of Rosslyn

Questions and formulas:
Question: What is the Name of the Historic House of the 18th Century?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,(B1="historic house")*(C1="18th century")),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E9,(B2:B9="historic house")*(C2:C9="18th century")),1))
Level: medium
Question: What is the Type of castle from the 14th Century which Condition is preserved?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,(C1="14th century")*(D1="preserved")),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E9,(C2:C9="14th century")*(D2:D9="preserved")),2))
Level: medium
Question: What is the Name of the private Castle of the 16th century which is occupied?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,(E1="private")*(D1="occupied")*(C1="16th century")),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E9,(E2:E9="private")*(D2:D9="occupied")*(C2:C9="16th century")),1))
Level: medium
Question: What is the Date of the castle with a Historic Scotland Ownership?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,E1="historic scotland"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E9,E2:E9="historic scotland"),3))
Level: medium
Question: What is the Date of the Fortified House?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,B1="fortified house"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E9,B2:B9="fortified house"),3))
Level: medium
Question: What is the Date of the Courtyard Castle?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,B1="courtyard castle"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E9,B2:B9="courtyard castle"),3))
Level: medium