ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How do I reverse the order (sequence) of a column of data in Excel (https://www.excelbanter.com/excel-worksheet-functions/34527-how-do-i-reverse-order-sequence-column-data-excel.html)

Ken Hardman

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

Max

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 <atyahoo<dotcom
----
"Ken Hardman" <Ken wrote in message
...
?

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



olasa


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


--
olasa
------------------------------------------------------------------------
olasa's Profile: http://www.excelforum.com/member.php...o&userid=17760
View this thread: http://www.excelforum.com/showthread...hreadid=385761


RagDyer

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!
==============================================

"Max" wrote in message
...
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 <atyahoo<dotcom
----
"Ken Hardman" <Ken wrote in message
...
?

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





RagDyer

Actually, didn't need that first Row() function:

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

--
Regards,

RD
--------------------------------------------------------------------
Please keep all correspondence within the Group, so all may benefit!
-------------------------------------------------------------------

"RagDyer" wrote in message
...
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!
==============================================

"Max" wrote in message
...
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 <atyahoo<dotcom
----
"Ken Hardman" <Ken wrote in message
...
?

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







Max

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
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"olasa" wrote in
message ...

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


--
olasa
------------------------------------------------------------------------
olasa's Profile:

http://www.excelforum.com/member.php...o&userid=17760
View this thread: http://www.excelforum.com/showthread...hreadid=385761





All times are GMT +1. The time now is 09:54 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com