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


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.

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. Download Kutools for Excel Now! ( 30-day free trail)


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.

Before applying Kutools for Excel, please download and install it firstly.

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.

  If you want to have a free trial ( 30-day) of this utility, please click to download it, and then go to apply the operation according above steps.


Demo: flip / reverse a column of data order vertically


Related article:

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


The Best Office Productivity Tools

Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

  • Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial. 60-day money back guarantee.
kte tab 201905

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
officetab bottom
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.
    Aun · 11 months ago
    This is so redundant. Just:

    1. "select all" the data,

    2. "copy"

    3. go to a "new sheet/workbook"

    4. "right click" and "paste special - TRANSPOSE"
  • To post as a guest, your comment is unpublished.
    Max · 1 years ago
    Thank you very much!
  • To post as a guest, your comment is unpublished.
    THOR · 2 years ago
    THANK YOU POLLO
  • To post as a guest, your comment is unpublished.
    H.ALIZADEH · 2 years ago
    THANK YOU VERY VERY MUCH!
  • To post as a guest, your comment is unpublished.
    Babken · 2 years ago
    Thank you very much! It really helped me!
  • To post as a guest, your comment is unpublished.
    MIHA · 3 years ago
    how i can change macro to flip horisontally?
  • To post as a guest, your comment is unpublished.
    Kevinbd83 · 4 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 :(
  • To post as a guest, your comment is unpublished.
    Duncan Adams · 4 years ago
    Why .. why in the hell do people and not just you ... have to prove how to reinvent the wheel and show how to do things that don't need to be done .
    How to flip / reverse a column of data order vertically in Excel? All you have to do is tell people to hi - light the data and go push the a/z button and it's done . Yeah I don't know what I am doing .. excel is shit because it's hard to use ... but this was so easy and you make so hard . You're not and educator . Duncan Adams
    • To post as a guest, your comment is unpublished.
      Wormeh · 4 years ago
      That's actually not true. The A/Z button SORTS it (usually from low to high or form a to z), but it doesnt FLIP it. Yes, it does flip when it's ordered from a to z or from low to high, but what if it's not? So yes, this is useful. Please think before you speak Duncan.
  • To post as a guest, your comment is unpublished.
    Saikumar · 5 years ago
    Hi, Thanks a lot, it is really so simple using using Data - Sort
  • To post as a guest, your comment is unpublished.
    morso · 5 years ago
    hi thank u ,it was very useful
  • To post as a guest, your comment is unpublished.
    vikas kumar dixit · 5 years ago
    Just simply i m try to flip my data how m doing????

    Ex. i m try to vikas dixit to dixit vikas it's possible or not.????

    please reply
  • To post as a guest, your comment is unpublished.
    Carissa · 5 years ago
    Awesome, thanks! Easy.
  • To post as a guest, your comment is unpublished.
    SA10 · 6 years ago
    Thanks that did it but I lost my conditional formatting. Is that normal?
  • To post as a guest, your comment is unpublished.
    Sahil · 6 years ago
    In the next column enter numbers 1 thru 7 (one per row), select both columns and sort descending by the second column
  • To post as a guest, your comment is unpublished.
    Marc · 6 years ago
    So much help thank you I was not willing to copy paste stuff just for the sake of my teachers formatting requirements.
  • To post as a guest, your comment is unpublished.
    EV · 6 years ago
    Very simple solution! I was complicated my life when the solution was right in front of me!!

    Thank you! :D
  • To post as a guest, your comment is unpublished.
    Keno · 6 years ago
    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: "####".
    • To post as a guest, your comment is unpublished.
      LisaR9 · 5 years ago
      Just widen the columns and see if that helps
  • To post as a guest, your comment is unpublished.
    sanket bagadia · 6 years ago
    great save time.......very good
  • To post as a guest, your comment is unpublished.
    venkatesh · 6 years ago
    Hi, Its a simple and nice solution thanks a lot.