Flip Flop

abacon1960

New Member
Joined
Jul 28, 2014
Messages
49
I have a set of data listed from AZ2 all the way to AZ556.

EXAMPLE.

1675
4578
5689
1256
4456
5568
etc.

I want to flip the data so the column will now read. This will allow me to align it with the correct dates that are set in stone on the spreadsheet. The dates are set in reverse order of the data I am importing. The dates need to remain as they ARE.

5568
4456
1256
5689
4578
1675

Is this possible?
 

Some videos you may like

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.

igold

Well-known Member
Joined
Jul 8, 2014
Messages
2,506
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
Does this do what you want...

Code:
Sub Flip()


    Dim fLop, i As Long, r As Long
    
    Application.ScreenUpdating = False
    r = 1
    fLop = Range("AZ2:AZ556")
    For i = 556 To 2 Step -1
        Cells(i, 52) = fLop(r, 1)
        r = r + 1
    Next
    Application.ScreenUpdating = True
    
End Sub
 
Last edited:

sandy666

Well-known Member
Joined
Oct 24, 2015
Messages
6,812
alternative

PowerQuery

Code:
[SIZE=1]let
    Source = Excel.CurrentWorkbook(){[Name="Table16"]}[Content],
    #"Reversed Rows" = Table.ReverseRows(Source)
in
    #"Reversed Rows"[/SIZE]
 

joeu2004

Well-known Member
Joined
Mar 2, 2014
Messages
2,813
Office Version
  1. 2010
Platform
  1. Windows
Enter into BA2 (any parallel column) and copy down through BA556:

=INDEX($AZ$2:$AZ$556, ROWS($AZ$2:$AZ$556)-ROWS($AZ$2:AZ2)+1)

The key thing that makes this work is the relative reference highlighted in red.
 
Last edited:

Watch MrExcel Video

Forum statistics

Threads
1,109,545
Messages
5,529,458
Members
409,879
Latest member
Aussie_Excel_Wanna_Be
Top