New Excel Forum

This forum has been moved to TeachExcel.com

Ask all future questions in the New Excel Forum.

ExcelKey

How do you work how many of each weekday there are in a month?

Formulas, Functions, Formatting, Charts, Data Analysis, etc.

How do you work how many of each weekday there are in a month?

Postby dean786 » Tue Mar 01, 2016 5:25 am

For example, if I wanted to see how many 'Mondays' there are in March 2016 (there are four), how could I do that? How could I then do this for each day.
  • 0

dean786
Rookie
 
Posts: 1
Joined: Mar 1, 2016
Reputation: 0
Excel Version: 2010

Re: How do you work how many of each weekday there are in a month?

Postby pecoflyer » Tue Mar 01, 2016 5:54 am

Hi and welcome to the board

Have a look at http://www.cpearson.com/excel/DateTimeWS.htm under "Number of Mondays in period"

There are many other known solutions to this problem

(be aware it's an array formula committed with Ctrl+Shift+Enter)
  • 0

A relevant topic title helps get faster and more answers
pecoflyer
Moderator
 
Posts: 1274
Joined: Jan 24, 2012
Location: Belgium
Reputation: 39
Excel Version: 2003/2007/2010

Re: How do you work how many of each weekday there are in a month?

Postby Kevin UK » Tue Mar 01, 2016 1:31 pm

Hi

One way.

A1 = 01/03/2016
A2 = 31/03/2016

Code: Select all
=SUMPRODUCT(--(TEXT(ROW(INDIRECT(A1&":"&A2)),"dddd")="Monday"))
  • 0

Regards

Kevin
Kevin UK
Excel Master
 
Posts: 568
Joined: Jun 24, 2012
Reputation: 86
Excel Version: 2016


Return to General Excel Questions

Who is online

Users browsing this forum: No registered users and 100 guests