Formula to calculate unique values between two date ranges

bdadswell

Board Regular
Joined
Sep 23, 2007
Messages
85
Hello;

I have a tab that contains client names in Column "D". There are multiple entries for each client.
Column "A" has the date of entry.

On a separate page, I have a summary page that pulls a lot of other data. On this page is a start date and an end date in cells B4 and B5.

I would like to have a formula that gives me the number of unique clients that are listed in column "D" between the two date ranges.

Any ideas?
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Hello;

I have a tab that contains client names in Column "D". There are multiple entries for each client.
Column "A" has the date of entry.

On a separate page, I have a summary page that pulls a lot of other data. On this page is a start date and an end date in cells B4 and B5.

I would like to have a formula that gives me the number of unique clients that are listed in column "D" between the two date ranges.

Any ideas?
Let Sheet1 house the data and B4 and B5 on Sheet2 the date criteria.

B6, control+shift+enter, not just enter:
Code:
=SUM(IF(FREQUENCY(IF(D2:D50<>"",IF(A2:A50>=B4,IF(A2:A50<=B5,
    MATCH("~"&D2:D50,D2:D50&"",0)))),ROW(D2:D50)-ROW(D2)+1),1))

If there is no risk of having special meaning chars around the name entries, remove the "~"& and &"" bits from the foregoing formula.
 
Upvote 0

Forum statistics

Threads
1,224,602
Messages
6,179,841
Members
452,948
Latest member
UsmanAli786

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