Count the number of occurrences of different words

NJS1982

Board Regular
Joined
Sep 24, 2009
Messages
183
Office Version
  1. 365
Platform
  1. Windows
Hi all, hopefully a fairly simple one. Does anybody know if there is a formula to count up the number of times individual words appear in a list?

I have a list of projects (2,500 in total), each with a single sport attached (could be tennis, basketball, football or many others). Is there a way to count up the number of these sports, using a single formula, to tell me the total number of differing sports that are in the list (i.e. not count the duplicates)?

I know how to do it with a pivot (there are 70 different sports listed) but can't work out how to do it with a formula. Count something, maybe?
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
One example
A2:A12 is the range which contains duplicates
Formula to count individuals

=SUMPRODUCT(1/COUNTIF(A2:A12,A2:A12))
 
Last edited:
Upvote 0
One example
A2:A12 is the range which contains duplicates
Formula to count individuals

=SUMPRODUCT(1/COUNTIF(A2:A12,A2:A12))


The formula Kvsrinivasamurthy provided will work, but it's an array formula, thus it will only work if you press Ctrl+Shift+Enter

E.g. {=SUM(1/COUNTIF(A2:A12,A2:A12))}
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,874
Messages
6,122,034
Members
449,061
Latest member
TheRealJoaquin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top