VBA or Formula for count unique under the 1 | X result

Kishan

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

Hi,

I got some results in the column "C" starting from C6 to down the column.

In the column "E" I have 9 unique results I want to count how much time below the result 1 | X each unique results has appeared.


As per my manual count result are shown in the column "F"

*ABCDEFG
1
2
3Below The 1 | XTimes
4
5P1Following Patterns AppearTimes
6X | 11 | 14
7X | X1 | X5
8X | 11 | 20
92 | 1X | 12
101 | XX | X1
11X | 2X | 20
12X | 12 | 11
131 | X2 | X1
141 | 12 | 21
151 | X
161 | X
171 | 1
181 | 1
191 | 1
201 | X
212 | 2
221 | X
232 | 1
241 | X
25X | 1
26X | 2
27X | 1
282 | 1
29X | X
301 | X
31X | 2
321 | 1
331 | 1
342 | 1
351 | 1
361 | X
371 | X
38X | X
39X | X
401 | 1
411 | X
421 | 1
431 | X
441 | 1
451 | X
461 | X
472 | X
481 | 1
491 | 1
50X | 1
511 | X
521 | X
531 | X
54X | 1
55X | X
562 | X
57X | 1
581 | X
59X | 2
601 | 1
611 | 2
621 | X
631 | X
64
65

Please I need some formula or better VBA solution for my problem


Thank you in advance


Regards,

Kishan
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
I don't agree with your results, but try
ZFluff.xlsm
ABCDEFG
1
2
31 | XTimes
4
5P1Following Patterns AppearTimes
6X | 11 | 144
7X | X1 | X56
8X | 11 | 200
92 | 1X | 122
101 | XX | X11
11X | 2X | 203
12X | 12 | 111
131 | X2 | X11
141 | 12 | 211
151 | X
161 | X
171 | 1
181 | 1
191 | 1
201 | X
212 | 2
221 | X
232 | 1
241 | X
25X | 1
26X | 2
27X | 1
282 | 1
29X | X
301 | X
31X | 2
321 | 1
331 | 1
342 | 1
351 | 1
361 | X
371 | X
38X | X
39X | X
401 | 1
411 | X
421 | 1
431 | X
441 | 1
451 | X
461 | X
472 | X
481 | 1
491 | 1
50X | 1
511 | X
521 | X
531 | X
54X | 1
55X | X
562 | X
57X | 1
581 | X
59X | 2
601 | 1
611 | 2
621 | X
631 | X
Model
Cell Formulas
RangeFormula
G6:G14G6=COUNTIFS($C$6:$C$63,$E$3,$C$7:$C$64,E6)
 
Upvote 0
Thank you Fluff, for the formula but as I am using Excel 2000 which I did mention in the post#1, so far function COUNTIFS does not work, yes I agree with you my results are not correct. It seems your formula calculations are prefect

Kind Regards
Kishan
 
Last edited:
Upvote 0
Apologies, forgot you were on Xl2000, how about
=SUMPRODUCT(($C$6:$C$63=$E$3)*($C$7:$C$64=E6))
 
Upvote 0
Solution
Apologies, forgot you were on Xl2000, how about
=SUMPRODUCT(($C$6:$C$63=$E$3)*($C$7:$C$64=E6))
Fluff, with this new formula you have provided I am getting all the result perfect.

I do appreciate your kind help

Kind Regards
Kishan :)
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,223,919
Messages
6,175,368
Members
452,638
Latest member
Oluwabukunmi

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