Count based on criteria

Blessy Clara

Board Regular
Joined
Mar 28, 2010
Messages
201
Hi All,

I have a AC_ID in column A, which contains multiple records for a given AC_ID, I need help to count the number of records per ID

Example[TABLE="width: 500"]
<tbody>[TR]
[TD]AC_ID[/TD]
[TD]Records[/TD]
[/TR]
[TR]
[TD]256[/TD]
[TD]Record1[/TD]
[/TR]
[TR]
[TD]256[/TD]
[TD]Record2[/TD]
[/TR]
[TR]
[TD]256[/TD]
[TD]Record3[/TD]
[/TR]
[TR]
[TD]40435[/TD]
[TD]Record4[/TD]
[/TR]
[TR]
[TD]40435[/TD]
[TD]Record5[/TD]
[/TR]
[TR]
[TD]40435[/TD]
[TD]Record6[/TD]
[/TR]
[TR]
[TD]5208[/TD]
[TD]Record7[/TD]
[/TR]
[TR]
[TD]362[/TD]
[TD]Record8[/TD]
[/TR]
[TR]
[TD]362[/TD]
[TD]Record9[/TD]
[/TR]
</tbody>[/TABLE]

I require a table calculated as this
[TABLE="width: 500"]
<tbody>[TR]
[TD]AC_ID[/TD]
[TD]Count[/TD]
[/TR]
[TR]
[TD]40435[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]5208[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]362[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]1487[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]5489[/TD]
[TD]85[/TD]
[/TR]
[TR]
[TD]256[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

To calculate Number of records per ID Number


Thank you
 
Last edited:

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand

Book1
AB
1AC_IDRecords
2256Record1
3256Record2
4256Record3
540435Record4
640435Record5
740435Record6
85208Record7
9362Record8
10362Record9
11
12
13
14
15AC_IDCount
16404353
1752081
183622
1914870
2054890
212563
Sheet1
Cell Formulas
RangeFormula
B16=COUNTIF($A$2:$A$10,A16)
B17=COUNTIF($A$2:$A$10,A17)
B18=COUNTIF($A$2:$A$10,A18)
B19=COUNTIF($A$2:$A$10,A19)
B20=COUNTIF($A$2:$A$10,A20)
B21=COUNTIF($A$2:$A$10,A21)
 
Upvote 0

Forum statistics

Threads
1,223,956
Messages
6,175,613
Members
452,661
Latest member
Nonhle

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