How to Transpose a Horizontal Formula When Filling Down in Excel
Question details
The user wants to drag a formula vertically down a column while having the formula reference consecutive cells from a horizontal row.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Setting up a calculation where the output is arranged vertically in a column, but the source data or multipliers are arranged horizontally across a row.
- Observed behavior
- By default, dragging a formula down a column increments the row numbers of the referenced cells. The goal is to override this so that dragging down increments the column letters instead.
Identify the exact horizontal range you want to pull data from and ensure you lock it using absolute cell references (e.g., $A$1:$E$1) before dragging the formula.
Use the INDEX and ROWS Functions
This method dynamically advances the column index across a horizontal range as the formula is copied down a vertical column.
By combining the INDEX function with the ROWS function, you can trick the spreadsheet into reading left-to-right while you drag top-to-bottom. The ROWS function acts as a counter that increases by 1 for each row you move down, which INDEX then uses to select the next column in your horizontal range.
Click on the first cell in the vertical column where you want your formula results to begin.
Type your formula using INDEX to fetch the value. For example: =$F$10*(1+$E$10)^INDEX($F$9:$J$9, 1, ROWS($A$1:A1)). The range $F$9:$J$9 is your locked horizontal data.
Press Enter to calculate the first result.
Click and hold the fill handle (the small square at the bottom-right corner of the selected cell) and drag it down to fill the remaining cells.

Use the TRANSPOSE Function
If you are using a modern spreadsheet with dynamic arrays, the TRANSPOSE function can instantly convert a horizontal array into a vertical column.
Easily Transpose Formulas and Data in WPS Spreadsheet
WPS Spreadsheet provides robust support for complex formulas, including TRANSPOSE, INDEX, and dynamic arrays. You can easily manage data orientations and fill down formulas without worrying about compatibility issues.
- 1. Download and Install: Download WPS Office for free from the official website and install it on your device.
- 2. Open your workbook: Launch WPS Spreadsheet and open your existing .xlsx or .xls file.
- 3. Apply the INDEX or TRANSPOSE formula: Select your target cell and input the combination of INDEX and ROWS, or the TRANSPOSE function.
- 4. Drag to fill: Use the intuitive fill handle to drag the formula down the column, instantly mapping your horizontal data vertically.

Frequently Asked Questions
Why does my standard formula skip columns when I drag it vertically?
By default, spreadsheets use relative referencing. Dragging a formula vertically changes the row numbers (e.g., A1 becomes A2), not the column letters. To change the column letters while dragging down, you must utilize functions like INDEX and ROWS to shift the reference horizontally.
Do I need to press Ctrl+Shift+Enter when using TRANSPOSE?
In older versions of Excel or standard spreadsheet software, TRANSPOSE is an array formula that requires you to highlight the entire destination range first, type the formula, and then press Ctrl+Shift+Enter. In newer versions with dynamic arrays, you only need to press Enter in the first cell.
How do I ensure my horizontal range doesn't shift when dragging?
You must use absolute cell referencing for your source data. Highlight the range in your formula bar and press the F4 key to add dollar signs (e.g., changing F9:J9 to $F$9:$J$9). This locks the reference so it stays constant as you fill the formula down.




