How do I reverse the order (sequence) of a column of data in Excel

  • Thread starter Thread starter Guest
  • Start date Start date
Assume source data is in col A, in row1 down
Fill sequential numbers; 1,2,3,... in B1 down
Select cols A & B, do a Data > Sort > by col B > descending

or one play if you need it dynamic ..
put in B1: =ROWS($A$1:A1)
put in C1:
=IF(INDEX(A:A,MATCH(LARGE(B:B,ROWS($A$1:A1)),B:B,0))=0,"",INDEX(A:A,MATCH(LA
RGE(B:B,ROWS($A$1:A1)),B:B,0)))
Select B1:C1, fill down until the last row of data in col A
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <at>yahoo<dot>com
----
Ken Hardman said:
Re: How do I reverse the order (sequence) of a column of data in Excel
 
Here's an alternative:

=OFFSET($A$1,COUNTA(A:A)-ROWS($A$1:A1),0)

If your data is in Column A, put the formula in Column B, and copy
down.


Ola Sandström
 
Another formula approach which is *not* dynamic.
But if you know the size of your list, it's short and sweet!<g>

With data starting in A1, try this in B1, and copy down to the end:

=INDEX($A$1:$A$100,ROW($A$100)-(ROW()-1))
--
HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================
 
Actually, didn't need that first Row() function:

=INDEX($A$1:$A$100,100-(ROW()-1))
 
With this test data in A1:A10 (with some blank cells in-between)

12

14

16
17

99

20

your alternative returns in B1:B10 :

17
16
0
14
0
12
#REF!
#REF!
#REF!
#REF!

The presence of blank cells in-between the data seems to throw the results
off.
It works ok provided there's no blank cells in between the data
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top