Formula to get Second Wednesday of the Month

privatemoon

New Member
Joined
Feb 15, 2013
Messages
42
Office Version
  1. 365
Platform
  1. Windows
Hi,

I'm trying to get the date for the second Wednesday of the month. The formula I currently have is:
=DATE(YEAR(NOW()),MONTH(NOW()),1+7*2)-WEEKDAY(DATE(YEAR(NOW()),MONTH(NOW()),8-4))

However, that gives me 9/8/21 for this month, which is the first Wednesday of the month. Any help will be appreciated, thanks!
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

The 8th is the 2nd Wednesday as the 1st is a Wednesday. ;)
 
Upvote 0
I'm currently using Office 365, thanks! I went ahead and updated my Account details.

I can't believe I didn't see that, thank you for bringing that up. The intent of the formula should grab the Wednesday following the second Tuesday of every month. So 9/15/21 in this case.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0
Here's another way which to my mind is more intuitive, and easier to adjust for different nth days and different weekdays:

Excel Formula:
=A1+(4+7+7)-WEEKDAY(A1)-IF(WEEKDAY(A1)<=4,7,0)

Where A1 is a date with the first of the desired month, such as April 1st. If you want it to be for the current month, the formula in A1 can look like this:

Excel Formula:
=DATE(YEAR(NOW()),MONTH(NOW()),1)

For different nth days, add or remove 7s from the first part of the formula.

For different weekdays, adjust the two 4s in the formula. Wednesday is 4, Tuesday is 3, Thursday is 5, etc.

For example, here's the third Tuesday. Compared to the example above for the 2nd Wednesday, I added a third 7 to the first part of the formula and changed the two 4s to 3s:

Excel Formula:
=A1+(3+7+7+7)-WEEKDAY(A1)-IF(WEEKDAY(A1)<=3,7,0)

And here's the first Thursday. Compared to the example for the 2nd Wednesday, I removed a 7 from the first part of the formula and changed the two 4s to 5s:

Excel Formula:
=A1+(5+7)-WEEKDAY(A1)-IF(WEEKDAY(A1)<=5,7,0)
 
Upvote 0
Here's another way which to my mind is more intuitive, and easier to adjust for different nth days and different weekdays:
That is something we would have to disagree on. I would have to say you solution is neither more intuitive, nor easier to adjust.
 
Upvote 0

Forum statistics

Threads
1,214,902
Messages
6,122,161
Members
449,069
Latest member
msilva74

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