Roland is looking for a way to create a list of every second Tuesday through an entire year. Fortunately, there are many ways you can come up with every other Tuesday. The first is to simply use a formula to do the dates for you, as is done in these steps:
That's it; the dates are all Tuesdays—every second Tuesday—because you've added 14 (the number of days in two weeks) to the previous Tuesday's date. This approach has a benefit, as well: If you change the date in cell A2, then all the other dates change, as well. This allows you to have a dynamic set of dates, each date two weeks later than the previous date.
If you don't need the list to be dynamic, then you can create a list of second-Tuesday dates in this manner:
Figure 1. The Series dialog box.
The result is that Excel fills all the selected cells with dates that are 14 days apart from each other. Another way to display the same Series dialog box is to perform step 1 and then right-click on the Fill handle and drag it downward. When you release the mouse button, a Context menu appears. Choose Series, and the Series dialog box appears. You can then continue with steps 4 and 5.
If you'd rather not mess with the Series dialog box, there is a shortcut way of accomplishing the same task using the Fill handle:
When you release the Fill handle, Excel fills those cells with dates that are patterned after the two dates in cells A2:A3. Since those dates are two weeks apart, the filled dates will also be two weeks apart.
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (11783) applies to Microsoft Excel 2007, 2010, 2013, and 2016. You can find a version of this tip for the older menu interface of Excel here: Every Second Tuesday.
Comprehensive VBA Guide Visual Basic for Applications (VBA) is the language used for writing macros in all Office programs. This complete guide shows both professionals and novices how to master VBA in order to customize the entire Office suite for their needs. Check out Mastering VBA for Office 2010 today!
Need to figure out if a given year is a leap year? It's not as easy as you think! This tip provides a plethora of ways ...
Discover MoreMany businesses organize information according to calendar quarters, especially when it comes to fiscal information. ...
Discover MoreHow do you display a number of years, such as 3.67 years, as a number of years and months? It’s simple to do with a ...
Discover MoreFREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
2016-10-25 03:31:56
Mark C
This is exactly what I've been looking for. However, now I need to be able to do some kind of a lookup to be able to know exactly how many 'every other Sundays' in any given month for a period of years (biweekly mortgage payment program). Any ideas?
2016-03-21 07:13:12
Bob Curtis
Great page written so even I can understand. I look forward to more examples of your skill.
Thank you very much
2016-02-29 10:28:45
gerald diamond
I had to write a calendar for a program for an event that ran every sixth day. I just had to test the result of mod(date,6)
to get what I wanted.
2016-02-28 06:30:43
To fill cells with the date of the last day of the month:
In a spread-sheet I wrote, I had to do this to display dates for calibration of the instruments I look after.
In cells A1 and A2 (or other convenient location) enter the following -
=YEAR(TODAY()) and =MONTH(TODAY())
Then, in the cell which is to display the last day of the month, enter -
=DATE(A1, A2+1, 0).
(The formula is calculating the "0th day" of next month, which is of course the last day of this month).
To display the date of the last day of NEXT month, change A2+1 into A2+2, and so on.
2016-02-27 15:50:07
Michael (Micky) Avidan
@Mogens Kjær,
The present tip refers to the newer versions of Excel therefore I would suggest to use the EOMONTH Function - as illustrated in the linked picture:
http://screenpresso.com/=Ja6Pb
--------------------------
Michael (Micky) Avidan
“Microsoft® Answers" - Wiki author & Forums Moderator
“Microsoft®” MVP – Excel (2009-2016)
ISRAEL
2016-02-27 15:31:10
Dennis Taylor
To create a list consisting of the second Tuesdays of each month (not the same as every two weeks), use this formula in cell A3 after first inserting a starting Tuesday in cell A2:
=IF(AND(DAY(A2+28)>=8,DAY(A2+28)<=14),A2+28,A2+35)
Copy the formula down the column as far as needed. The second Tuesday of each month is either 28 or 35 days after the second Tuesday of the previous month.
To find the last day of the month for a date in cell B4, use this formula:
=EOMONTH(B4,0)
2016-02-27 14:14:45
Erik
@Chris: If you put year in A2 and Month in B2, this will give you the second Tuesday of that month:
=DATE(A2,B2,CHOOSE(WEEKDAY(DATE(A2,B2,1),2),9,8,14,13,12,11,10))
2016-02-27 14:01:26
Ken K
Here's a UDF for finding the Mth occurrence of a day
Function MthOccurrenceoftheNthDayoftheKthMonthofYearY(M As Integer, N As Integer, K As Integer, Y As Integer) As Date
Dim First As Date
Dim NumDays As Integer
First = DateSerial(Y, K, 1)
NumDays = N - Weekday(First)
If NumDays < 0 Then NumDays = NumDays + 7
MthOccurrenceoftheNthDayoftheKthMonthofYearY = DateAdd("d", NumDays + (M - 1) * 7, First)
End Function
2016-02-27 10:47:56
Jagadeesh
good technique...
2016-02-27 09:23:04
Chris
This tip is misnamed! This tip should be called "Every Other Tuesday." The usage of the word "second" implies that there is a "first" and perhaps a "third" and/or more. These are words that are already most commonly applied to the weeks within a month. I suggest that we not confuse (or dilute) that usage. The phrase "every other Tuesday" is common usage and explicitly and uniquely applies to this tip. Why would you call it anything else?
And as an aside, as Excel date usage goes, your "every other Tuesday" problem is trivial compared to a real "every second Tuesday [of the month]" problem. You should take on that as a challenge!
2016-02-27 07:53:28
Frank P
To find the last day of the month, use DATE(YEAR(A4),MONTH(A4)+1,0).
To find the first day of the month, use
DATE(YEAR(A4),MONTH(A4)+1,1)
2016-02-27 06:44:56
Mogens Kjær
This is a useful tip.
What if you want to make a list of dates with the first or the last day of a month? Now the number og days are not longer same.
Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2021 Sharon Parq Associates, Inc.
Comments