Finding the third Thursday date of every month for the year 2017

Kier Calimoso

New Member
Joined
Jun 21, 2017
Messages
1
Hi,

So I am new here, and also interested in learning how to code formulas in excel. I am using excel 2016.

Would you be so kind to share a formula for "Finding the third Thursday date of every month for the year 2017"

Example:
A1: Formula
A2: input Year
A3: 1/19/2017
A4: 2/16/2017
...
Until 12/21/2017

Thanks!
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Forgive me, I haven't thought this through fully, just a few initial thoughts;

[TABLE="width: 221"]
<tbody>[TR]
[TD]WEEKDAY [/TD]
[TD]DAY[/TD]
[TD]Date[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]22[/TD]
[TD]22/06/2017[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]29[/TD]
[TD]29/06/2017[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]6[/TD]
[TD]6/07/2017[/TD]
[/TR]
</tbody>[/TABLE]

In this Table the date 22/6/2017 (conveniently is today and a Thursday - actually recorded with =NOW() ).
The ensuing dates copy the cell above +7, eg, = C3+7. DAY is given using the function = DAY(C3) and WEEKDAY by = WEEKDAY(C3).
Those are dragged down.

That is going to give you every Thurs.
Right at the moment I have an engagement so cannot add conditions so as to generate what you require. In the meantime, if no-one has taken this up, I'll relook in about 16 hours.

NB: My computer is set to DD/MM/YYYY format.
 
Last edited:
Upvote 0
Ok. Yesterday I gave a means to identify every Thursday in 2017.
Now to find the third one of every month one might be inclined to merely add 28 to the last date.
That would work fine except months where there are 5 Thursdays (and that does happen in June 2017).

http://members.iinet.net.au/~brianjnow/DATE.jpg

The image contains all of the formula which I have used except for cell C1: =(C2-C3)*365.23 (and the 1899 value in C3).
Type the formulae and values given into the cells mentioned and then drag the formula in A4 down. Changing the value in G1 from 1 to 7 will obvious change your focus day.

Once everything is in place typing any year from 1900 into C2 should, I trust, yield what you require.






 
Upvote 0
Had to make small adjustment in when the week starts.

If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.


Excel 2012
ABCD
11/1/201712/31/20171/19/2017Thursday
22/16/2017Thursday
33/16/2017Thursday
44/20/2017Thursday
55/18/2017Thursday
66/15/2017Thursday
77/20/2017Thursday
88/17/2017Thursday
99/21/2017Thursday
1010/19/2017Thursday
1111/16/2017Thursday
1212/21/2017Thursday
13
14
Sheet1
Cell Formulas
RangeFormula
B1=EDATE(A1,12)-1
D1=TEXT(C1,"dddd")
C1{=IFERROR(SMALL(IF(MONTH(ROW(INDEX(A:A,$A$1):INDEX(A:A,$B$1)))*(WEEKDAY(ROW(INDEX(A:A,$A$1):INDEX(A:A,$B$1)),1)=5)*((WEEKNUM(ROW(INDEX(A:A,$A$1):INDEX(A:A,$B$1)),15)-WEEKNUM(EOMONTH(ROW(INDEX(A:A,$A$1):INDEX(A:A,$B$1)),-1)+1,15)+1)=3),ROW(INDEX(A:A,$A$1):INDEX(A:A,$B$1))),ROWS($1:1)),"")}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
That is the second time in nearly as many days that I've come across CSE!

Back to the task. My solution was to allow the development from the start of any year that was input since the proposer cited in his example:
A2: input year.
I know that an terminal date was mentioned but I wondered if there was some ambiguity as to one specific year, or maybe others. Thus my more general approach.

How easily might it be to rest a different year, just change the start date, ie "1/1/xxxx" in cell A1?
If the table is already built then an alteration there would automatically be recalculated?
 
Upvote 0
Yes. My apologies for my previous effort. I over complicated this.

This is a non array formula. With input year in A2 this in B2 and filled down. It will continue to output 3rd Thursdays into the following years as well.

Edited Corrected mistake in formula.


Excel 2012
AB
1
220171/19/2017
32/16/2017
43/16/2017
54/20/2017
65/18/2017
76/15/2017
87/20/2017
98/17/2017
109/21/2017
1110/19/2017
1211/16/2017
1312/21/2017
141/18/2018
152/15/2018
163/15/2018
174/19/2018
185/17/2018
196/21/2018
207/19/2018
218/16/2018
Sheet1
Cell Formulas
RangeFormula
B2=INDEX(DATE($A$2,ROWS($2:2),{15,16,17,18,19,20,21}),MATCH(5,WEEKDAY(DATE($A$2,ROWS($2:2),{15,16,17,18,19,20,21}),1),0))
 
Last edited:
Upvote 0
Hi,

So I am new here, and also interested in learning how to code formulas in excel. I am using excel 2016.

Would you be so kind to share a formula for "Finding the third Thursday date of every month for the year 2017"

Example:
A1: Formula
A2: input Year
A3: 1/19/2017
A4: 2/16/2017
...
Until 12/21/2017

Thanks!
Try placing the following formula in cell A3 and drag-copying it down:

=(ROWS($1:1)&"-"&$A$2)+21-WEEKDAY(ROWS($1:1)&"-"&$A$2,15)
 
Upvote 0
Here is another formula you can use... assuming cell A2 has the year in it, put this formula in cell A3 and copy it down to cell A13...

=WORKDAY.INTL(DATE(A$2,ROWS($1:1),1)-1,3,"1110111")
 
Upvote 0

Forum statistics

Threads
1,223,992
Messages
6,175,834
Members
452,674
Latest member
psion2600

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