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: 29

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
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,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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