Moving Horizontal Data to Vertical in Excel
This tutorial will show you 3 ways to transpose data. You know, converting horizontal Excel data to vertical data, changing rows into columns, or switching between horizontal and vertical layouts. The reason for this Excel tutorial was that I had a client that had the responsibility of preparing data for a pivot table. However, the data they received was in the wrong format. Now it's true that there are other ways of accomplishing this task. But I thought if I went through 3 ways then the choice would be up to you.
Which transpose method should you use?
Quick answer: use Paste Special Transpose for a one-off change, use the TRANSPOSE function when the result should update with the source cells, and use Power Query when reshaping data is part of a repeatable reporting process.
| Method | Best for | Updates automatically? | Notes |
|---|---|---|---|
| Paste Special Transpose | Quick one-off row and column changes | No | Fastest method for simple spreadsheet tidying. |
| TRANSPOSE function | Linked results that should change with the source data | Yes | Best when you need a formula-based result. |
| Power Query | Repeatable reporting and reshaping tasks | Yes | Useful when data arrives in the wrong layout regularly. |
Method number 1 - Copy and Paste
The copy and paste method is by far the most straightforward method of transposing data. If fact some of you may already be more that familiar with selecting text and using the paste special - transpose way of doing this. Obviously the downside to this is that it is not flexible. Should you want to change the source data you will have to go through this process again so if we were rating this I would give this a 4/10.
Method Number 2 - Using the TRANSPOSE function
The Transpose function is an array function that allows you to transpose data from horizontal to vertical and vertical to horizontal. Whereas this solution of solving this Excel problem is a little more flexible that the copy & paste solution of method 1 but because it's an array function it can limit where you would use this. In fact at the time of recording the video I didn't know how to solve the problem of #N/A appearing in cells that are outside the range of the formula. Now though I have solved the problem. It was actually pretty straight forward but you still have to remember to select the number of cells you want included in the formula. You also need to remember to hold down the Ctrl and Shift keys on the keyboard when you press enter. That's Right! the TRANSPOSE function is an array formula which means you have to select the number of cells that it applies to beforehand.
Method Number 3 - OFFSET()
My suggestion is that you get familiar with the OFFSET function. It's a really handy one to know if you want to make your Excel formulas a load more flexible. Rather that have me go through the various arguments of the OFFSET function you're more than welcome to view our offset function tutorial.
Here you go! This is the exercise file. This is for those who would like to see what the resulting spreadsheet looks and feels like before you get started.
Need to Reshape Data for Reports?
If your team regularly receives spreadsheets in the wrong layout, live Excel training can help them clean, reshape and prepare data for formulas, filters and PivotTables.
- Useful for admin, operations and reporting teams
- Live online or onsite Excel training
- Support with TRANSPOSE, formulas, PivotTables and Power Query
Convert Horizontal Data to Vertical FAQs
How do I change horizontal to vertical in Excel?
For a quick one-off change, copy the horizontal data, use Paste Special, then choose Transpose. This changes rows into columns or columns into rows.
What is the quickest way to transpose data in Excel?
For a one-off job, Paste Special and Transpose is usually the quickest method. For a reusable solution, use formulas or Power Query.
Should I use Paste Special, TRANSPOSE or Power Query?
Use Paste Special when you only need to change the layout once. Use TRANSPOSE when the output should stay linked to the original cells. Use Power Query when the same reshaping task will happen again.
Will transposing data keep the formatting?
Paste Special Transpose can keep much of the visible formatting. Formula and Power Query methods are better for values and structure, so you may need to apply formatting afterwards.
Why does data layout matter?
Data in the right layout is easier to filter, summarise and use in PivotTables. Poor layout often makes reporting slower and more error-prone.
Which Excel training covers this?
Reshaping data is covered in intermediate Excel and can be extended with Power Query in tailored Excel training.