Table:
0
A
B
C
D
E
F
1
Country
% of all immigrants 2008
% of all immigrants 2007
% of all immigrants 2006
% of all immigrants 2005
% of all immigrants 2004
2
Algeria
11.2%
12.0%
14.1%
14.0%
15.2%
3
Cameroon
1.9%
1.9%
2.1%
2.1%
2.0%
4
Côte d'Ivoire
1.5%
1.6%
1.8%
1.7%
1.9%
5
Mali
2.1%
1.3%
1.4%
1.2%
1.2%
6
Morocco
11.1%
9.5%
9.4%
10.4%
11.4%
7
Senegal
1.7%
1.8%
1.7%
1.7%
1.9%

Questions and formulas:
Question: What's the percentage of all immigrants in 2007 in the country with 1.7% of all immigrants in 2008?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,B1="1.7%"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F7,B2:B7="1.7%"),3))
Level: medium
Question: How many different percentages of immigrants in 2006 can there be for Morocco?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,A1="Morocco"),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F7,A2:A7="Morocco"),4))
Level: medium
Question: What's the percentage of immigrants in 2004 in the country with 2.1% of the immigrants in 2006?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,D1="2.1%"),6))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F7,D2:D7="2.1%"),6))
Level: medium
Question: What's the percentage of the immigrants in 2007 in the country with 14.1% of the immigrants in 2006?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,D1="14.1%"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F7,D2:D7="14.1%"),3))
Level: medium
Question: How many different percentages of immigrants are there for the year of 2007 in the countries with 1.2% of the immigrants in the year of 2005?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,E1="1.2%"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F7,E2:E7="1.2%"),3))
Level: medium