Formula for the number of certain weekdays in a month

roxdrob

New Member
Joined
Mar 2, 2017
Messages
29
Hi, I am trying to create a formula that will calculate the number of Wednesdays in a month and multiply it by 28.46. How would I do that?

TIA

Edited to add:

My columns are months:
[TABLE="width: 661"]
<colgroup><col span="2"><col span="2"><col span="2"><col><col span="5"></colgroup><tbody>[TR]
[TD] JAN [/TD]
[TD] FEB [/TD]
[TD] MAR [/TD]
[TD] APR [/TD]
[TD] MAY [/TD]
[TD] JUN [/TD]
[TD] JUL [/TD]
[TD] AUG [/TD]
[TD] SEP [/TD]
[TD] OCT [/TD]
[TD] NOV [/TD]
[TD] DEC [/TD]
[/TR]
</tbody>[/TABLE]
 
Last edited:

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Try the alternative that you prefer.

F4 "Feb" is an actual date (Feb 1, 2018) for the relevant year ; formatted as Feb "mmm".



Excel 2010
ABCDEF
11-Feb-18444
2
31-Feb-1828-Feb-184
4Feb
54
6
4a
Cell Formulas
RangeFormula
B1=SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(A1&":"&EOMONTH(A1,0))))=4))
B3=EOMONTH(A3,0)
C1=SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(A1&":"&DATE(YEAR(A1),MONTH(A1)+1,0) )))=4))
D1=NETWORKDAYS.INTL(A1,EOMONTH(A1,0),"1101111")
D3=NETWORKDAYS.INTL(A3,B3,"1101111")
F5=NETWORKDAYS.INTL(F4,EOMONTH(F4,0),"1101111")
Named Ranges
NameRefers ToCells
Int='2a'!$B$4
 
Upvote 0
Thank you for your answer, but I'm a little confused. Will that work with this format?

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]JAN[/TD]
[TD]FEB
[/TD]
[TD]MAR
[/TD]
[TD]APR
[/TD]
[TD]MAY
[/TD]
[TD]JUN
[/TD]
[TD]JUL
[/TD]
[TD]AUG
[/TD]
[TD]SEP
[/TD]
[TD]OCT
[/TD]
[TD]NOV
[/TD]
[TD]DEC
[/TD]
[/TR]
[TR]
[TD]'=WednesdaysInMonth*28.46
[/TD]
[TD]'=WednesdaysInMonth*28.46
[/TD]
[TD]etc.
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
Did you try one of the alternatives to calculate the number of days and * 28.46?
 
Upvote 0

Forum statistics

Threads
1,223,944
Messages
6,175,554
Members
452,652
Latest member
eduedu

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