Count unique in column 1 within a date range in column b

Montanes

New Member
Joined
Aug 18, 2016
Messages
42
Office Version
  1. 365
Platform
  1. Windows
Hi, and thank-you in advance for your assistance...

Column 'A' contains a set of order numbers. These may be duplicated if a sales order has more than 1 product.

Column 'B' has the date of sale in every row regardless of whether the order number is duplicated or not.

So, i am trying really just trying to count how many sales have been made in each month but i cant count the duplicates.

I can do this if i use a helper column but hopefully trying to avoid that if possible.
 

Attachments

  • Sheet 1.png
    Sheet 1.png
    47.1 KB · Views: 30

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
In D2 down put the start date of the month & use this in E2
Excel Formula:
=ROWS(UNIQUE(FILTER($A$2:$A$100,($B$2:$B$100>=D2)*($B$2:$B$100<=EOMONTH(D2,0)))))
 
Upvote 0
Solution
In D2 down put the start date of the month & use this in E2
Excel Formula:
=ROWS(UNIQUE(FILTER($A$2:$A$100,($B$2:$B$100>=D2)*($B$2:$B$100<=EOMONTH(D2,0)))))
That works perfectly, thank-you
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,811
Messages
6,181,081
Members
453,021
Latest member
Justyna P

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