Table:
0
A
B
C
D
1
document type code
document type name
document type description
reference document types
2
CV
CV
3
BK
Book
4
PR
Paper
5
RV
Review

Questions and formulas:
Question: Show the number of document types.
Formula: ROWS(UNIQUE(A1))
Formula2: ROWS(UNIQUE(A2:A5))
Level: easy
Question: How many document types are there?
Formula: ROWS(UNIQUE(A1))
Formula2: ROWS(UNIQUE(A2:A5))
Level: easy
Question: List all document type codes and document type names.
Formula: UNIQUE(HSTACK(A1,B1))
Formula2: UNIQUE(HSTACK(A2:A5,B2:B5))
Level: easy
Question: What are all the document type codes and document type names?
Formula: UNIQUE(HSTACK(A1,B1))
Formula2: UNIQUE(HSTACK(A2:A5,B2:B5))
Level: easy
Question: What is the document type code for document type "Paper"?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:D1,B1="paper"),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:D5,B2:B5="paper"),1))
Level: medium
Question: Find the code of the document type "Paper".
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:D1,B1="paper"),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:D5,B2:B5="paper"),1))
Level: medium