Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Wendy
 
Posts: n/a
Default Automatically inserting rows

Hello all,
I have a group of data in a worksheet. Is there a formula that I can use to
insert a blank row that separate data that are alike?
Here's my sample data:
PO/NO Quantity
1. 6135008885 10500
2. 6135008885 4284
3. 6135008885 3896
4. 6135008886 4320
5. 6135008886 3780
6. 6135008886 10500
7. 6135008887 10500
8. 6135008887 4032
9. 6135008887 3868

How can I insert a blank row between row's 3 and 4 and row's 6 and 7?

Help appreciated.

Cheers,

Wendy
  #2   Report Post  
Ruthki
 
Posts: n/a
Default


assuming you are not looking for something quite as simple as
higlighting the row below where you want the space and clicking on
Insert Row, you could maybe write an if statement that would compare
above and below and take the next row if different but what I would do,
for a quick result, is one of the following -

Either
use the data subtotals menu options which would not only break up your
data but also subtotal it (or average, or count etc)

Or
use the Data, Filter, Advanced filter options to do a unique extract of
the part numbers - apend this to the bottom of the list and then sort by
the whole part number column - the appended unique records create a
blank line for each part number - to make sure they always come at the
end put another helper column in (before you sort) for these appended
records and use that as the secondary sort.. If you want the line to
be completely blank then copy the part number into a helper column,
apend the unique records to the bottom, sort the column (remembering to
include all the other columns) and then delete the helper column.

R


--
Ruthki
------------------------------------------------------------------------
Ruthki's Profile: http://www.excelforum.com/member.php...o&userid=24503
View this thread: http://www.excelforum.com/showthread...hreadid=394215

  #3   Report Post  
Wendy
 
Posts: n/a
Default

Hello,

Data subtotal doesn't work for me as I have to save the file as txt file and
then import the data to an accounting system. That is why I need a blank row
between different PO no. So the system picks us the correct info for each PO.


I tried the advanced filter. Nothing happened. Maybe I am missing something
here. Would you mind walk me thru the steps by using the below data?

Thanks for your help.

Wendy

"Ruthki" wrote:


assuming you are not looking for something quite as simple as
higlighting the row below where you want the space and clicking on
Insert Row, you could maybe write an if statement that would compare
above and below and take the next row if different but what I would do,
for a quick result, is one of the following -

Either
use the data subtotals menu options which would not only break up your
data but also subtotal it (or average, or count etc)

Or
use the Data, Filter, Advanced filter options to do a unique extract of
the part numbers - apend this to the bottom of the list and then sort by
the whole part number column - the appended unique records create a
blank line for each part number - to make sure they always come at the
end put another helper column in (before you sort) for these appended
records and use that as the secondary sort.. If you want the line to
be completely blank then copy the part number into a helper column,
apend the unique records to the bottom, sort the column (remembering to
include all the other columns) and then delete the helper column.

R


--
Ruthki
------------------------------------------------------------------------
Ruthki's Profile: http://www.excelforum.com/member.php...o&userid=24503
View this thread: http://www.excelforum.com/showthread...hreadid=394215


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
inserting columns within certain rows only crimsonkng Excel Discussion (Misc queries) 4 July 14th 05 05:13 PM
Automatically inserting rows ausdiver99 Excel Worksheet Functions 1 June 2nd 05 02:15 PM
Inserting Rows w/formulas question Buckwheat Excel Worksheet Functions 4 May 7th 05 10:05 PM
inserting rows through external data source [email protected] Excel Discussion (Misc queries) 0 April 5th 05 03:16 AM
Inserting Multiple Rows with Formulas ShineboxNJ Excel Worksheet Functions 2 November 18th 04 02:30 AM


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