Contact

TRANSPOSE in Calligra Sheets: Swap Matrix Rows and Columns

Math Intermediate Calligra Sheets

Reorient a rectangular range and read individual transposed values without assuming automatic spilling.

Verification status: Consult the documentation, examples and any stated test scope below. How formula examples are checked

Quick answer: TRANSPOSE changes a 2-row × 3-column range into a 3-row × 2-column array. For input rows 1, 2, 3 and 4, 5, 6, the transposed rows are 1, 4, 2, 5, 3, 6.

Syntax and array shape

=TRANSPOSE(matrix)

One argument is required. Input position (row r, column c) becomes output position (row c, column r). The operation reorients the values; it does not sort, aggregate, invert or multiply them. A column vector becomes a row vector and a row vector becomes a column vector.

The function returns an array. This guide uses ordinary scalar INDEX formulas to read its elements. That verifies the calculation without assuming automatic spreadsheet spilling or a tested keyboard shortcut for entering a multi-cell array formula. The one-based INDEX arguments are row first, then column.

Worked worksheet: measurements by channel

Suppose two sampling runs each record three channels. Put the input values in H10:J11:

Cell row H I J
10 1 2 3
11 4 5 6

To produce one row per channel and one column per run, enter these six formulas separately:

Output cell Formula Expected value
A2 =INDEX(TRANSPOSE($H$10:$J$11);1;1) 1
B2 =INDEX(TRANSPOSE($H$10:$J$11);1;2) 4
A3 =INDEX(TRANSPOSE($H$10:$J$11);2;1) 2
B3 =INDEX(TRANSPOSE($H$10:$J$11);2;2) 5
A4 =INDEX(TRANSPOSE($H$10:$J$11);3;1) 3
B4 =INDEX(TRANSPOSE($H$10:$J$11);3;2) 6

The absolute source references prevent accidental movement when copying a formula. The coordinate arguments still need the intended values shown above. If the inputs are volts, the outputs remain volts; only their orientation changes. Label the new rows and columns accordingly, since TRANSPOSE does not know which labels mean runs or channels.

Advanced example: checking reversibility

For a fully populated rectangular matrix, transposing twice restores the original values and shape. For this input, the mathematical result of a second transpose is again rows [1,2,3] and [4,5,6]. This is a useful audit of orientation, unlike comparing only the top-left value, which is unchanged by a transpose and cannot prove the operation worked.

A scalar can be treated as a one-cell array: =INDEX(TRANSPOSE(7);1;1) returns 7. Do not generalize that scalar result to the handling of empty trailing rows or columns.

Empty cells, text and limits

The source copies nonempty Value objects directly and skips empty elements. It does not explicitly preallocate the full output dimensions before copying. As a result, a range with trailing empty structure should not be assumed to retain every nominal empty output row or column. Use a fully populated range when shape is essential, or verify empty-layout behavior separately in the exact application version.

This is a value-array operation rather than a worksheet copy command. Formatting, column widths, comments and source formulas as editable formulas are not established as transferred by this function. Numeric examples below establish only their returned values and orientation. Text and error objects follow the source’s copying route, but their complete rendered behavior is outside those numeric native checks.

If a requested element looks wrong, check row/column order, original range dimensions and whether a copied relative reference moved. A 3×2 result cannot be read as though it were still 2×3. Avoid relying on another application’s dynamic-array spill convention.

INDEX retrieves a selected array value, while MMULT performs multiplication rather than reorientation. Recheck array-entry behavior and blank handling after workbook exchange. A familiar function name does not imply identical multi-cell UI behavior.

Version scope and references

Reviewed October 18, 2026. The relevant implementation file and shared numerical/conversion files were compared between official 25.04.2 and 26.08.2 source and are byte-identical. This establishes source equivalence for the inspected code, not identical behavior on every platform or a native test of 26.08.2. The earliest release containing TRANSPOSE has not been established; these version numbers are not introduction dates.

Mathematical reference values above were calculated independently. The native results below were obtained in Calligra Sheets 25.04.2 on Linux, October 18, 2026; no native 26.08.2 execution is claimed. No unstated locale, import or array-entry behavior is implied.

Native verification in Calligra Sheets 25.04.2

These formulas were recalculated in the actual application and read back from its completed native-saved workbook. The image is an unmodified application screenshot. The earlier mathematical calculations remain independent references; this table records actual saved results.

The array checks retrieve individual elements with INDEX. They establish the listed values and orientation, not automatic spilling or a tested direct multi-cell array-entry shortcut.

Native H10:J11 contains rows 1,2,3 and 4,5,6, as in the worked example.

Calligra Sheets 25.04.2 showing TRANSPOSE formulas and native calculated results

Formula executed Native saved result
=INDEX(TRANSPOSE(H10:J11);1;1) 1
=INDEX(TRANSPOSE(H10:J11);1;2) 4
=INDEX(TRANSPOSE(H10:J11);2;1) 2
=INDEX(TRANSPOSE(H10:J11);2;2) 5
=INDEX(TRANSPOSE(H10:J11);3;1) 3
=INDEX(TRANSPOSE(H10:J11);3;2) 6
=INDEX(TRANSPOSE(7);1;1) 7

Display formatting may show fewer digits than the saved value. The tested cases do not establish every coercion, extreme magnitude or cross-application import behavior.