I will demonstrate three different techniques to build monthly date ranges in this article. Two of these techniques are easy because they have the start and end date in a cell each.

To have two dates in the same cell makes it more complicated but I have a solution for that, as well.

Create date ranges using a built-in feature

To build a date range that begins with the first date in a month and ends with the last date in a month follow these steps:

  1. Type the start date of your first date range in one cell
  2. Type the end date of your first date range in the next cell
  3. Repeat above steps to enter the second date range in cells below
  4. Select all cells
  5. Click and hold on black dot
  6. Drag to cells below as far as needed

Excel dates are actually numbers, the above technique uses Excel's ability to quickly create number sequences using the selected cells as a guide to determine the size of the date ranges below.

Basic formula

Type the start date in a cell, in this case, 1/1/2017. Type the following formula in the next cell:

=DATE(YEAR(B3),MONTH(B3)+1,1)-1

The formula in cell C3 calculates the last date for the month and year in cell B3. It actually calculates the first date in the next month and then subtracts with 1.

This solves the issue with some months having 30 days and some having 31 and February with 28 days in common years and 29 days in leap years.

The next date range has the first date in the next month as the start date. The formula is almost identical to the previous formula.

Formula in cell B4:

=DATE(YEAR(B3),MONTH(B3)+1,1)

Now copy cell C3 and paste to cell C4.

The relative cell references in the formula changes accordingly, you can read more about relative and absolute cell references here:

How to use absolute and relative references in excel

What is a refererence in excel? Excel has a A1 reference style. Columns are named letters A to XFD. Total […]

Comments(12) Filed in category: Excel

Copy cell range B4:C4 and paste to cells below as far as needed.

Advanced formula

The following picture shows you date ranges in a single cell each. To get that you need to build a somewhat more complicated formula.

monthly interval date range

Formula in A4:

=TEXT(DATE(2009,  COLUMN(A:A),  1),  "MM/DD/YY")&"-"&TEXT(DATE(2009, COLUMN(A:A)+1,  1)-1,  "MM/DD/YY") + ENTER

copied right as far as necessary. The TEXT function formats the number from the DATE function as a readable text string in a format you choose. You can read more about the TEXT function here:

Excel’s TEXT function explained

Excel function syntax TEXT(value, format_text) Converts a value to text in a specific number format. Arguments value - The string […]

Comments(0) Filed in category: Excel, TEXT function

Formula in A7:

=TEXT(DATE(2009,  2-COLUMN(A:A),  1),  "MM/DD/YY")&"-"&TEXT(DATE(2009, 2-COLUMN(A:A)+1,  1)-1,  "MM/DD/YY") + ENTER

copied right as far as necessary.

Formula in A10:

=TEXT(DATE(2009,  ROW(1:1),  1),  "MM/DD/YY")&"-"&TEXT(DATE(2009, ROW(1:1)+1,  1)-1,  "MM/DD/YY") + ENTER

copied down as far as necessary.

Formula in A19:

=TEXT(DATE(2009,  2-ROW(1:1),  1),  "MM/DD/YY")&"-"&TEXT(DATE(2009, 2-ROW(1:1)+1,  1)-1,  "MM/DD/YY") + ENTER

copied down as far as necessary.

Download *.xlsx file

Create a monthly date range.xlsx

Functions in this article

ROW(reference) returns the row number of a reference

DATE(year, month, day) returns the number that represents the date in Microsoft Office Excel date-time code

TEXT(value, format_text)
Converts a value to text in a specific number format