Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default how do I copy specific rows without copying each row individually

I am using Excel 2007. I am trying to copy every 5th row of information and
there is no specific criteria met in each row. Can anyone help?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,124
Default how do I copy specific rows without copying each row individually

for i=1 to 25 step 5
rows(i).copy somewhere
next i

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Chris H" wrote in message
...
I am using Excel 2007. I am trying to copy every 5th row of information
and
there is no specific criteria met in each row. Can anyone help?


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default how do I copy specific rows without copying each row individually

Hi,

Assume that your data is in range F8:F18 (including the header row). In
F25, enter =MOD((ROW(F9)-ROW($F$8)),5)=0. In F24, enter condition. Now go
to Data Filter Advanced Filter and in the Action section, select Coy to
another location. In the list box, select F8:F18. In the criteria box,
enter F24:F25 and in the copy to box, select any blank cell. This will copy
every 5th row to a new location.

Hope this helps.

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Chris H" wrote in message
...
I am using Excel 2007. I am trying to copy every 5th row of information
and
there is no specific criteria met in each row. Can anyone help?


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default how do I copy specific rows without copying each row individually

One other thought ..
Assume your source data in cols A & B
Assume you want to list A1:B1, followed by A6:B6, then A11:B11, and so on

Place in say, E1: =OFFSET(A$1,ROWS($1:1)*5-5,)
Copy E1 to F1, fill down as far as required

Easily adapt the formula to suit:
A$1 = A1 is the offset anchor (ie the top left cell in your source range)
5 = the required interval (every 5th row)

Success? hit the YES below
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:27,000 Files:200 Subscribers:70
xdemechanik
---
"Chris H" wrote:
I am using Excel 2007. I am trying to copy every 5th row of information and
there is no specific criteria met in each row. Can anyone help?

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
Macro for copying specific rows from various worksheets to summary rsmith Excel Discussion (Misc queries) 6 January 13th 09 03:27 AM
Copying rows with specific criteria Secret Squirrel Excel Discussion (Misc queries) 2 July 27th 08 08:22 AM
Copy / paste only specific rows Benjamin Excel Discussion (Misc queries) 3 April 11th 08 03:14 PM
COPY AND PASTE SPECIFIC ROWS HERNAN Excel Discussion (Misc queries) 2 August 17th 06 07:32 PM
Copying specific rows Eric Montelongo Excel Worksheet Functions 1 June 20th 06 08:08 PM


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