Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default reverse or flip rows

I have data that looks like this:
123 456 789
avb yu3 111

I need to flip this arrangement so that I get:
avb yu3 111
123 456 789

I might I programatically achieve this result

Mary

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default reverse or flip rows

On Aug 12, 4:35 pm, "
wrote:
I have data that looks like this:
123 456 789
avb yu3 111

I need to flip this arrangement so that I get:
avb yu3 111
123 456 789

I might I programatically achieve this result

Mary


That would depend. You can, of course, achieve the result
programmatically. However through excel what you could do is
1. Add a new column and insert serial numbers
2. Sort the data range based on this column -- descending. You should
have the flipped results

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 84
Default reverse or flip rows

You can do this with keyboard and mouse. It's easier done than said:

1. Highlight one of the rows by clicking its row number.
2. Pass your mouse over the upper or lower border of the highlighted
row until the cursor changes. It doesn't matter which border.
3. While pressing Shift, drag the border across the other row, just to
the other side.
4. Release mouse button.
5. Release shift key.


If your rows are always the same (here, row 10 and 11), a recorded
macro will give you:

Sub SwapRows()
Rows("11:11").Select
Selection.Cut
Rows("10:10").Select
Selection.Insert Shift:=xlDown
End Sub


If your rows are not always the same, highlight the upper row and run
this macro:

Sub SwapUpperRowWithLower()
Selection.Cut
ActiveCell.Offset(2, 0).Rows("1:1").EntireRow.Select
Selection.Insert Shift:=xlDown
End Sub


Hope this helps,
- David



On Aug 12, 7:35 am, "
wrote:
I have data that looks like this:
123 456 789
avb yu3 111

I need to flip this arrangement so that I get:
avb yu3 111
123 456 789

I might I programatically achieve this result

Mary



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
columns to rows flip captain fantastic Excel Discussion (Misc queries) 3 March 10th 08 09:24 PM
Reverse a "row" of numbers (flip flop them)? wannabe68 New Users to Excel 13 September 22nd 07 07:40 PM
Flip flopping columns and rows GKW in GA Excel Discussion (Misc queries) 3 June 12th 07 05:24 PM
How to flip the rows to column winglj Excel Discussion (Misc queries) 1 July 12th 05 03:28 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


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

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

About Us

"It's about Microsoft Excel"