#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
b166er
 
Posts: n/a
Default Rows Insertion


hi members
how can I insert rows after every fiftth row I have data of more than
6000 rows that means I want to insert 1200 rows in that sequence


--
b166er
------------------------------------------------------------------------
b166er's Profile: http://www.excelforum.com/member.php...o&userid=34912
View this thread: http://www.excelforum.com/showthread...hreadid=554552

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
RonnieD
 
Posts: n/a
Default Rows Insertion


I am assuming your date starts on cell in cell A1 in what follows.

Insert a new column to the left of all your data, so your data now
starts in cell B1.

In cell A1, enter this formula
=1+ROW()-ROW($A$1)+ROUNDDOWN((ROW()-ROW($A$1))/5,0)
and copy it down to the bottom row of your data. Make a note of the
largest number that this formula returns in column A.

Working down the column, this formula will generate 5 consecutive
integers, then a gap, then the next 5 consecutive intergers, then a
gap, etc.

In the cell in column A directly below this last row, enter a 6. In
the cell below, enter a 12, fill this series down until until the value
in the series is the multiple of 6 that is just less than the number I
asked you to note above.

Now select all your data, but continue your range below to include all
the extra numbers in column A we created.

Now select the range starting in cell A1, right to the end of your
data, and down to the last entry we created in column A, and sort by
column A.

You should now have a blank row (multiple of 6 in column A) after every
5 rows.

You can now delete column A.


--
RonnieD
------------------------------------------------------------------------
RonnieD's Profile: http://www.excelforum.com/member.php...o&userid=35736
View this thread: http://www.excelforum.com/showthread...hreadid=554552

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
RonnieD
 
Posts: n/a
Default Rows Insertion


Before doing the sort on column A, copy column A, and post it back on
column A "as values".


--
RonnieD
------------------------------------------------------------------------
RonnieD's Profile: http://www.excelforum.com/member.php...o&userid=35736
View this thread: http://www.excelforum.com/showthread...hreadid=554552

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Rows Insertion


Is there an easy way to convert this solution to insert 25 blank rows
after every 1 row of data?

~Courtney


--
CAToso
------------------------------------------------------------------------
CAToso's Profile: http://www.excelforum.com/member.php...o&userid=15069
View this thread: http://www.excelforum.com/showthread...hreadid=554552

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
auto expand rows [email protected] Excel Worksheet Functions 3 December 14th 05 07:45 AM
Rows & Columns in Excel seadragon69 Excel Worksheet Functions 2 December 7th 05 05:54 PM
Automatically inserting rows ausdiver99 Excel Worksheet Functions 1 June 2nd 05 02:15 PM
Hiding Rows if the linked rows are blank KG Excel Discussion (Misc queries) 9 May 18th 05 02:32 AM
flexible paste rows function that inserts the right number of rows marika1981 Excel Discussion (Misc queries) 1 February 18th 05 02:40 AM


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