Does it possible to show only the maximum count data?

Kishan

Well-known Member
Joined
Mar 15, 2011
Messages
1,648
Office Version
  1. 2010
Platform
  1. Windows
Using Excel 2000

Hi,

Data are in cells C6:C57 I require count 5 & A but it possible to show only the maximum count in column D & E.

Here is the example data


Book1
ABCDE
1
2
3C1Show OnlyShow Only
4C1Max CountMax Count
5C1Of = 5Of = A
6A
7A
8A3
95
1052
11A
12A2
135
145
1553
16A1
175
1852
19A1
205
215
225
2354
24A1
2551
26A1
275
285
295
305
315
325
335
345
355
36510
37A
38A
39A3
4051
41A1
4251
43A
44A2
455
465
475
4854
49A
50A
51A
52A
53A5
5451
55A1
5651
57A1
58
59
Show Max Count


Thank you in advance

Kishan
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
As far as I remember, Excel 2000 should have the COUNTIF function. It this is the case, try placing the following formulas in cells D6 and E6 and drag copying them down as needed:

D6 =IF(AND($C6=5,$C7<>5),COUNTIF($C$6:INDEX($C:$C,ROW()),5)-SUM($D$6:INDEX($D:$D,ROW()-1)),"")
E6 =IF(AND($C6="A",$C7<>"A"),COUNTIF($C$6:INDEX($C:$C,ROW()),"A")-SUM($E$6:INDEX($E:$E,ROW()-1)),"")
 
Upvote 0
As far as I remember, Excel 2000 should have the COUNTIF function. It this is the case, try placing the following formulas in cells D6 and E6 and drag copying them down as needed:

D6 =IF(AND($C6=5,$C7<>5),COUNTIF($C$6:INDEX($C:$C,ROW()),5)-SUM($D$6:INDEX($D:$D,ROW()-1)),"")
E6 =IF(AND($C6="A",$C7<>"A"),COUNTIF($C$6:INDEX($C:$C,ROW()),"A")-SUM($E$6:INDEX($E:$E,ROW()-1)),"")
Hi Tetra201, you remember very well your formula is working like a charm

Thank you so much for your help

Regards,
Kishan :)


 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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