Counting occurances in a cell

Welsh Mark

Board Regular
Joined
Aug 7, 2009
Messages
84
Is there a formula that can tell me how many time all the occurances appear in a column?

Example
Column A Column B
Mark 2
John 1
Mark 2
Steve 1
Jo 1
Lewis 1
Aaran 3
Aaran 3
Aaran 3
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Maybe

=COUNTIF(A1:A10,"Aaran")

or perhaps you mean

=SUMIF(A1:A10,"Aaran",B1:B10)
 
Upvote 0
Maybe you mean this?

Code:
=COUNTIF($A$1:$A$10,A1)

Click and drag it down to the cells you want and alter the range accordingly.

Hank
 
Upvote 0
Column A contains about 50 different codes. But my spread sheets contaiins over 300'000 records. But I need to count how many times a code appears. I was hoping a formula would be able to help me rather than using a filter and counting each code.
 
Upvote 0
Yea, I think mine will work for that. Just alter the range referenced to reflect the range you want it to look at.
 
Upvote 0

Forum statistics

Threads
1,224,517
Messages
6,179,242
Members
452,898
Latest member
Capolavoro009

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