Count Function?

booYEAH

New Member
Joined
Apr 30, 2005
Messages
49
I have a column of say 250 entries. Of those 250 entries, a portion, say 100 are duplicates. How do I count specific entries, but not count the duplicates? Thanks.
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Try...

=SUMPRODUCT((A1:A250<>"")/COUNTIF(A1:A250,A1:A250&""))

Hope this helps!
 
Upvote 0
This is great for something I'm using
Ive tried breaking down the formula to understand it more, but I'm not really getting anywhere
Could explain the parts of the formula a little?

Many thanks
 
Upvote 0
August said:
This is great for something I'm using
Ive tried breaking down the formula to understand it more, but I'm not really getting anywhere
Could explain the parts of the formula a little?

Many thanks

Let's assume that A1:A8 contians the following values...

A
A
B

A
B

C

...and that we have the following formula...

=SUMPRODUCT((A1:A8<>"")/COUNTIF(A1:A8,A1:A8&""))

(A1:A8<>"") evaluates to:

{TRUE;TRUE;TRUE;FALSE;TRUE;TRUE;FALSE;TRUE}

COUNTIF(A1:A8,A1:A8&"") evaluates to:

{3;3;2;2;3;2;2;1}

Then, SUMPRODUCT divides the two evaluations...

{0.333333333;0.333333333;0.5;0;0.333333333;0.5;0;1}

...and sums the results, returning 3. Note that the numerical equivalent of TRUE/FALSE is 1/0, respectively.

Hope this helps!
 
Upvote 0
Brilliant yet simple - How cool is that!!!!!!!
Yet depressing for those of us who would never have worked it out.
Back to the books I think

Thanks
 
Upvote 0

Forum statistics

Threads
1,216,030
Messages
6,128,413
Members
449,449
Latest member
Quiet_Nectarine_

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