Hi,
first time I post here, so let's see if I make myself clear.
I want to count the number of entries in a column associated to another column. At the same time I want to ignore multiple entries. Example:
Company Country MFS
bla Sweden Apples
bla Sweden Oranges
bla Sweden Potatos
bla Italy Apples
bla US Oranges
The formula I am using is:
=SUM(SUMPRODUCT(($B$2:$B$6=B2)*($C$2:$C$6="Sweden"));SUMPRODUCT(($B$2:$B$6=B2)*($C$2:$C$6="Italy"));SUMPRODUCT(($B$2:$B$6=B2)*($C$2:$C$6="US")))
Which retrieves the value 5 for company bla. What I want is the three Sweden entries to count as 1 and the result of the formula should be 3. I have tried with pivot tables and the result is the same.
Thank you in advance for your help.
Cheers,
/R
first time I post here, so let's see if I make myself clear.
I want to count the number of entries in a column associated to another column. At the same time I want to ignore multiple entries. Example:
Company Country MFS
bla Sweden Apples
bla Sweden Oranges
bla Sweden Potatos
bla Italy Apples
bla US Oranges
The formula I am using is:
=SUM(SUMPRODUCT(($B$2:$B$6=B2)*($C$2:$C$6="Sweden"));SUMPRODUCT(($B$2:$B$6=B2)*($C$2:$C$6="Italy"));SUMPRODUCT(($B$2:$B$6=B2)*($C$2:$C$6="US")))
Which retrieves the value 5 for company bla. What I want is the three Sweden entries to count as 1 and the result of the formula should be 3. I have tried with pivot tables and the result is the same.
Thank you in advance for your help.
Cheers,
/R