PDA

View Full Version : finding the number of occurrence



zzzqinzzz
12-13-2012, 06:01 AM
apple
berry
berry
coconut
coconut
coconut
donut
donut
grape
lime

Hi all, above is my sample data. How can I count the number of occurrence?
My desired outcome should be something like:

apple 1
berry 2
coconut 3
donut 2
grape 1
lime 1

I have tried =COUNTIF($A:$A,A7) but is not right

Admin
12-13-2012, 09:32 AM
Hi zzzqinzzz,

Welcome to ExcelFox !!

=COUNTIF($A:$A,A7) should work. Are you sure A7 is the correct reference cell ? Also check the spelling or any leading or trailing space.

If this doesn't work for you, attach a workbook.

zzzqinzzz
12-13-2012, 10:24 AM
Yes. I reference the wrong cell =) thank you.