EXPAND Function in Excel: Grow an Array to a Fixed Size

⏱ 1 min readUpdated 28 September 2026

Dynamic ArrayLevel: ExpertAvailable in: Excel 365 / 2021+

In this article
  1. Syntax
  2. Examples
  3. Example 1
  4. Related functions

EXPAND pads an array to a given number of rows and columns — handy before VSTACK when pieces have different widths.

Syntax

=EXPAND(array, rows, [columns], [pad_with])
Argument What it means
pad_with Value for new cells; default #N/A.

Examples

Example 1

=VSTACK(A1:D10, EXPAND(F1:G5, , 4, ""))

Stack a 2-column block under a 4-column one without #N/A.

VSTACK · HSTACK

📚 Part of the free Excel course: Beginner → Expert · Try it in the Formula Lab or ask the AI Helper.

✨ Ask AI about this article

Stuck on a step? Ask a question and the AI answers using this article.

Free · AI can be wrong