0
0
Excelspreadsheet~10 mins

SEQUENCE function in Excel - Cell-by-Cell Formula Trace

Choose your learning style9 modes available
Sample Data

This data sets parameters for the SEQUENCE function: start number 1, 3 rows, 4 columns, step 2.

CellValue
A1Start Number
B11
A2Rows
B23
A3Columns
B34
A4Step
B42
Formula Trace
=SEQUENCE(B2, B3, B1, B4)
Step 1: SEQUENCE(3, 4, 1, 2)
Step 2: Generate first row: 1, 3, 5, 7
Step 3: Generate second row: 9, 11, 13, 15
Step 4: Generate third row: 17, 19, 21, 23
Step 5: Final array: [[1, 3, 5, 7], [9, 11, 13, 15], [17, 19, 21, 23]]
Cell Reference Map
    A       B       C       D       E
1  Start  ->  1
2  Rows   ->  3
3  Columns->  4
4  Step   ->  2

Formula uses B2 (3 rows), B3 (4 columns), B1 (start 1), B4 (step 2)
The formula references cells B1, B2, B3, and B4 for start number, rows, columns, and step.
Result
    A   B   C   D   E
5  1   3   5   7
6  9  11  13  15
7 17  19  21  23
The SEQUENCE function outputs a 3-row by 4-column array starting at 1, increasing by 2 each step.
Sheet Trace Quiz - 3 Questions
Test your understanding
What is the value in cell C5 after the formula =SEQUENCE(B2, B3, B1, B4) is entered?
A5
B7
C11
D9
Key Result
SEQUENCE(rows, columns, start, step) generates an array starting at 'start', increasing by 'step', filling rows and columns.