Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Ken Hardman
 
Posts: n/a
Default How do I reverse the order (sequence) of a column of data in Excel

?
  #2   Report Post  
Max
 
Posts: n/a
Default

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


  #3   Report Post  
olasa
 
Posts: n/a
Default


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

  #4   Report Post  
RagDyer
 
Posts: n/a
Default

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




  #5   Report Post  
RagDyer
 
Posts: n/a
Default

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








  #6   Report Post  
Max
 
Posts: n/a
Default

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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
match and count words David Excel Worksheet Functions 5 July 4th 05 02:24 AM
moving alternating rows to a column with the order staying the sam Duke Carey Excel Discussion (Misc queries) 0 April 27th 05 09:51 PM
Excel worksheet column headings in backwards alphabetical order? normanok89 Excel Discussion (Misc queries) 1 March 4th 05 03:23 PM
I typed a column in reverse order, how do I flip it (upside down). kpcane Charts and Charting in Excel 1 January 3rd 05 12:25 AM
how to paste the values in reverse order in workbook nayeemoddin Excel Discussion (Misc queries) 2 December 6th 04 08:35 AM


All times are GMT +1. The time now is 09:30 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"