Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default listing a column in reverse order

Column A contains a finite list of numbers, not necessarily sorted by order
of magnitude. I want Column B to contain the same list of numbers, but
listed in precisely the reverse order. How do I do this?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default listing a column in reverse order

copy column A to column B
in column C, enter:
1
2
3
4
5
6
....

down as far as column B

Then sort columns B & C by C descending
--
Gary''s Student - gsnu200760


"Archimedes" wrote:

Column A contains a finite list of numbers, not necessarily sorted by order
of magnitude. I want Column B to contain the same list of numbers, but
listed in precisely the reverse order. How do I do this?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default listing a column in reverse order

Using VBA:

Sub invertum()
n = Cells(Rows.Count, "A").End(xlUp).Row
k = n
For i = 1 To n
Cells(i, "B").Value = Cells(k, "A").Value
k = k - 1
Next
End Sub

--
Gary''s Student - gsnu200760


"Archimedes" wrote:

Column A contains a finite list of numbers, not necessarily sorted by order
of magnitude. I want Column B to contain the same list of numbers, but
listed in precisely the reverse order. How do I do this?

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default listing a column in reverse order

Assume your list in column A is A1:A100

Enter this in B1 =INDEX($A$1:$A$100,100-(ROW(A1)-1))

Double-click on fill handle of B1


Gord Dibben MS Excel MVP


On Wed, 5 Dec 2007 11:08:01 -0800, Archimedes
wrote:

Column A contains a finite list of numbers, not necessarily sorted by order
of magnitude. I want Column B to contain the same list of numbers, but
listed in precisely the reverse order. How do I do this?


  #5   Report Post  
Posted to microsoft.public.excel.programming
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default listing a column in reverse order

it's the same thing, but if you didn't want to hardcode the 100:
=INDEX(A$1:A$100,ROWS(A1:A$100))


"Gord Dibben" wrote:

Assume your list in column A is A1:A100

Enter this in B1 =INDEX($A$1:$A$100,100-(ROW(A1)-1))

Double-click on fill handle of B1


Gord Dibben MS Excel MVP


On Wed, 5 Dec 2007 11:08:01 -0800, Archimedes
wrote:

Column A contains a finite list of numbers, not necessarily sorted by order
of magnitude. I want Column B to contain the same list of numbers, but
listed in precisely the reverse order. How do I do this?



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
How do I reverse the order of a column or row? LP Excel Discussion (Misc queries) 3 October 30th 08 11:16 PM
Reverse chart column and row order Divinite Charts and Charting in Excel 1 May 23rd 07 10:08 PM
Reverse order of numbers in a column rcc Excel Discussion (Misc queries) 1 July 10th 06 06:15 PM
Reverse order in column D Excel Worksheet Functions 3 July 4th 05 07:22 AM
How can I reverse the order of a column of numbers . . . Wyoming Buckeye Excel Discussion (Misc queries) 1 January 14th 05 07:53 PM


All times are GMT +1. The time now is 12:05 AM.

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"