ExcelFlux

EXPAND function

Expands or pads an array to specified row and column dimensions.

Lookup and reference · Excel 2024+

Where can you use it?

Reporting and operations teams. Use functions in this group to retrieve a field from an item, employee or order list, select the right record, or move values into another report.

Scenario in the workbook

Expand a range to three rows. The fourth argument pads the new row with zero.

A worked example from the workbook

RowAB
6Source valueOutput position
7301
8102
9203
Record 1
=INDEX(EXPAND($A$7:$A$8,3,1,0),B7,1)

Expected result30

See the inputs and instructions for all 3 examples

Copyable formulas

English Excel · en-US
=INDEX(EXPAND($A$7:$A$8,3,1,0),B7,1)
Turkish Excel · tr-TR
=İNDİS(GENİŞLET($A$7:$A$8;3;1;0);B7;1)

Worked examples

Expand a range to three rows. The fourth argument pads the new row with zero.

Open the English sheet. Inputs begin at A6. F7:F9 show the live results and G7:G9 show the original results for comparison.

Row A B
6 Source value Output position
7 30 1
8 10 2
9 20 3
Case Formula Expected result
Record 1 =INDEX(EXPAND($A$7:$A$8,3,1,0),B7,1) 30
Record 2 =INDEX(EXPAND($A$7:$A$8,3,1,0),B8,1) 10
Record 3 =INDEX(EXPAND($A$7:$A$8,3,1,0),B9,1) 0
Microsoft Excel reference