Function Problems

How to Transpose a Horizontal Formula When Filling Down in Excel

Aamir Naveed AkramAamir Naveed Akram Oct 14, 2026 876 views

Question details

The user wants to drag a formula vertically down a column while having the formula reference consecutive cells from a horizontal row.

How to Transpose a Horizontal Formula When Filling Down in Excel
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.
Before you start

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.

Solution 1Recommended

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.

1
Select the starting cell

Click on the first cell in the vertical column where you want your formula results to begin.

2
Enter the INDEX and ROWS formula

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.

3
Apply the formula

Press Enter to calculate the first result.

4
Fill down the column

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 INDEX and ROWS Functions
How the ROWS counter works: The expression ROWS($A$1:A1) evaluates to 1. When dragged down to the next cell, it becomes ROWS($A$1:A2), which evaluates to 2. This feeds sequential numbers into the column argument of the INDEX function.
Advanced Spreadsheets

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. 1. Download and Install: Download WPS Office for free from the official website and install it on your device.
  2. 2. Open your workbook: Launch WPS Spreadsheet and open your existing .xlsx or .xls file.
  3. 3. Apply the INDEX or TRANSPOSE formula: Select your target cell and input the combination of INDEX and ROWS, or the TRANSPOSE function.
  4. 4. Drag to fill: Use the intuitive fill handle to drag the formula down the column, instantly mapping your horizontal data vertically.
100% compatible with Excel formulas like TRANSPOSE, INDEX, and ROWSSupports modern dynamic arrays for automatic formula spillingFree and lightweight alternative to Microsoft OfficeFamiliar user interface makes transitioning seamless
microsoft office alternative - wps office

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.