Reputation: 141
I have written some values in column and I want to make it in reverse order.
Upvotes: 14
Views: 77357
Reputation: 41
Why use the Offset or an array formula? Why not use "=($E1-(MAX($E$2:$E$)+1))*-1", enter this in Cell F1 and copy down. No array formula, no Offset, cleaner, and simplier, IMHO.
Upvotes: 2
Reputation: 30485
Suppose you want to invert the range E1:E6 and place the inverted list in range F1:F6.
Enter this array formula in F1. (This is an array formula so you must press CTRL+SHIFT+ENTER)
=OFFSET($E$1:$E$6,MAX(ROW($F$1:$F$6))-ROW(),0)
Then select the entire F1:F6 range, and use Fill Down (Home tab / Editing) to copy this formula down into all the cells in the range F1:F6.
Upvotes: 8
Reputation: 9985
You could add an extra column which numbers 1,2,3,.... N. Next you use this column to sort the area that includes your data in reverse order (descending).
Upvotes: 3
Reputation: 33118
NOTE: If you want to know how to do this using VBA code, please specify as such in your quesiton. Otherwise, this answers your question and it really belongs on superuser.com
Upvotes: 26