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

andreascostas

Board Regular
Joined
Jan 11, 2011
Messages
140
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
 

Phuoc

Board Regular
Joined
Apr 29, 2016
Messages
144
The first Sunday: =WORKDAY.INTL(DATE(2019,$A$1,0),1,"1111110")


The third Sunday: =WORKDAY.INTL(DATE(2019,$A$1,0),3,"1111110")
 

tyija1995

Well-known Member
Joined
Feb 26, 2019
Messages
648
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?
 

sandy666

Well-known Member
Joined
Oct 24, 2015
Messages
3,788
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:

tyija1995

Well-known Member
Joined
Feb 26, 2019
Messages
648
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:

Forum statistics

Threads
1,081,984
Messages
5,362,554
Members
400,679
Latest member
alecalec202

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top