How Many Times A Day Of The Week Appears In A List Of Dates

excelbytes

Active Member
Joined
Dec 11, 2014
Messages
251
Office Version
  1. 365
Platform
  1. Windows
I have a challenge here that I can't figure out the best approach. I have range from A2;A1001. In it dates are added at various times. sometimes multiple times a day, sometimes days are skipped. Ultimately, I need a formula that will count the number of times in that range a unique Monday, Tuedsay, etc. appears. Example, If the date range includes:

8/3/20
8/3/20
8/4/20
8/5/20
8/5/20
8/10/20
8/10/20
8/10/20


The result would be 2 - 8/3 & 8/10.

Alternately, in lieu of a formula, I have VBA code that will create a list of unique dates from that overall list, then format them as Mon, Tue, Wed, etc. However, how do I count the number of times Mon or Tue or Wed appear in this list since the underlying data is really a date, and I'm trying to compare that to the text of Mon, Tue, Wed, etc.?
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Here's one way, there are probably others.

Note that the weekdays in column B are not needed for the formula, I just added them for reference.

The part of the formula WEEKDAY(A1:A8)=2 determines the day of the week to count, 1= Sunday 7 = Saturday.

Book1
AB
108/03/20Mon
208/03/20Mon
308/04/20Tue
408/05/20Wed
508/05/20Wed
608/10/20Mon
708/10/20Mon
808/10/20Mon
92
Sheet18
Cell Formulas
RangeFormula
B1:B8B1=TEXT(A1,"ddd")
B9B9=SUM(SIGN(FREQUENCY(IF(WEEKDAY(A1:A8)=2,A1:A8),A1:A8)))
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,214,947
Messages
6,122,413
Members
449,082
Latest member
tish101

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