Table:
0
A
B
C
D
E
1
Pilot car No.
Colour
Serial No.
Engine No.
Registration No.
2
1
Gawler Cream (Body No. six)
8-1001-M
1001
MG-501
3
2
Black
8-1002-M
1002
MG-502
4
3
Black
8-1003-M
1003
MG-503
5
4
Black
8-1004-M
1004
MG-504
6
5
Black
8-1005-M
1005
MG-505
7
6
Seine Blue
8-1006-M
1006
MG-506
8
7
Convoy Grey
8-1007-M
1007
MG-507
9
8
Black
8-1008-M
1008
MG-508
10
9
Black
8-1009-M
1009
MG-509

Questions and formulas:
Question: What is the number of colour with the regisration number of mg-509?
Formula: ROWS(UNIQUE(FILTER(B1, E1="MG-509")))
Formula2: ROWS(UNIQUE(FILTER(B2:B10, E2:E10="MG-509")))
Level: medium