Function Problems

Fix Excel INDEX Returning Only One Row or Column

Olivia MillerOlivia Miller Nov 18, 2026 869 views

Question details

Return a matrix of selected rows and columns with Excel INDEX rather than a single row or column.

Fix Excel INDEX Returning Only One Row or Column
Product
Microsoft Excel
Device & OS
not provided
Scenario
The user is combining a row sequence with an array of column positions to rearrange columns in a table.
Observed behavior
The INDEX result spills in only one direction instead of producing the intended matrix.
Before you start

Check that the source range contains all requested columns and that the cells where the result should spill are empty. Confirm your Excel version supports dynamic arrays and check the separators used by your regional settings.

Solution 1Recommended

Check the orientation of the INDEX row and column arrays

Use a vertical row sequence and a horizontal list of column positions to request rows and columns in perpendicular directions.

1
Identify the source range

In the worksheet, identify the table or range to query. For example, use Tableau1 and confirm it has at least four columns.

2
Enter perpendicular arrays

In an empty cell, enter =INDEX(Tableau1,SEQUENCE(ROWS(Tableau1)),{3,1,2,4}) for a locale that uses commas as function argument and horizontal array separators. SEQUENCE supplies a vertical list of rows, while the array constant lists columns horizontally.

3
Adjust separators and check the result

Press Enter and inspect the spill area. If Excel rejects the formula, change the function argument and array-constant separators to those required by your locale; these separators can differ from each other.

Check the orientation of the INDEX row and column arrays
Results can vary by Excel version: If INDEX still returns only one row or column, use the MAKEARRAY method below in a version of Excel that supports it.
Free Microsoft Office alternative

Work with spreadsheet formulas in WPS Office

WPS Office is a free, lightweight alternative with a familiar spreadsheet interface for working with Excel files. It can help you move between office suites, although it does not change how INDEX behaves in Microsoft Excel.

Use spreadsheet formulas to analyze and rearrange dataOpen and edit Microsoft Excel XLS and XLSX filesNavigate a familiar interface when moving from Microsoft OfficeWork with documents and spreadsheets in one lightweight suite
QA img-9

Frequently Asked Questions

Why does my INDEX formula return only one row?

The row and column inputs may have the wrong orientation, or your Excel version may not expand both array arguments into a matrix. Check that the row sequence is vertical and the column list is horizontal, then try MAKEARRAY if available.

How do I specify the order of columns in INDEX?

Use column positions relative to the source range. For example, {3,1,2,4} requests the third, first, second, and fourth source columns in a locale that uses commas for horizontal array constants.

Why does Excel reject the commas in my formula?

Your regional settings may use different function argument or array-constant separators. Edit the formula in the formula bar using the separators required by your locale; argument separators and array separators are not necessarily the same.

What should I do if the formula shows a spill error?

Select the formula cell and check the cells outlined in the intended spill range. Clear any blocking entries, then confirm that the formula is outside an Excel table, where spilled array formulas are not supported.