0
0
Excelspreadsheet~10 mins

Appending queries in Excel - Cell-by-Cell Formula Trace

Choose your learning style9 modes available
Sample Data

Two separate lists of students and their scores in columns A and B. The first list is in rows 1-3, the second list is in rows 5-7.

CellValue
A1Name
B1Score
A2Alice
B285
A3Bob
B390
A5Name
B5Score
A6Charlie
B678
A7Diana
B792
Formula Trace
=VSTACK(A1:B3, A5:B7)
Step 1: A1:B3
Step 2: A5:B7
Step 3: VSTACK(A1:B3, A5:B7)
Cell Reference Map
    A       B   
1 |Name   |Score|
2 |Alice  | 85  |
3 |Bob    | 90  |
4 |       |     |
5 |Name   |Score|
6 |Charlie| 78  |
7 |Diana  | 92  |
The formula references two ranges: A1:B3 and A5:B7, which are two separate tables with headers and data.
Result
    A       B   
1 |Name   |Score|
2 |Alice  | 85  |
3 |Bob    | 90  |
4 |Name   |Score|
5 |Charlie| 78  |
6 |Diana  | 92  |
The result shows the two tables stacked vertically, including the repeated header row from the second table.
Sheet Trace Quiz - 3 Questions
Test your understanding
What does the formula =VSTACK(A1:B3, A5:B7) do?
AAdds the numbers in the two tables.
BStacks the two tables vertically, including repeated headers.
CJoins the tables side by side horizontally.
DFilters out the header rows.
Key Result
VSTACK stacks multiple ranges vertically, appending rows from each range one after another.