How to reverse and transpose Excel data with this powerful but simple solution | TechRepublic (2024)

How to reverse and transpose Excel data with this powerful but simple solution | TechRepublic (1)

Often, a solution is simpler than you first imagine if you break the problem down a bit and apply built-in features in a creative way. For instance, in this article, I’ll show you how to move and reverse a data set. Neither task is difficult, but doing both seems to complicate things, and therefore, you overthink the solution. With that simple task quickly solved, we’ll move on to another seemingly complicated problem–reversing and transposing!

I’m using Excel 2016 on a Windows 10 64-bit system, but you can use older versions. There’s no downloadable demonstration file–you can easily create the simple example data range or use your own data.

Reverse the order

Reversing a data set isn’t difficult although I’ve seen a lot of convoluted solutions for doing so. The simplest solution is to add a column of consecutive values adjacent to the data set and sort by the new column. It doesn’t hurt a bit. If you want to keep the original order, copy the data and sort the copy. You don’t have to copy and sort at the same time, although, you will see online solutions that do so using arrays and other complex solutions–nobody really needs to work that hard.

Now, let’s assume you want to keep the original data’s order but you also need it reversed. First, copy the data to the new location, as shown in Figure A. Then, add a column of consecutive values to the copied data set by entering 1, 2, and 3 (I4:I6) adjacent to the copied dataset. With such a small data set, you can easily enter the values manually. If the range is larger, use the fill handle to complete your list of consecutive values. First, enter 1 in I4. Then, double-click the fill handle and choose Fill Series from the AutoFill options at the bottom of the range. Doing so will change your column of 1s to a consecutive list.

Figure A

How to reverse and transpose Excel data with this powerful but simple solution | TechRepublic (2)

Copy the data set and enter a list of consecutive values adjacent to it.

The next step is to sort the copied data set by the new column of values. To do so, click any cell in the new column (column I) and choose Sort Largest To Smallest from the Sort & Filter dropdown in the Editing group, as shown in Figure B. If Excel asks you to expand the range, click Sort to confirm. As you can see in Figure C, you have a reversed data set in a new location, and the original data exists in its original order. At this point, you can delete the consecutive values (or not).

Figure B

How to reverse and transpose Excel data with this powerful but simple solution | TechRepublic (3)

Choose a descending sort.

Figure C

How to reverse and transpose Excel data with this powerful but simple solution | TechRepublic (4)

Sorting the consecutive values reserves the order of the data.

Transpose the data set

Reversing the rows was easy. Now, let’s complicate the problem a bit by reversing and transposing the data. Again, achieving the results is much easier than you might initially think. First, let’s look at a quick transposing example:

  1. Select the data set (B4:D6) and press Ctrl + C to copy it to the Clipboard.
  2. Select F4 and choose Transpose from the Paste dropdown in the Clipboard group (Figure D). The results are shown in Figure E.

Figure D

How to reverse and transpose Excel data with this powerful but simple solution | TechRepublic (5)

Choose Transpose (T).

Figure E

How to reverse and transpose Excel data with this powerful but simple solution | TechRepublic (6)

Here are the transposed results.

Transpose the reversed set

The values in row 4 are now in column F. The values in row 5 are in column G, and the values in row 6 are in column H. But the results aren’t reversed and while the process to transpose and reverse is still simple, knowing when to do which complicates things a bit. But don’t worry.

If you want the transposed values reversed, simply add the adjacent column of consecutive values and sort the new data set, as shown in Figure F. On the other hand, if you want the reversed data set transposed, approach the problem in that order, as shown in Figure G. First, copy the data set and reverse it, then transpose it. If you compare the two resulting data sets, you’ll see that the final data sets aren’t the same.

Figure F

How to reverse and transpose Excel data with this powerful but simple solution | TechRepublic (7)

See Also
Blog

Reverse the transposed results.

Figure G

How to reverse and transpose Excel data with this powerful but simple solution | TechRepublic (8)

Transposing the reversed data set takes an additional step.

Easier than you thought

You want this data to look like what? Sometimes a problem only seems big, as I’ve shown in this article. Considering when to reverse and when to transpose is the hardest part of this easy-to-implement solution. I’m not suggesting that every request to reorganize your data will be so easily achieved. But with a little creative use of built-in tools, you might achieve what you need more easily than you initially anticipate.

Send me your question about Office

I answer readers’ questions when I can, but there’s no guarantee. Don’t send files unless requested; initial requests for help that arrive with attached files will be deleted unread. You can send screenshots of your data to help clarify your question. When contacting me, be as specific as possible. For example, “Please troubleshoot my workbook and fix what’s wrong” probably won’t get a response, but “Can you tell me why this formula isn’t returning the expected results?” might. Please mention the app and version that you’re using. I’m not reimbursed by TechRepublic for my time or expertise when helping readers, nor do I ask for a fee from readers I help. You can contact me at susansalesharkins@gmail.com.

More Office how-to’s

  • Use these shortcuts and features to quickly navigate a Word document
  • 11 tips for delivering a glitch-free presentation
  • Five ways to add a note to an Outlook email message
  • Unleash the power of Excel’s AutoSum tool

Subscribe to the Developer Insider Newsletter

From the hottest programming languages to commentary on the Linux OS, get the developer and open source news and tips you need to know. Delivered Tuesdays and Thursdays

Subscribe to the Developer Insider Newsletter

From the hottest programming languages to commentary on the Linux OS, get the developer and open source news and tips you need to know. Delivered Tuesdays and Thursdays

How to reverse and transpose Excel data with this powerful but simple solution | TechRepublic (2024)

FAQs

How do I flip data backwards in Excel? ›

To do this, you can use the following steps:
  1. Select the data you want to rotate.
  2. Right-click the selected data and select "Copy".
  3. Right-click a blank cell in the same sheet and select "Paste Special".
  4. In the Paste Special dialog box, select "Transpose".
  5. Click OK to complete the operation.
Jan 5, 2023

How do I quickly Transpose data in Excel? ›

Here's how you can transpose cell content:
  1. Copy the cell range.
  2. Select the empty cells where you want to paste the transposed data.
  3. On the Home tab, select the Paste icon, and select Paste Transpose.

How to dynamically Transpose data in Excel? ›

TRANSPOSE function
  1. Step 1: Select blank cells. First select some blank cells. ...
  2. Step 2: Type =TRANSPOSE( With those blank cells still selected, type: =TRANSPOSE( ...
  3. Step 3: Type the range of the original cells. Now type the range of the cells you want to transpose. ...
  4. Step 4: Finally, press CTRL+SHIFT+ENTER.

How to reverse transpose in sheet? ›

Understanding the TRANSPOSE Function in Google Sheets

The syntax for the TRANSPOSE function is simple: =TRANSPOSE(array_or_range) , where "array_or_range" represents the data you want to transpose. For example, if your data is in the range A1:C3, you would use the formula =TRANSPOSE(A1:C3) to flip the rows and columns.

How do you reverse data points in Excel? ›

In the Axis Options category, under Axis Options, select the Series in reverse order check box.

Is there a reverse function in Excel? ›

Returns a string in which the character order of a specified string is reversed. The required expression argument is the string whose characters are to be reversed.

How to reverse order of rows in Excel? ›

How to flip columns and rows in Excel
  1. Highlight your data range. Figure out what the first cell of your data range is and highlight it. ...
  2. Copy your data. ...
  3. Click on the first cell for your new location. ...
  4. Delete the original data range. ...
  5. Select blank cells. ...
  6. Type "=TRANSPOSE(" ...
  7. Type the range of the original cells. ...
  8. Finish the formula.
Jun 24, 2022

How to transpose a large amount of data? ›

Step 1: First, select the range that you want to transpose. Step 2: You will find the Copy option on the Home tab in the Excel ribbon or right-clicking the entire range. Step 3: Next, select a new location where you want to paste the transposed data. Step 4: Click on Paste Special.

Is there a shortcut for transpose in Excel? ›

Control+alt+v will take you to the “paste special” option from where transpose can be selected.

How to do reverse transpose in Excel? ›

Steps
  1. Select the data you want to flip on its side, including the headers.
  2. Press Ctrl+C to copy the data.
  3. Right-click on a cell where you want to paste the transposed data. ...
  4. Under Paste Options, select Transpose.
  5. The data will be pasted into the selected cell in a transposed format.

How do I automatically transform data in Excel? ›

Step 1: Open up Excel and click on the “Data” tab in the ribbon. Step 2: Click on the “Get Data” button in the “Get & Transform Data” group. Step 3: Choose the data source you want to connect to, such as an Excel workbook, a database, or a web page. Step 4: Click the “Transform Data” button to open Power Query Editor.

What is the limit of transpose in Excel? ›

Transpose data in Excel using VBA macro

To add a macro to your worksheet, please follow the guidelines described in How to insert and run VBA code in Excel. Note. Transposing with VBA, has a limitation of 65536 elements. In case your array exceeds this limit, the extra data will be silently cast away.

How do you remove Transpose in Excel? ›

To remove a Transpose formula from your worksheet, select the whole range referenced in the formula, and press the Delete key.

How do you reverse changes in Excel? ›

To undo an action press Ctrl+Z on your keyboard, or select Undo on the Quick Access Toolbar. You can press Undo (or Ctrl+Z) repeatedly if you want to undo multiple steps.

Top Articles
Latest Posts
Article information

Author: Chrissy Homenick

Last Updated:

Views: 5496

Rating: 4.3 / 5 (74 voted)

Reviews: 89% of readers found this page helpful

Author information

Name: Chrissy Homenick

Birthday: 2001-10-22

Address: 611 Kuhn Oval, Feltonbury, NY 02783-3818

Phone: +96619177651654

Job: Mining Representative

Hobby: amateur radio, Sculling, Knife making, Gardening, Watching movies, Gunsmithing, Video gaming

Introduction: My name is Chrissy Homenick, I am a tender, funny, determined, tender, glorious, fancy, enthusiastic person who loves writing and wants to share my knowledge and understanding with you.