1. Expand quiz scores with dash padding
| Alice Math Q1: 95 | Alice Math Q2: 88 | Bob Math Q1: 92 |
=EXPAND({95,88,92}, 4, 3, "—")
Result: [[95,88,92],["—","—","—"],["—","—","—"],["—","—","—"]]
The formula takes a 1×3 array containing three quiz scores and expands it to 4 rows and 3 columns. Rows 2–4 are filled with dash characters ("—") as padding, creating a template for additional data entry.
2. Expand student names to fill a 5-row roster
=EXPAND({"Alice";"Bob";"Charlie"}, 5, 1, "(empty)")
Result: [["Alice"],["Bob"],["Charlie"],["(empty)"],["(empty)"]]
The array contains three student names arranged vertically. EXPAND extends it to 5 rows while keeping 1 column. Rows 4–5 are padded with "(empty)" to indicate available slots for additional students.
3. Expand a score matrix and pad with zeros
| Alice Math: 95 | Alice Math: 88 |
| Bob Math: 92 | Bob Math: 95 |
| Charlie English: 87 | Charlie English: 91 |
=EXPAND({95,88;92,95;87,91}, 4, 4, 0)
Result: [[95,88,0,0],[92,95,0,0],[87,91,0,0],[0,0,0,0]]
A 3×2 matrix of student scores expands to 4 rows and 4 columns. The original data occupies the top-left corner, and all newly created cells in columns 3–4 and row 4 are filled with zeros as padding.