Formula for yielding 1st and 3rd Sunday of every month and every Friday.

andreascostas

Board Regular
Joined
Jan 11, 2011
Messages
150
I need a formula to find the dates for the 1st and 3rd Sunday of every month, and a formula for finding
the date for every Friday for every month.
So I can input the month in A1 and get the results in another cell.
Thank You
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
The first Sunday: =WORKDAY.INTL(DATE(2019,$A$1,0),1,"1111110")


The third Sunday: =WORKDAY.INTL(DATE(2019,$A$1,0),3,"1111110")
 
Upvote 0
I need a formula to find the dates for the 1st and 3rd Sunday of every month, and a formula for finding
the date for every Friday for every month.
So I can input the month in A1 and get the results in another cell.
Thank You

How exactly are you inputting the month in A1, just by putting "Jan", "Feb", "Mar" etc?
 
Upvote 0
are you able to use PowerQuery aka Get&Transform?

MonthMonthDay NameDateMonthDay NameDate
MarchMarchFriday
01/03/2019​
MarchSunday
03/03/2019​
MarchFriday
08/03/2019​
MarchSunday
17/03/2019​
MarchFriday
15/03/2019​
MarchFriday
22/03/2019​
MarchFriday
29/03/2019​

or

MonthDay NameDate
SeptemberFriday
06/09/2019​
Friday
13/09/2019​
Friday
20/09/2019​
Friday
27/09/2019​
Sunday
01/09/2019​
Sunday
15/09/2019​
 
Last edited:
Upvote 0
ABCDEF
1January04/01/201911/01/201918/01/201925/01/2019
2February01/02/201908/02/201915/02/201922/02/2019
3Mar01/03/201908/03/201915/03/201922/03/201929/03/2019

<tbody>
</tbody>

With the following formula set up in Cells B1 (Drag DOWN column B) and a formula in C1 (Drag DOWN AND ACROSS columns C:F)

B1:
Code:
IF(DAY(WORKDAY.INTL(DATE(2019,MONTH("1/"&$A1),1),1,"1111011"))=8,DATE(2019,MONTH("1/"&$A1),1),WORKDAY.INTL(DATE(2019,MONTH("1/"&$A1),1),1,"1111011"))

C1:
Code:
IF(B1+7>EOMONTH(DATE(2019,MONTH("1/"&$A1),1),0),"",B1+7)

The formula in B1 assumes you are working with the year 2019.

In a similar fashion for 1st and 3rd sunday of a given month try this in cells H1 & I1 (for the month in A1)

H1:
Code:
IF(DAY(WORKDAY.INTL(DATE(2019,MONTH("1/"&$A1),1),1,"1111110"))=8,DATE(2019,MONTH("1/"&$A1),1),WORKDAY.INTL(DATE(2019,MONTH("1/"&$A1),1),1,"1111110"))

I1:
Code:
=H1+14
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,601
Messages
6,120,467
Members
448,965
Latest member
grijken

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