• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Excel SEQUENCE Function

You are here: Home / Excel Functions / Excel SEQUENCE Function

The Excel SEQUENCE function returns a list of sequential numbers in an array. Among other things, it will replace the need to use the ROW or COLUMN function to return an array of values for use in other functions.

The syntax is:

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

rows  Here you specify the number of rows to be returned.

columns is optional and specifies the number of columns to be returned. If omitted it will return 1 column.

start is optional and specifies the first number in the sequence. If omitted it will start at 1.

step is optional and specifies the increment for each subsequent value in the array. If omitted it will increment by 1.

Note: The SEQUENCE function is part of the new Excel Dynamic Arrays family. At the time of writing, Dynamic Arrays are only available in Office 365 and are currently in beta on the Insiders channel. Excel 2019 will not have the Dynamic Array functions.

Excel SEQUENCE Function Examples

In the first example of the Excel SEQUENCE function below we used the following formula:

=SEQUENCE(5, 1, 5, 10)

To generate a simple list of 5 values, in 1 column starting at 5 and increment by 10. As this is a dynamic array formula it spills the results into the cells below:

Excel SEQUENCE Function example

You can also have your sequence of numbers that spill into multiple columns, as you can see below where the column argument is 2:

example 2

You can start at any number, including zero or a fraction and then increment by fractions, as shown below:

example 3

Sequences can count down by placing a negative value in the step argument, as shown below:

example 4

And you can get clever with other dynamic array formulas to create a random list of distinct values using the SORTBY, SEQUENCE and RANDARRAY functions, as shown below:

other dynamic formulas create a random list of distinct values

Download Workbook

Enter your email address below to download the sample workbook.

By submitting your email address you agree that we can email you our Excel newsletter.
Please enter a valid email address.

Download the Excel Workbook. Note: This is a .xlsx file please ensure your browser doesn't change the file extension on download.

Related Tutorials

Excel FILTER Function Filter cells based on criteria.
Excel RANDARRAY Function Returns an array of random numbers between 0 and 1.
Excel SORT Function Sort cells or arrays in ascending or descending order.
Excel SORTBY Function Sort cells or arrays based on criteria.
Excel UNIQUE Function Extract a unique or distinct list from a range or array.

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
 
  • About My Online Training Hub
  • Contact
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Copyright © 2023 · My Online Training Hub · All Rights Reserved

Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.

Download A Free Copy of 100 Excel Tips & Tricks

excel tips and tricks ebook

We respect your privacy. We won’t spam you.

x