Contact

TRANSPOSE Function in LibreOffice Calc — Tested Examples

Array Beginner LibreOffice Calc

Transpose a nonsymmetric 2-by-3 range into a 3-by-2 array in LibreOffice Calc. Follow exact output placement and array entry, preserving earlier tested INDEX checks.

Verification status: See the evidence and test scope described in this guide. How formula examples are checked

Quick answer: TRANSPOSE swaps rows and columns. A 2-by-3 source needs a 3-by-2 output range; the worked example below shows all six cells.

Availability and version history

  • Introduced: Documented by LibreOffice 26.8.1.1; original introduction not established.
  • Availability: Supported in LibreOffice 26.8.1.1, verified against its function registry. This identifies a supported release, not a final working version.
  • Scope: Desktop Calc, using the English function name. Availability in other spreadsheet applications is separate.
  • Checked: 2026-10-14 — function reference; versioned support. Documentation/source check; not a new native test. Existing example-specific test claims below retain their stated scope.

Array transposition. Exchanges the rows and columns of an array. The test matrix contains rows [2,1] and [1,3]. The output swaps rows and columns; INDEX selects two known elements to check.

Syntax and arguments

=TRANSPOSE(Array)

LibreOffice Calc formulas generally separate arguments with semicolons (;).

Argument Explanation
Array Required. The source range or array whose rows and columns are to be exchanged.

Worked examples

Reproduce these source cells: Q10=2, R10=1, Q11=1, R11=3.

Full array output: For TRANSPOSE, select an appropriately sized output range and confirm an array formula as described in the complete rectangular example below. The two earlier examples immediately below return one scalar result that was tested directly.

Example 1: Transpose a matrix before selecting one result

=INDEX(TRANSPOSE(Q10:R11);2;1)

Expected result: 1. This value was returned in the LibreOffice Calc 25.2 test.

Example 2: Retrieve a transposed matrix element

=INDEX(TRANSPOSE(Q10:R11);1;2)

Expected result: 1. This value was returned in the LibreOffice Calc 25.2 test.

How to interpret the result

The test matrix contains rows [2,1] and [1,3]. The output swaps rows and columns; INDEX selects two known elements to check.

Mistakes and troubleshooting

  • Check inputs and assumptions: When entering the entire output, select a correctly sized destination and use an array formula as required.
  • Check argument order and format: Strings go in quotes, cell references do not. Functions that return arrays may require special entry.
  • Verify your own data: Reproduce the example first. If your formula returns an error, inspect the referenced cells and individual argument values.

Additional worked application and edge cases

Complete nonsymmetric example: two rows become three

The earlier symmetric 2-by-2 matrix checks individual elements but looks the same after transposition. Use the following nonsymmetric rectangular dataset to see every position change. Enter these six numbers in A2:C3:

Source row A B C
2 1 2 3
3 4 5 6
  1. Make sure E2:F4 is available for the output and does not overlap the source.
  2. Select the whole E2:F4 range: three rows and two columns.
  3. Type =TRANSPOSE(A2:C3).
  4. Confirm it as an array formula using Ctrl+Shift+Enter on Windows/Linux, or Command+Shift+Enter on macOS. The Function Wizard’s Array checkbox is the documented alternative.

The independently expected output is:

Output row E F
2 1 4
3 2 5
4 3 6

The original first row becomes the output’s first column. The original second row becomes the output’s second column. This is a transpose, not a 90-degree rotation or a reversal of the input order.

Dimensions and array-entry details

Array is the one required input, a range or array to transpose. A source with r rows and c columns produces c rows and r columns. Choose the exact destination dimensions to make the intended result unambiguous. Selecting only one cell does not demonstrate the entire six-cell result in the documented array-entry workflow.

Calc may show braces around an array formula in the formula bar. Let Calc add those braces; do not type them as part of the formula. This guide follows the documented selected-range array workflow and does not assume the automatic spill behavior of another spreadsheet program.

Verify selected positions without relying on symmetry

For this new dataset, =INDEX(TRANSPOSE(A2:C3);3;2) has expected result 6, while =INDEX(TRANSPOSE(A2:C3);1;2) has expected result 4. A nontransposed lookup at source row 1, column 2 would instead give 2, so the second check distinguishes the two layouts.

More generally, an element at source row i and column j moves to output row j and column i. The versioned implementation allocates the result with swapped dimensions before transposing it.

Advanced application: a formula-linked reporting layout

Keep a two-row input table in its original location and use TRANSPOSE to present it as a three-row report elsewhere. If C3 is changed from 6 to 60, the formula-linked output at F4 is expected to change to 60 when recalculated. The other five positions remain unchanged. A static copy pasted as values would not maintain this formula dependency.

TRANSPOSE exchanges values’ positions; it is not a promise to copy source formatting, column widths, notes or other cell presentation. Apply the report’s formatting to the output area separately. Text entries can also be transposed, so labels can participate in an array if they are deliberately included.

Troubleshooting the output area

The documented result is an array protected against individual-cell edits. If Calc says part of an array cannot be changed, select and edit or remove the whole output array rather than trying to overwrite one of its cells. Do not put the result over its own input range: that would destroy inputs or create a circular dependency.

If a layout shows only part of the expected matrix, recheck the destination size and array confirmation. If an error is carried from a source cell, inspect that source; transposition does not clean or validate data. The six new results are documentation-based independent expectations; only the earlier two symmetric-matrix checks carry the historical native-test claim.

Verification scope for this addition: These added results were independently calculated or derived from the cited documentation/source. They were not newly tested in LibreOffice Calc. The original example-specific Calc 25.2.3.2 claims elsewhere on this page remain historical and apply only to those original examples. The cited 26.8.1.1 source tag is a code reference, not a claim of a new run in that release.

COUNT · AVERAGE · SUM

Tested version and primary reference

2 example(s) on this page passed real calculations in LibreOffice Calc 25.2.3.2. This is not a claim about every possible input or other spreadsheet applications.

Detailed reference checked October 17, 2026