how to add a range of dates in excel

"How to Add a Range of Dates in Excel"

By Matthew Thomas
AD

Ever needed to quickly insert a series of consecutive dates into an Excel worksheet? Rather than typing each date individually, you can use Excel's built-in features to auto-fill a range of dates. Here's a step-by-step guide on how to do it.

Before we dive in, ensure you're using Excel 2010 or later. The methods we'll discuss should work with most recent versions, including Excel Online.

Using AutoFill to Create a Range of Dates

The AutoFill feature in Excel is designed to extend a series of data, not just numbers, but also dates.

AD
How to Add Dates in Excel Automatically (2 Simple Steps)
How to Add Dates in Excel Automatically (2 Simple Steps)
How to fill date by week in Excel quickly and easily?
How to fill date by week in Excel quickly and easily?
Auto-Write Dates in Excel With This simple Trick in Seconds!📅 #excel #excelshorts
Auto-Write Dates in Excel With This simple Trick in Seconds!📅 #excel #excelshorts

First, let's understand how Excel identifies a series. When you highlight two or more cells with dates, Excel looks at the differences between consecutive dates. If it finds a consistent pattern, it can predict the next date in the sequence.

Manual AutoFill

Here's how to use AutoFill to create a range of dates:

How to create a drop down list calendar (date picker) in Excel?
How to create a drop down list calendar (date picker) in Excel?
how to format and change date order
how to format and change date order
Create a date sequence in Excel and auto fill date series
Create a date sequence in Excel and auto fill date series

1. Start by entering the first date in the first cell. Click and drag the fill handle (small square in the bottom-right corner of the cell) to the last cell where you want the date series to end.

2. Release the mouse button. The dates will not be filled in immediately. Instead, you'll see a dotted outline around the cells.

AD

3. Move your mouse over the cells until a small, black square appears in the bottom-right corner of the cell. Click and drag this square down to copy the series.

NEW Date Picker in Excel for Web – Finally Here
NEW Date Picker in Excel for Web – Finally Here
How to Extract Day, Month, Year from Date in Excel | Excel Formula | Excel Function | Excel World
How to Extract Day, Month, Year from Date in Excel | Excel Formula | Excel Function | Excel World
Top 6 Excel Date Formulas
Top 6 Excel Date Formulas
How to Quickly Insert Date And Time In Excel
How to Quickly Insert Date And Time In Excel
How to add and subtract dates in Excel
How to add and subtract dates in Excel
Excel Magic Trick 848: Create List of Dates For Month With Formula
Excel Magic Trick 848: Create List of Dates For Month With Formula

4. Release the mouse button to fill in the dates.

Using the满Button

Alternatively, you can use the Fill â–ºSeries option (available in Excel 2013 and later) to create a range of dates:

AD

1. Enter the first date in the first cell and the last date in the last cell.

Auto-Fill Dates in Excel
Auto-Fill Dates in Excel
How to put dates in excel!
How to put dates in excel!
Calculate Number of Days Between Two Dates in Excel - TheAppTimes
Calculate Number of Days Between Two Dates in Excel - TheAppTimes

2. Click on the first cell, then click the Fill â–ºSeries button in the Home tab.

3. In the Series dialog box, ensure 'Dates' is selected, then click OK.

AD

4. The date series will be extended across the selected cells.

Creating Non-Consecutive Date Ranges

Sometimes, you might want to create a range of non-consecutive dates, like every Monday or every third day. You can achieve this with a simple formula.

Excel uses the SEQUENCE function to generate a series of sequential dates, and then determines which of these dates you want to keep based on their day of the week or day of the month.

Creating Non-Consecutive Dates Based on Day of the Week

Here's how to generate a series of dates that are, for example, every Monday:

1. In the first cell where you want the date series to start, enter the following formula:

=SEQUENCE(START, END, INCREMENT)

Replace START with the first date in the series, END with the last date, and INCREMENT with the number of days between each date in the series (e.g., 7 for weekdays).

Example: =SEQUENCE(DATE(2022,1,2), DATE(2022,12,31), 7)

This formula generates every Monday from January 2, 2022 to December 31, 2022.

Creating Non-Consecutive Dates Based on Day of the Month

To create a series of dates that are, for instance, every third day, modify the formula slightly:

1. Place the first date in the series in the first cell.

2. In the next cell, use the following formula:

=A1+(ROUNDUP((3/7)*(B1-A1-1),0))*7

Where A1 is the first date, and B1 is the last date in the series.

Example: Enter =DATE(2022,1,2)+ROUNDUP((3/7)*(DATE(2022,12,31)-DATE(2022,1,2)-1),0)*7 into the second cell.

This formula creates a series of dates that are every third day from January 2, 2022 to December 31, 2022.

There you have it! With these methods, you can quickly fill in date ranges in Excel, even when your dates aren't consecutive.

Now that you've mastered date ranges, why not explore other powerful Excel features to boost your productivity? Maybe it's time to learn about conditional formatting or creating interactive dashboards? The possibilities are endless!

AD