Counting repeated data in a column

F

freeman

I have an excel document that has column A2-A6140 that list data that 3509
items are duplicated. What I am looking for is a formula that can tell me how
many times an item is repeated.

For example

AIMAS1D
AIMAS1D
AIMAS2D
AIMAS3D
AIMAS3U
AIMAS4D
AIMAS4U
AINAS1R
AOLDB1P1
AOLDB3P1
AOLDB3P1


In Column B I need to list how many items appear twice, in column C three
times, etc.

Any formula, VBA, or macro would be appreciated.
 
M

Max

If you want just the pure counts in a col,
then in B2, copied down: =COUNTIF(A:A,A2)

If you're after a set-up to display it in multiple cols, maybe ..
In B1 across, enter the numbers: 1,2,3,...
Then in B2: =IF(COUNTIF($A:$A,$A2)=B$1,"x","")
Copy across/fill down as far as required to populate
--
Max
Singapore
http://savefile.com/projects/236895
Files: 352, Subscribers: 53, Downloads: 15,500
xdemechanik
 
F

freeman

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top