Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How do I swap every two rows in a spreadsheet?

Scenario:
1. First line is a header
2. Remaining lines are data
3. Need to make sure the number of data records is even by adding a
value to the last row +1, column D of "Trash" if the number of records
is odd
4. Swap every two rows of data including the row with "Trash" (i.e.
swap rows 2 and 3, swap rows 4 and 5, 6 and 7, etc.)

Ideally, the macro would keep the original file as is and create a
second file with the operations performed.

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 swap data in columns and rows around? Monkeroo New Users to Excel 2 May 28th 10 03:16 PM
How to swap the contents rows and columns in a spreadsheet? Andrew Excel Worksheet Functions 2 March 28th 09 04:00 PM
Excel should let you select 2 rows, right click, and SWAP them DG_Crewdson Excel Worksheet Functions 3 August 15th 06 07:10 PM
swap rows and columns rudyh Excel Discussion (Misc queries) 3 December 15th 05 01:23 AM
How to swap rows and columns? [email protected] Excel Discussion (Misc queries) 5 September 21st 05 08:07 AM


All times are GMT +1. The time now is 03:35 PM.

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"