COUNTIFS without duplicates

Gr33ned

New Member
Joined
Jul 3, 2015
Messages
2
I am trying to count the number of dates in a range, counting duplicates only once.

My attempt:

=COUNTIFS(A:A, ">=" & B1, A:A, "<=" & C1)

In this case, my dates are in column A, and I want to count it only if it is between the dates listed in B1 and C1. This is working, except it is counting duplicates.

e.g. B1 = June 30, C1 = July 4
Column A:
July 1
July 1
July 2
July 3

provides a count of 4, when I would like 3.
 
Hi,

Give this a try...

=SUMPRODUCT((A1:A100 <> " ")/COUNTIF(A1:A100,A1:A100 & ""))
 
Upvote 0
If column A consists of true dates, control+shift+enter, not just enter:

=SUM(IF(FREQUENCY(IF(A2:A10>=B1,IF(A2:A10<=C1,A2:A10)),A2:A10),1))
 
Upvote 0

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