Fix Excel INDEX Returning Only One Row or Column
Question details
Return a matrix of selected rows and columns with Excel INDEX rather than a single 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.
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.
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.
In the worksheet, identify the table or range to query. For example, use Tableau1 and confirm it has at least four columns.
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.
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.

Build the result cell by cell with MAKEARRAY
Use this method when INDEX does not expand both array arguments into the desired matrix and MAKEARRAY is available.
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.

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.




