Table:
0
A
B
C
D
E
1
SUBJECT
FRESHMAN (Grade 7)
SOPHOMORE (Grade 8)
JUNIOR (3rd Year)
SENIOR (4th Year)
2
SCIENCE
General Science
Biology
Basic Chemistry
Advanced Physics
3
MATHEMATICS
Elementary Algebra
Intermediate Algebra
Pre-Calculus
Advanced Calculus
4
ENGLISH
English I
English II
English III
English IV
5
FILIPINO
Gramatika at Panitikan I
Gramatika at Panitikan II
Gramatika at Panitikan III
Gramatika at Panitikan IV
6
SOCIAL STUDIES
Philippine History and Government
Asian History
World History
Economics

Questions and formulas:
Question: How many classes between senior and junior year for world history
Formula: ROWS(UNIQUE(FILTER(E1, D1="World History")))
Formula2: ROWS(UNIQUE(FILTER(E2:E6, D2:D6="World History")))
Level: medium
Question: What is after intermediate algebra
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,C1="Intermediate Algebra"),5))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E6,C2:C6="Intermediate Algebra"),5))
Level: medium