In short
- Copy the cells, right-click where the new layout should start, choose Paste Special and tick Transpose. Rows become columns and columns become rows.
- Use the TRANSPOSE function instead if the new layout must follow changes in the original. Formulas need absolute references before you flip them.
- Edit an Excel file free in your browser
You have months across the top and you want them down the side. Or a survey export came sideways, with one person per column, and your list needs one person per row. Retyping is out of the question.
Excel calls this transposing, and it has two ways to do it. One gives you a plain copy in the new direction. The other gives you a live copy that keeps following the original. Which one you pick matters most when your data contains formulas, so that part gets its own section. EditFlip cannot flip a table for you, and this guide says what it can do instead.
On EditFlip, step by step
- Step 1
Choose the Excel file
Go to editflip.com and press Choose files, or drop the .xlsx, .xls or .csv on the page. In Options, press Preview to look at how the data is laid out now. EditFlip does not have a Transpose button, so decide first how big the job is.
- Step 2
Open Edit and add the room you need
For a small table, press Edit and use Add row or Add column to make space. Tap a row or column, and the new one goes under it or after it. Undo is always there if you tap the wrong one.
- Step 3
Tap each cell and type the value in its new place
Tap a cell and type. Tab moves to the next cell on the right. Doing this by hand makes sense for a table of a dozen cells, and no more. Formulas you type are kept.
- Step 4
Delete the old layout, Done, Download
Remove the old row or column with Delete row or Delete column, press Done, and then Download. For anything bigger than a small table, use Paste Special in Excel as described below.
Paste Special with Transpose
Select the cells you want to flip, headings included, and copy them with Ctrl+C. Click one empty cell where the flipped version should start. Right-click, choose Paste Special, tick Transpose at the bottom of the box and press OK. On Windows, Ctrl+Alt+V opens the same box. On the Home tab, the Paste dropdown also has a Transpose icon, which is quicker.
The copy has to land on empty cells, and it must not overlap the original. If it does, Excel will not paste. Put the result on another sheet or well to the side of the first.
What you get is a fixed copy. If someone edits the original later, the flipped table does not change. Delete the old one only when you are sure you no longer need it.
A quick check after pasting: click the first and the last cell of the new table and compare them with the corners of the old one. If the top left cell of the original is now the top left cell of the copy, and the bottom right one has become the bottom right, the flip went the way you expected. It takes five seconds and catches a wrong starting cell.
The TRANSPOSE function, for a copy that stays linked
If the new layout must follow the original, use the function. In current versions of Excel for Microsoft 365, and in Excel 2021, click one empty cell and type =TRANSPOSE(A1:E1), adjusted to your range. Press Enter, and the results spill into the cells next to it, as many as are needed.
In older versions, you first select a block of empty cells of exactly the flipped size, so a range of 5 across becomes a block of 5 down. Type the formula and finish with Ctrl+Shift+Enter, not just Enter. If the block is too small, you lose cells. If it is too big, the extra ones show #N/A.
Two things to know. Empty cells in the original come out as 0, not as empty. And you cannot delete or change a single result cell, because they belong to one formula. If you need to edit them freely, copy the result and paste it back as values.
What happens to formulas
This is where most people get caught. Microsoft's own advice is to check that your formulas use absolute references before you rotate, because a formula is adjusted to match its new position, and a relative reference can then point at the wrong cells.
Absolute means a dollar sign in front of the column letter and the row number, as in $B$2. It tells Excel to keep looking at that exact cell, wherever the formula ends up. A formula with =B2*C2 in a flipped table can easily end up pointing at something quite different.
The safe habit: paste the flipped table, then look at two or three of the formulas in it, compare them with the originals, and check the totals against the old table. If the totals match, you are done. If the table is only numbers and text, none of this applies.
Formulas that point outside the block you copied deserve a second look. A total in another part of the sheet that refers to your table will keep pointing at the old cells, not at the new ones, so update it by hand if you delete the original.
Formatting, merged cells and column widths
Paste Special with Transpose carries the cell formatting over: bold headings, fills, number formats and borders. The TRANSPOSE function carries only the values, so format the result yourself.
Column widths and row heights do not come across in either method. Text that fitted nicely may now be cut off, so select the new columns and double-click the edge of a column header to fit them to the content.
Merged cells are a problem. A transposed range that includes merged cells can fail with an error, and TRANSPOSE does not like them either. Unmerge them before you start.
Turning a column into rows, and back again
The method works in both directions. A column of 12 cells becomes a row of 12 cells, and doing it a second time brings you back to the original. That is also your undo, if you ever flip something by mistake and have already saved.
A table with several columns flips as a block. The first row of the original becomes the first column of the result, and so on. So the headings, which were across the top, end up down the left side, which is usually what you want.
When you only want to rearrange part of a table, select just that part. You do not have to flip everything.
For a table you will flip again and again: Power Query
If you get the same sideways export every week, doing it by hand gets tiresome. On the Data tab, Power Query can load the table, and its Transform tab has a Transpose command. Once you have set it up, a refresh repeats the same steps on the new file.
It is more than a one-off needs, but it is worth the few minutes if the task keeps coming back. Remember to promote the first row to headings afterwards, since transposing turns the old headings into plain data.
On a phone, in Google Sheets, and on EditFlip
The Excel phone apps can copy and paste, and Paste Special offers Transpose in the options, but the menus are small, so a computer is easier for this job. Google Sheets has the same thing: Edit, Paste special, Paste transposed.
EditFlip opens Excel, xls and csv files in the browser, lets you type into cells, add and delete rows and columns, and keeps formulas working. It has no Transpose, so a big flip belongs in Excel. Your file is not uploaded, because everything is done on your device.
Choose your Excel or CSV file, press Edit, change cells and add or delete rows and columns, then press Done and Download. Free, no account, and the file stays on your device.
Edit an Excel sheet on EditFlip →Questions
How do I change data from horizontal to vertical in Excel?
Copy the cells, right-click an empty cell, choose Paste Special, tick Transpose and press OK. The rows become columns.
Why is Transpose greyed out in Paste Special?
Usually nothing was copied first. Press Ctrl+C on the cells, then open Paste Special again.
Does transposing keep my formulas?
Formulas stay, but they are adjusted to the new position. Make references absolute with dollar signs first, then compare totals before and after.
What is the difference between Paste Special Transpose and the TRANSPOSE function?
Paste Special gives a fixed copy. The function gives a live copy that follows changes in the original, but you cannot edit its cells one by one.
Why does my transposed data show zeros?
The TRANSPOSE function turns empty cells in the original into 0. Paste Special does not do this.
Can I flip a table back again?
Yes. Copy the flipped table and transpose it once more, and you are back at the first layout.
Can EditFlip transpose an Excel table?
No. It can edit cells and add or delete rows and columns, so a very small table can be retyped, but a real transpose needs Excel.
