PC Review


Reply
Thread Tools Rate Thread

Counting repeated data in a column

 
 
freeman
Guest
Posts: n/a
 
      7th Jul 2008
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.


 
Reply With Quote
 
 
 
 
Bernard Liengme
Guest
Posts: n/a
 
      7th Jul 2008
In B2 use =COUNTIF($A$2:$A$6140,A2)
and copy down the row
But a pivot table would be neater. See one of these
http://www.cpearson.com/excel/pivots.htm
http://peltiertech.com/Excel/Pivots/pivotstart.htm
http://www.contextures.com/xlPivot02.html
http://www.ozgrid.com/Excel/excel-pivot-tables.htm
http://www.techonthenet.com/excel/pivottbls/index.htm
http://www.dicks-blog.com/archives/2...le-parameters/

best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"freeman" <(E-Mail Removed)> wrote in message
news:63EBC19F-3868-4DA5-9168-(E-Mail Removed)...
>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.
>
>



 
Reply With Quote
 
Max
Guest
Posts: n/a
 
      7th Jul 2008
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
---
"freeman" wrote:
> 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.
>
>

 
Reply With Quote
 
freeman
Guest
Posts: n/a
 
      7th Jul 2008
Thank you, This will do the job.

"Bernard Liengme" wrote:

> In B2 use =COUNTIF($A$2:$A$6140,A2)
> and copy down the row
> But a pivot table would be neater. See one of these
> http://www.cpearson.com/excel/pivots.htm
> http://peltiertech.com/Excel/Pivots/pivotstart.htm
> http://www.contextures.com/xlPivot02.html
> http://www.ozgrid.com/Excel/excel-pivot-tables.htm
> http://www.techonthenet.com/excel/pivottbls/index.htm
> http://www.dicks-blog.com/archives/2...le-parameters/
>
> best wishes
> --
> Bernard V Liengme
> Microsoft Excel MVP
> http://people.stfx.ca/bliengme
> remove caps from email
>
> "freeman" <(E-Mail Removed)> wrote in message
> news:63EBC19F-3868-4DA5-9168-(E-Mail Removed)...
> >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.
> >
> >

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to remove duplicated data repeated in a column and keep just o =?Utf-8?B?S2l0dGk=?= Microsoft Excel Worksheet Functions 5 9th May 2008 10:37 PM
counting data in one column and match with data in another column =?Utf-8?B?SmVubnk=?= Microsoft Excel Misc 1 26th Oct 2006 09:16 PM
counting consecutive repeated values in a column along with the range g s Microsoft Excel Programming 1 22nd Sep 2005 08:51 PM
How can i stop data being repeated within a column? =?Utf-8?B?UnU=?= Microsoft Excel Misc 2 23rd May 2005 04:06 PM
How can i stop same data being repeated in a column =?Utf-8?B?UnU=?= Microsoft Excel Misc 2 23rd May 2005 02:26 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:15 PM.