Say I have the following data in an Excel sheet:
Country Fruit
USA Banana
USA Apple
USA Apple
USA Orange
USA Banana
USA Apple
UK Banana
UK Banana
UK Apple
I want to count how many distinct fruits are there for each of the countries. Desired output is as follows:
What formula can I use to achieve this?