Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Excel function to reverse the order of rows in a spreadsheet

Does anyone know a function to reverse the order of rows in a spreadsheet?
E.g. if I have n active rows I want to swap rows 1 and n, 2 and n-1, 3 and
n-2 etc.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default Excel function to reverse the order of rows in a spreadsheet

Set up a helper column and number your rows (1, 2, n) then sort your table
using this helper column in descending order.

or if your data is in B1:B10, you could use
=INDEX(B$1:B$10,ROWS(B1:B$10))
and copy it down

"Peter-OL" wrote:

Does anyone know a function to reverse the order of rows in a spreadsheet?
E.g. if I have n active rows I want to swap rows 1 and n, 2 and n-1, 3 and
n-2 etc.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Excel function to reverse the order of rows in a spreadsheet

Hmm, thanks, JMB. I didn't think of a helper column.
I was assuming that since there's such a plethora of clever and elaborate
functions in Excel there must be a simple one to do this. However the helper
column will do the job.

"JMB" wrote:

Set up a helper column and number your rows (1, 2, n) then sort your table
using this helper column in descending order.

or if your data is in B1:B10, you could use
=INDEX(B$1:B$10,ROWS(B1:B$10))
and copy it down

"Peter-OL" wrote:

Does anyone know a function to reverse the order of rows in a spreadsheet?
E.g. if I have n active rows I want to swap rows 1 and n, 2 and n-1, 3 and
n-2 etc.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default Excel function to reverse the order of rows in a spreadsheet

You're welcome

"Peter-OL" wrote:

Hmm, thanks, JMB. I didn't think of a helper column.
I was assuming that since there's such a plethora of clever and elaborate
functions in Excel there must be a simple one to do this. However the helper
column will do the job.

"JMB" wrote:

Set up a helper column and number your rows (1, 2, n) then sort your table
using this helper column in descending order.

or if your data is in B1:B10, you could use
=INDEX(B$1:B$10,ROWS(B1:B$10))
and copy it down

"Peter-OL" wrote:

Does anyone know a function to reverse the order of rows in a spreadsheet?
E.g. if I have n active rows I want to swap rows 1 and n, 2 and n-1, 3 and
n-2 etc.

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 list in Excel? yoyudax Excel Discussion (Misc queries) 2 September 3rd 08 06:08 PM
Return Last 10 rows in reverse row order. Sam via OfficeKB.com Excel Worksheet Functions 9 February 19th 08 09:23 PM
How do I reverse page order in excel workbook? vlm Excel Discussion (Misc queries) 1 August 16th 06 05:48 PM
Reverse a spreadsheet reversing columns and rows? Becca Excel Worksheet Functions 3 August 9th 06 08:44 PM
How to reverse order of rows and columns Johnny Excel Discussion (Misc queries) 3 September 11th 05 03:42 PM


All times are GMT +1. The time now is 02:47 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"