TRANSPOSE Function in Microsoft Excel: Syntax, Examples & Compatibility
Learn how to rotate a rectangular dataset so rows become columns and columns become rows in Microsoft Excel. Includes syntax, two verified-by-reasoning results, troubleshooting and portability notes.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Quick answer: TRANSPOSE exchanges rows and columns: an r-by-c source becomes a c-by-r result. The formula remains linked to source values, unlike a one-time transposed copy. Choose the output rectangle and array-entry method for the Excel client in use.
Availability and version history
- Introduced: Introduction version not established by the official history reviewed.
- Availability: Official help lists Excel for Microsoft 365, Excel for Microsoft 365 for Mac, Excel 2024, Excel 2024 for Mac, Excel 2021, Excel 2021 for Mac, Excel 2019, Excel 2016.
- Checked: October 14, 2026; official TRANSPOSE reference. Documentation check, not a new native test; existing example-verification notes retain their scope.
Syntax and output dimensions
=TRANSPOSE(array)
The required argument is an array or rectangular range. Each source row becomes an output column and each source column becomes an output row. This is a change of orientation, not sorting or reversing the sequence.
Microsoft’s dedicated reference documents top-left-cell entry followed by Enter for current Microsoft 365 dynamic arrays. In a legacy Excel array workflow, select the complete destination rectangle, type the formula and confirm with Ctrl+Shift+Enter. Excel supplies the braces; typing braces yourself does not perform legacy array entry.
The source’s general keyboard description does not establish the shortcut for every Mac, web or other client. Check the supported array-entry workflow for the actual client. The controls below specify all output positions independently of that interface.
Original example 1: transpose a two-by-two source
Enter this original dataset in A2:B3:
| Cell | Value |
|---|---|
| A2 | Pen |
| B2 | 12 |
| A3 | Pad |
| B3 | 5 |
Put the result in a separate two-by-two block, such as D2:E3:
=TRANSPOSE(A2:B3)
Expected cells are:
| Output row | First column | Second column |
|---|---|---|
| 1 | Pen | Pad |
| 2 | 12 | 5 |
The labels remain aligned with their original quantities. These display headings explain the result; they are not extra returned rows or columns.
Original example 2: a column becomes a row
Use a separate one-row, two-column output area:
=TRANSPOSE(A2:A3)
Expected output: Pen, Pad, in that left-to-right order. A two-row source becomes two columns, not a reversed list. Compare every returned cell, not just the top-left label.
Use English function names and adapt argument separators for your workbook locale. All expected arrays are independently modeled, not captured from a native Excel session.
Example 3: make the unequal dimensions explicit
In G2:I3 enter:
| Source row | G | H | I |
|---|---|---|---|
| 2 | 1 | 2 | 3 |
| 3 | 4 | 5 | 6 |
=TRANSPOSE(G2:I3)
Choose an empty three-row, two-column result rectangle, such as K2:L4. Its complete expected contents are:
| Result row | K | L |
|---|---|---|
| 2 | 1 | 4 |
| 3 | 2 | 5 |
| 4 | 3 | 6 |
There are six source and six result cells, but the shapes differ. Selecting two rows by three columns for a legacy destination would not describe the required transposed shape.
Advanced example: use coordinates to audit alignment
In the numeric block, source row 2 and source column 3 relative to G2:I3 identify the value 6 at I3. After transposition, it belongs at relative row 3 and column 2, L4.
The mapping is (source row, source column) to (result column, result row). Trace distinctive corner values: source top-left 1 stays top-left, source top-right 3 becomes bottom-left, source bottom-left 4 becomes top-right, and source bottom-right 6 stays bottom-right.
This check detects a rotation or reversal accidentally substituted for a transpose. It also gives an explicit alignment test before connecting the output to another report.
Advanced example: transpose twice
For the fully populated numeric source:
=TRANSPOSE(TRANSPOSE(G2:I3))
The expected result is the original two-by-three matrix: first row 1,2,3, second row 4,5,6. Source coordinates are exchanged twice and return to their initial positions.
This identity is demonstrated for the supplied numeric array only. It does not certify how every client handles physically blank cells, formula-empty strings, errors, formatting or external references during repeated transposition.
Advanced example: a changing report rather than a copied snapshot
Return to the original Pen/Pad fixture and change B3 from 5 to 8. After the formula recalculates, the expected transposed second row becomes 12,8; the first row remains Pen,Pad. A previously pasted static copy would not automatically receive that update.
Restore B3 to 5 when rerunning the original controls. A formula result is useful when the report should follow source values; a deliberate value copy is useful when preserving a dated snapshot. Choose the recording policy before comparing the two displays.
The function does not promise to transfer the source cells’ visual formatting. Apply suitable number formats to the destination separately, especially when its rows now contain values that previously occupied columns.
Array-entry checks and unresolved cases
Keep the destination outside the source range to avoid circular references, and leave the required output cells unobstructed in a dynamic-array client. In a legacy workflow, plan the whole rectangle before entry. The guide does not certify universal keyboard shortcuts or every obstruction error display.
The two-by-three example has a three-by-two output; a three-by-one column would become a one-by-three row; a one-by-four row would become a four-by-one column. Orientation does not change the total number of elements.
Blank-cell conversion, linked closed workbooks, merged cells, formatting preservation and mixed-error arrays remain outside these ordinary-value controls. Use INDEX when you need a particular position rather than the entire transposed rectangle.
Related guides and official documentation
Editorial verification: Full manuscript and dedicated Microsoft reference reviewed on October 14, 2026. Original title, publication date, worked formulas and input fixtures are preserved. Expectations were independently calculated from explicit text, array or row-selection models; no native Excel execution, visibility interaction, maximum-size benchmark or file-interchange test was performed.