# TRANSPOSE formula generator

> Describe what you need and get a TRANSPOSE formula for Excel and Google Sheets, run on real data before you copy it. Plus 8 tested TRANSPOSE examples.

Source: https://spreadsheetpractice.com/tools/formula-generator/transpose · Updated October 29, 2026 · Formulas and results on this page were run by the Spreadsheet Practice formula engine on November 20, 2026

TRANSPOSE flips a range so rows become columns and columns become rows.

Describe the task at [TRANSPOSE formula generator](https://spreadsheetpractice.com/tools/formula-generator/transpose) and get a TRANSPOSE formula for Excel and Google Sheets, tested on real data.

## Tested TRANSPOSE examples

### Transpose data with a formula

`=TRANSPOSE(A1:D4)`

Excel. Result on the sample sheet: 4 rows (A7:D10). [See it and try it](https://spreadsheetpractice.com/formulas/transpose-data-with-a-formula)

### Sort columns left to right with a formula

`=SORT(B1:F2,2,-1,TRUE)`

Excel. Result on the sample sheet: 2 rows (B4:F5). [See it and try it](https://spreadsheetpractice.com/formulas/sort-columns-left-to-right)

### Split comma-separated values into rows

`=TEXTSPLIT(A2,,", ")`

Excel. Result on the sample sheet: 5 rows (C2:C6). [See it and try it](https://spreadsheetpractice.com/formulas/split-comma-separated-values-into-rows)

### Split comma-separated values into one column

`=TEXTSPLIT(TEXTJOIN(", ",TRUE,B2:B6),,", ")`

Excel. Result on the sample sheet: 9 rows (D2:D10). [See it and try it](https://spreadsheetpractice.com/formulas/split-comma-separated-values-into-one-column)

### Sort words in a cell alphabetically

`=TEXTJOIN(", ",TRUE,SORT(TEXTSPLIT(A2,,", ")))`

Excel. Result on the sample sheet: 5 rows (B2:B6). [See it and try it](https://spreadsheetpractice.com/formulas/sort-words-in-a-cell-alphabetically)

### Return multiple matches across a row

`=TRANSPOSE(FILTER(B2:B11,A2:A11=E1))`

Excel. Result on the sample sheet: 1 row (E2:H2). [See it and try it](https://spreadsheetpractice.com/formulas/return-matches-across-a-row)

### Remove duplicate values within a cell

`=TEXTJOIN(", ",TRUE,UNIQUE(TEXTSPLIT(A2,,", ")))`

Excel. Result on the sample sheet: 5 rows (B2:B6). [See it and try it](https://spreadsheetpractice.com/formulas/remove-duplicates-within-a-cell)

## Questions

### What does the TRANSPOSE formula generator do?

You describe the task in plain English, and it writes the formula, using TRANSPOSE where that's the right tool, for your table or a sample one. The formula is run in our engine in Excel and Google Sheets mode before you see it, so you get its result, not just a guess.

### What does TRANSPOSE do?

TRANSPOSE flips a range so rows become columns and columns become rows.

### Can I learn to write TRANSPOSE formulas myself?

Yes. Each example below opens a page where you try the formula in a live grid and it's checked as you go, and the TRANSPOSE function page has a practice exercise.

---

Spreadsheet Practice (https://spreadsheetpractice.com) teaches spreadsheet formulas by practice: every exercise is graded in a live grid and re-checked on changed data.
