Using DateDiff to Get Number of Mondays, Tuesday, etc.

CT Witter

MrExcel MVP
Joined
Jul 7, 2002
Messages
1,212
I would like to determine the number of Mondays, Tuesdays, etc. for a set time period. For example, 1/1/2004 - 7/31/2004, how many of each day of the week were there?

Any suggestions.

CT
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Why not use the Weekday function on the date field concerned?
 
Upvote 0
Use it as an expression in a query.

eg.

SELECT Weekday([TransDate]) AS [Day of Week], Count(Transactions.TransDate) AS CountOfTransDate
FROM Transactions
GROUP BY Weekday([TransDate]);
 
Upvote 0

Forum statistics

Threads
1,221,783
Messages
6,161,940
Members
451,730
Latest member
BudgetGirl

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