How to flip / reverse a column of data order vertically in Excel?

Sometimes, you may want to flip a column of data order in Excel. It seems quite hard to reverse the data order manually, especially for a lot of data in the column. This article will guide you to flip or reverse a column data order vertically quickly.

Flip a column of data order in Excel with Sort command

Flip a column of data order in Excel with VBA

Flip a column of data order in Excel with Kutools for Excel

Kutools for Excel: add 120 new features in Excel. Save one hour every day.
Classic Menu for Office: brings back classic menus to Office 2010 and 2013 (includes Office 365).
Office Tab: brings tabbed interface to Office as the use of web browser Chrome, Firefox and Internet Explorer.

Supposing you need to flip the column of data in Microsoft Excel as shown in the following screenshot:


arrow blue right bubble Flip a column of data order in Excel with Sort command

Hot
Amazing! Using Tabs in Excel like Firefox, Chrome, Internet Explore 10!

Using Sort command can help you flip a column of data in Excel with following steps:

Step 1: Insert a series of sequence numbers besides the column. In this case, in insert 1, 2, 3…, 7 in Column B, then select B1:B7, see screenshot:

Step 2: Click the Data > Sort Z to A, see screenshot:

Step 3: In the Sort Warning dialog box, check the Expand the selection option, and click the Sort button.

You will see the number order of Column A is flipped. And then you can delete or hide the Column B according to your needs. See the following screenshot:

This method is also applied to reversing multiple columns of data order.


arrow blue right bubble Flip a column of data order in Excel with VBA

If you know how to use a VBA code in Excel, you may flip / reverse data order vertically as follows:

Step 1: Hold down the Alt + F11 keys in Excel, and it opens the Microsoft Visual Basic for Applications window.

Step 2: Click Insert > Module, and paste the following macro in the Module Window.

VBA: Flip / reverse a range data order vertically in Excel.

Sub FlipColumns()
'Updateby20131126
Dim Rng As Range
Dim WorkRng As Range
Dim Arr As Variant
Dim i As Integer, j As Integer, k As Integer
On Error Resume Next
xTitleId = "KutoolsforExcel"
Set WorkRng = Application.Selection
Set WorkRng = Application.InputBox("Range", xTitleId, WorkRng.Address, Type:=8)
Arr = WorkRng.Formula
For j = 1 To UBound(Arr, 2)
k = UBound(Arr, 1)
For i = 1 To UBound(Arr, 1) / 2
xTemp = Arr(i, j)
Arr(i, j) = Arr(k, j)
Arr(k, j) = xTemp
k = k - 1
Next
Next
WorkRng.Formula = Arr
End Sub

Step 3: Press the F5 key to run this macro, a dialog is popped up for you to select a range to flip vertically, see screenshot:

Step 4: Click OK in the dialog, the range is flipped vertically, see screenshot:


arrow blue right bubble Flip a column of data order in Excel with Kutools for Excel

If you have Kutools for Excel installed, you can reverse the numbers order of columns with Flip Vertical Range tool quickly.

Kutools for Excel includes more than 120 handy Excel tools. Free to try with no limitation in 30 days. Get it Now.

Step 1: Select the column of data that you want to flip.

Step 2: Click Kutools > Range Converter > Flip Vertical Range, see screenshot:

doc-flip-data-order7

Then the data in the column has been flipped vertically.

ClickFlip Vertical Range to know more about this feature.


Related article:

How to flip / reverse a row of data order in Excel quickly?


Kutools for Excel

More than 120 Advanced Functions for Excel 2013, 2010, 2007 and Office 365.

screen shot

btn read more     btn download     btn purchase

Comments  

+2#venkatesh2013-11-25 10:25
Hi, Its a simple and nice solution thanks a lot.
Reply | Reply with quote | Quote
+2#sanket bagadia2013-12-10 10:36
great save time.......very good
Reply | Reply with quote | Quote
+1#Keno2014-01-30 22:14
The macro for reversing the cell order did not work for me with my copy of Excel for Mac 2010 14.3.9. Instead, all cells to which the macro was applied were filled with this: "####".
Reply | Reply with quote | Quote
+2#EV2014-02-09 14:05
Very simple solution! I was complicated my life when the solution was right in front of me!!

Thank you! :D
Reply | Reply with quote | Quote
0#Marc2014-02-24 02:35
So much help thank you I was not willing to copy paste stuff just for the sake of my teachers formatting requirements.
Reply | Reply with quote | Quote
+1#Sahil2014-06-25 06:15
In the next column enter numbers 1 thru 7 (one per row), select both columns and sort descending by the second column
Reply | Reply with quote | Quote
0#SA102014-08-01 19:51
Thanks that did it but I lost my conditional formatting. Is that normal?
Reply | Reply with quote | Quote

Add comment


Security code
Refresh