count number of unique Mondays in a date column

smm

New Member
Joined
Aug 20, 2023
Messages
2
Office Version
  1. 365
Hoping someone here can help as google doesnt bring up anything :)

I have a sign-in spreadsheet with date, name, email which is used each Monday and Wednesday . There are several rows with the same Monday date, then several rows with the same Wed date and so on.

Mon 7 Aug, bob smith, email
Mon 7 Aug, sarah brown, email
Mon 7 Aug, neil grey, email
Mon 7 Aug, james white, email
Wed 9 Aug, bob smith, email
Wed 9 Aug, james white, email
Mon 14 Aug, bob smith, email
Mon 14 Aug, sarah brown, email
Mon 14 Aug, neil grey, email

I have a statistics summary at the bottom using SUMPRODUCT and WEEKDAY formulas, so it shows:
DAY, HELPER, COUNT
Sunday, 1, 0
Monday, 2, 7
Tuesday, 3, 0
Wednesday, 4, 2
Thursday, 5, 0
Friday, 6, 0
Saturday, 7, 0

So I know the total attendees on all the Mondays (7) and the total attendees on all the Wednesdays (2)

I'd like to be able to count UNIQUE instances of each weekday, so it would show from the data above that there were 2 sessions on a Monday and 1 session on a Wednesday:

DAY, HELPER, COUNT, UNIQUE COUNT
Sunday, 1, 0, 0
Monday, 2, 7, 2
Tuesday, 3, 0, 0
Wednesday, 4, 2, 1
Thursday, 5, 0, 0
Friday, 6, 0, 0
Saturday, 7, 0, 0

Thank you :)
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Try:
Book1
ABCDEF
1Mon 7 Aug bob smith emailMon2
2Mon 7 Aug sarah brown emailWed1
3Mon 7 Aug neil grey email
4Mon 7 Aug james white email
5Wed 9 Aug bob smith email
6Wed 9 Aug james white email
7Mon 14 Aug bob smith email
8Mon 14 Aug sarah brown email
9Mon 14 Aug neil grey email
Sheet1
Cell Formulas
RangeFormula
F1:F2F1=COUNTA(UNIQUE(FILTER($A$1:$A$9,LEFT($A$1:$A$9,3)=E1)))
 
Upvote 0
N.B. You can post a concise example of your sheet with the forum's tool named XL2BB.
What is the layout of your data? Are the dates real dates custom formatted to show Mon 7 Aug or just text?

T202308a.xlsm
ABCEFG
1DatesText
2Mon 7 AugMon 7 Aug bob smithMon2
3Mon 7 AugMon 7 Aug sarah brownWed1
4Mon 7 AugMon 7 Aug neil grey
5Mon 7 AugMon 7 Aug james whiteMon2
6Wed 9 AugWed 9 Aug bob smithWed1
7Wed 9 AugWed 9 Aug james white
8Mon 14 AugMon 14 Aug bob smith
9Mon 14 AugMon 14 Aug sarah brown
10Mon 14 AugMon 14 Aug neil grey
5d
Cell Formulas
RangeFormula
G2:G3G2=COUNTA(UNIQUE(FILTER($B$2:$B$10,LEFT($B$2:$B$10,3)=F2)))
G5G5=COUNTA(UNIQUE(FILTER($A$2:$A$10,WEEKDAY($A$2:$A$10,2)=1)))
G6G6=COUNTA(UNIQUE(FILTER($A$2:$A$10,WEEKDAY($A$2:$A$10,2)=3)))
 
Upvote 0
Thank you, the dates are real dates in this format “16/08/2023 12:53:39”
 
Upvote 0
If the times impact the result, try the following

T202308a.xlsm
ABDEFG
1Date
2Mon 7 Aug email
3Mon 7 Aug email
4Mon 7 Aug email
5Mon 7 Aug emailMon2
6Wed 9 Aug emailWed1
7Wed 9 Aug email
8Mon 14 Aug email
9Mon 14 Aug email
10Mon 14 Aug email
5d
Cell Formulas
RangeFormula
G5G5=COUNT(UNIQUE(FILTER(INT($A$2:$A$10),WEEKDAY($A$2:$A$10,2)=1)))
G6G6=COUNT(UNIQUE(FILTER(INT($A$2:$A$10),WEEKDAY($A$2:$A$10,2)=3)))
 
Upvote 0

Forum statistics

Threads
1,224,822
Messages
6,181,165
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