Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or
0
0
0
s2smodern

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

Sometimes, you may want to flip a column of data order vertically in Excel as the left screenshot shown. 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

Several clicks to flip a column of data order with Kutools for Excel


Easily flip a column of date vertically with several clicks:

The Flip Vertical Range utility of Kutools for Excel can help you quickly flip a column of date vertically with only several clicks. You just need to select the range and enable the function to acheive it. See screenshot:

Kutools for Excel: with more than 200 handy Excel add-ins, free to try with no limitation in 60 days. Download and free trial Now!


Flip a column of data order in Excel with Sort command


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

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

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

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

4. Then you will see the number order of Column A is flipped. And 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.


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:

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

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

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:

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


Several clicks to flip a column of data order 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 : with more than 120 handy Excel add-ins, free to try with no limitation in 60 days. 

1. Select the column of date you will flip vertically, then click Kutools > Range > Flip Vertical Range > All / Only flip values. See screenshot:

Note: If you want to flip vaues along with cell formatting, plesae select the All option. For only flipping values, please select the Only flip values option.

Then the selected data in the column has been flipped vertically. See screenshot:

Tip: If you also need to flip data horizontally in Excel. Please try the Flip Horizontal Range utility of Kutools for Excel. You just need to select two ranges firstly, and then apply the utility to acheive it as below screenshot shown.

Then the selected ranges are flipped horizontally immediately.

Tip.If you want to have a free trial of this utility, please go to download the software freely first, and then go to apply the operation according above steps.


Demo: flip / reverse a column of data order vertically

Kutools for Excel: with more than 200 handy Excel add-ins, free to try with no limitation in 60 days. Download and free trial Now!


Related article:

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


Recommended Productivity Tools

Office Tab

gold star1 Bring handy tabs to Excel and other Office software, just like Chrome, Firefox and new Internet Explorer.

Kutools for Excel

gold star1Amazing! Increase your productivity in 5 minutes. Don't need any special skills, save two hours every day!

gold star1200 New Features for Excel, Make Excel Much Easy and Powerful:

  • Merge Cell/Rows/Columns without Losing Data.
  • Combine and Consolidate Multiple Sheets and Workbooks.
  • Compare Ranges, Copy Multiple Ranges, Convert Text to Date, Unit and Currency Conversion.
  • Count by Colors, Paging Subtotals, Advanced Sort and Super Filter,
  • More Select/Insert/Delete/Text/Format/Link/Comment/Workbooks/Worksheets Tools...

Screen shot of Kutools for Excel

btn read more      btn download     btn purchase

Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    THOR · 1 months ago
    THANK YOU POLLO
  • To post as a guest, your comment is unpublished.
    H.ALIZADEH · 5 months ago
    THANK YOU VERY VERY MUCH!
  • To post as a guest, your comment is unpublished.
    Babken · 11 months ago
    Thank you very much! It really helped me!
  • To post as a guest, your comment is unpublished.
    MIHA · 1 years ago
    how i can change macro to flip horisontally?
  • To post as a guest, your comment is unpublished.
    Kevinbd83 · 2 years ago
    Basically I need the same as above but the amount of fields vertically can change from 1 to 12. Then, for example 3 fields, I would need number 3 to be at the top... If 11 then 11 at the top. It's random everytime between 1&12 though. Any ideas? As trying INDEX but to no avail :(