Home Topics excel Create a date sequence in Excel and auto fill date series

Create a date sequence in Excel and auto fill date series

Apr 01, 2025 am 09:03 AM

This tutorial demonstrates how to efficiently generate date lists in Excel using the new SEQUENCE function and the AutoFill feature. Previously, AutoFill was the primary method; however, the SEQUENCE function now offers a formula-based alternative. This tutorial explores both methods.

Generating Date Series in Excel

The quickest method for populating a column with dates is using AutoFill.

AutoFill for Date Series

Creating a daily incrementing date series is straightforward:

  1. Input the starting date in the first cell.
  2. Select the cell and drag the fill handle (the small square at the bottom right) down or across.

Excel automatically generates a series matching the initial date's format.

Create a date sequence in Excel and auto fill date series

Generating Weekdays, Months, or Years

To create series of workdays, months, or years:

  • Method 1: Generate a sequential date series (as above). Then, click the AutoFill Options button and select the desired option (e.g., Fill Months). Create a date sequence in Excel and auto fill date series
  • Method 2: Enter the starting date, right-click the fill handle, drag, and release. A context menu appears allowing you to choose the series type (Fill Years, for example). Create a date sequence in Excel and auto fill date series

Generating Date Series with Specific Increments

To create a series with a custom step (e.g., every N days):

  1. Input the starting date.
  2. Right-click the fill handle, drag, and release.
  3. Select Series from the menu.
  4. In the Series dialog, choose the Date unit and set the Step value.
  5. Click OK.

Create a date sequence in Excel and auto fill date series

Generating Date Sequences with Formulas

The SEQUENCE function, available in newer Excel 365 versions, generates number sequences and, due to Excel's date serial number system, can easily create date series. For older Excel versions, use the AutoFill method.

Creating a Date Sequence

The SEQUENCE function arguments are:

SEQUENCE(rows, [columns], [start], [step])

  • Rows: Number of rows.
  • Columns: Number of columns.
  • Start: Starting date (e.g., "8/1/2020" or DATE(2020, 8, 1)).
  • Step: Increment (e.g., 1 for daily increments).

For a list of 10 dates starting August 1, 2020:

=SEQUENCE(10, 1, "8/1/2020", 1) or =SEQUENCE(10, 1, DATE(2020, 8, 1), 1)

Alternatively, reference cells for the number of dates, start date, and step:

=SEQUENCE(B1, 1, B2, B3)

The results will automatically spill into the required cells. Apply a Date format to the cells for correct display.

Create a date sequence in Excel and auto fill date series

Generating Workday Sequences

Use WORKDAY or WORKDAY.INTL to generate workday sequences:

=WORKDAY(B2-1, SEQUENCE(B1)) (B1 = sequence size, B2 = start date)

Create a date sequence in Excel and auto fill date series

Generating Month Sequences

For monthly increments:

=DATE(2020, SEQUENCE(12), 1) (Generates dates for 2020, starting on the 1st of each month)

To display month names only, use custom date formats like "mmm" or "mmmm".

Create a date sequence in Excel and auto fill date series

For a sequence starting from a specific date, use EDATE:

=EDATE(B1, SEQUENCE(12, 1, 0)) (B1 = start date)

Create a date sequence in Excel and auto fill date series

Generating Year Sequences

For yearly increments:

=DATE(SEQUENCE(10, 1, YEAR(B1)), MONTH(B1), DAY(B1)) (B1 = start date, 10 = number of years)

Create a date sequence in Excel and auto fill date series

Generating Time Sequences

Since times are decimal fractions of a day, use SEQUENCE directly:

=SEQUENCE(10, 1, B1, 1/48) (B1 = start time, increments by 30 minutes)

Or use the TIME function for more control:

=SEQUENCE(B2, B3, B4, TIME(E2, E3, E4)) (B2=rows, B3=columns, B4=start time, E2=hours, E3=minutes, E4=seconds)

Create a date sequence in Excel and auto fill date series Create a date sequence in Excel and auto fill date series

Creating a Monthly Calendar

Use SEQUENCE, DATEVALUE, and WEEKDAY to create a dynamic monthly calendar:

=SEQUENCE(6, 7, DATEVALUE("1/"&B2&"/"&B1) - WEEKDAY(DATEVALUE("1/"&B2&"/"&B1)) 1, 1) (B1 = year, B2 = month)

Use conditional formatting to hide dates from previous/next months.

Create a date sequence in Excel and auto fill date series Create a date sequence in Excel and auto fill date series

This tutorial provides comprehensive methods for generating date sequences in Excel, catering to various needs and Excel versions. A practice workbook is available for download.

The above is the detailed content of Create a date sequence in Excel and auto fill date series. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

Java Tutorial
1663
14
PHP Tutorial
1266
29
C# Tutorial
1239
24
MEDIAN formula in Excel - practical examples MEDIAN formula in Excel - practical examples Apr 11, 2025 pm 12:08 PM

This tutorial explains how to calculate the median of numerical data in Excel using the MEDIAN function. The median, a key measure of central tendency, identifies the middle value in a dataset, offering a more robust representation of central tenden

Excel shared workbook: How to share Excel file for multiple users Excel shared workbook: How to share Excel file for multiple users Apr 11, 2025 am 11:58 AM

This tutorial provides a comprehensive guide to sharing Excel workbooks, covering various methods, access control, and conflict resolution. Modern Excel versions (2010, 2013, 2016, and later) simplify collaborative editing, eliminating the need to m

Google Spreadsheet COUNTIF function with formula examples Google Spreadsheet COUNTIF function with formula examples Apr 11, 2025 pm 12:03 PM

Master Google Sheets COUNTIF: A Comprehensive Guide This guide explores the versatile COUNTIF function in Google Sheets, demonstrating its applications beyond simple cell counting. We'll cover various scenarios, from exact and partial matches to han

Excel: Group rows automatically or manually, collapse and expand rows Excel: Group rows automatically or manually, collapse and expand rows Apr 08, 2025 am 11:17 AM

This tutorial demonstrates how to streamline complex Excel spreadsheets by grouping rows, making data easier to analyze. Learn to quickly hide or show row groups and collapse the entire outline to a specific level. Large, detailed spreadsheets can be

Excel: If cell contains formula examples Excel: If cell contains formula examples Apr 09, 2025 am 09:04 AM

This tutorial demonstrates various Excel formulas to check if a cell contains specific values, including text, numbers, or parts of strings. It covers scenarios using IF, ISTEXT, ISNUMBER, SEARCH, FIND, COUNTIF, EXACT, SUMPRODUCT, VLOOKUP, and neste

How to convert Excel to JPG - save .xls or .xlsx as image file How to convert Excel to JPG - save .xls or .xlsx as image file Apr 11, 2025 am 11:31 AM

This tutorial explores various methods for converting .xls files to .jpg images, encompassing both built-in Windows tools and free online converters. Need to create a presentation, share spreadsheet data securely, or design a document? Converting yo

Google sheets chart tutorial: how to create charts in google sheets Google sheets chart tutorial: how to create charts in google sheets Apr 11, 2025 am 09:06 AM

This tutorial shows you how to create various charts in Google Sheets, choosing the right chart type for different data scenarios. You'll also learn how to create 3D and Gantt charts, and how to edit, copy, and delete charts. Visualizing data is cru

Excel RANK function and other ways to calculate rank Excel RANK function and other ways to calculate rank Apr 09, 2025 am 11:35 AM

This Excel tutorial details the nuances of the RANK functions and demonstrates how to rank data in Excel based on multiple criteria, group data, calculate percentile rank, and more. Determining the relative position of a number within a list is easi

See all articles