Table:
0
A
B
C
D
E
F
1
journalist id
name
nationality
age
years working
journalist
2
1
Herbert Swindells
England
37
10
3
2
Fred Keenor
Wales
27
5
4
3
George Gilchrist
England
28
6
5
4
Jackie Waring
England
43
21
6
5
Fred Chandler
England
34
6
7
6
Ray Ferris
Northern Ireland
29
3
8
7
John Meaney
England
28
7
9
8
Tony Waddington
England
43
12
10
9
Jack Meaney
England
37
8
11
10
Frank Mitcheson
England
33
9
12
11
Tom Briggs
England
25
1

Questions and formulas:
Question: How many journalists are there?
Formula: ROWS(UNIQUE(F1))
Formula2: ROWS(UNIQUE(F2:F12))
Level: easy
Question: List the names of journalists in ascending order of years working.
Formula: SORTBY(B1,E1,1)
Formula2: SORTBY(B2:B12,E2:E12,1)
Level: easy
Question: What are the nationalities and ages of journalists?
Formula: CHOOSE({1,2},C1,D1)
Formula2: CHOOSE({1,2},C2:C12,D2:D12)
Level: easy
Question: Show the names of journalists from "England" or "Wales".
Formula: FILTER(B1,(C1="England")+(C1="Wales"))
Formula2: FILTER(B2:B12,(C2:C12="England")+(C2:C12="Wales"))
Level: easy
Question: What is the average number of years spent working as a journalist?
Formula: AVERAGE(E1)
Formula2: AVERAGE(E2:E12)
Level: easy
Question: What is the nationality of the journalist with the largest number of years working?
Formula: LET(a,SORTBY(C1,E1,-1),FILTER(a,SEQUENCE(ROWS(a))<=1))
Formula2: LET(a,SORTBY(C2:C12,E2:E12,-1),FILTER(a,SEQUENCE(ROWS(a))<=1))
Level: hard
Question: Show the different nationalities and the number of journalists of each nationality.
Formula: SUMMARIZE(C1,DCOUNTX(F1))
Formula2: SUMMARIZE(C2:C12,DCOUNTX(F2:F12))
Level: easy
Question: How many journalists?
Formula: ROWS(UNIQUE(F1))
Formula2: ROWS(UNIQUE(F2:F12))
Level: easy
Question: Names of journalists from england or wales?
Formula: LET(query1,FILTER(A1:F1,(C1="england")+(C1="wales")),UNIQUE(CHOOSECOLS(query1,2,6)))
Formula2: LET(query1,FILTER(A2:F12,(C2:C12="england")+(C2:C12="wales")),UNIQUE(CHOOSECOLS(query1,2,6)))
Level: hard
Question: nationality of the journalist who had the longest career
Formula: LET(a,HSTACK(C1,F1),b,F1,c,CHOOSECOLS(TAKE(SORT(SUMMARIZE(F1,SUMX(E1)), 2, -1), 1),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Formula2: LET(a,HSTACK(C2:C12,F2:F12),b,F2:F12,c,CHOOSECOLS(TAKE(SORT(SUMMARIZE(F2:F12,SUMX(E2:E12)), 2, -1), 1),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Level: hard
Question: How many journalists for each nationality?
Formula: SUMMARIZE(C1,DCOUNTX(F1))
Formula2: SUMMARIZE(C2:C12,DCOUNTX(F2:F12))
Level: easy
Question: What are the names of journalists from england and wales?
Formula: LET(query1,FILTER(A1:F1,(C1="england")+(C1="wales")),UNIQUE(CHOOSECOLS(query1,2,6)))
Formula2: LET(query1,FILTER(A2:F12,(C2:C12="england")+(C2:C12="wales")),UNIQUE(CHOOSECOLS(query1,2,6)))
Level: hard
Question: the nationality of journalist with the longest years of working?
Formula: LET(a,HSTACK(C1,F1),b,F1,c,CHOOSECOLS(TAKE(SORT(SUMMARIZE(F1,SUMX(E1)), 2, -1), 1),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Formula2: LET(a,HSTACK(C2:C12,F2:F12),b,F2:F12,c,CHOOSECOLS(TAKE(SORT(SUMMARIZE(F2:F12,SUMX(E2:E12)), 2, -1), 1),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Level: hard