Count unique occurrences of specific day

seiyaryu

New Member
Joined
Jan 5, 2022
Messages
4
Office Version
  1. 365
Platform
  1. Windows
I am having trouble creating a formula for a counting the number of unique occurrences of Mondays.
I have a date range that includes multiple entrys of the same date, what i need to know is how many are Mondays without double counting

1641397829140.png
So in the example Monday would return 1, but if i made it for Wednesday, it would return 3.
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
77,758
Office Version
  1. 365
Platform
  1. Windows
Hi & welcome to MrExcel.
How about
+Fluff 1.xlsm
ABC
1
210/02/2021Mon1
310/02/2021Wed3
417/02/2021
508/02/2021
608/01/2021
713/10/2021
801/06/2021
908/07/2021
10
Lists
Cell Formulas
RangeFormula
C2C2=COUNT(UNIQUE(FILTER(A2:A10,WEEKDAY(A2:A10,2)=1)))
C3C3=COUNT(UNIQUE(FILTER(A2:A10,WEEKDAY(A2:A10,2)=3)))
 

seiyaryu

New Member
Joined
Jan 5, 2022
Messages
4
Office Version
  1. 365
Platform
  1. Windows
thank you that did it. never used filter before. Annoys me that i was so close.
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
77,758
Office Version
  1. 365
Platform
  1. Windows
Glad to help & thanks for the feedback.
 

Forum statistics

Threads
1,176,239
Messages
5,902,096
Members
434,940
Latest member
Suresh877

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
Top