Return date of Wednesday's during a specific month in a row

BURN11

New Member
Joined
Aug 15, 2023
Messages
4
Office Version
  1. 365
Platform
  1. Windows
A2=1/2023, I need B2 to contain the date of the first Wednesday of 1/2023; B3 to contain the date of the second Wednesday; B4 to contain the date of the third Wednesday; B5 to contain the date of the 4th Wednesday and B6 to contain the date of the 5th Wednesday or "N/A". Continuing this formula for all the months of the year.
Any assistance would be greatly appreciated.
 
I rushed out the door and did not complete the post.
You can try the suggestion on a clean sheet.
Click on the icon below the f(x) in the heading, then move to your sheet and paste in cell B5.

Cell Formulas
RangeFormula
C6:G17C6=LET(x,WORKDAY.INTL($B6-1,C$5,"1101111"),IF(MONTH(x)=MONTH(B6),x,"N/A"))
 
Upvote 0
Solution

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Thanks for the feedback.

I recommend using actual dates for the Date column (like 1/1/2023) as shown in post # 11 or in example below.
This is more reliable than coercing the date or using some other shortcuts that do not work with all versions of Excel.
However, with text like 1/2023 in the date column; the formula will work.
=LET(d,$B6-1,x,WORKDAY.INTL(d,C$5,"1101111"),IF(x-DAY(x)=d,x,"N/A"))
At least on my system, the formula coerces the text to the correct value for the formula.

A slightly different example that you can consider.

Cell Formulas
RangeFormula
C5:G5C5=SEQUENCE(,5)
B6:B17B6=DATE(C1,SEQUENCE(12),1)
C6:G17C6=LET(d,$B6-1,x,WORKDAY.INTL(d,C$5,"1101111"),IF(x-DAY(x)=d,x,"N/A"))
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,215,143
Messages
6,123,285
Members
449,094
Latest member
GoToLeep

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