Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default I want to delete certain rows based on specific criteria

I subtotaled a list of approx 19,000 values. I want to delete the previous
values, and leave only the subtotal lines behind. I am sure there is a
command line that allows us to do this, rather than cutting and pasting for
an hour and a half.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default I want to delete certain rows based on specific criteria

Alaphas,
You will need to distinguish the subtotal rows somehow, then create a FOR
NEXT Loop in VBA that will go through the Rows starting at the top towards
the bottom, looking for that distinguishing mark and deleting those rows that
do not have it.

Alex. A

"Alaphas" wrote:

I subtotaled a list of approx 19,000 values. I want to delete the previous
values, and leave only the subtotal lines behind. I am sure there is a
command line that allows us to do this, rather than cutting and pasting for
an hour and a half.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 983
Default I want to delete certain rows based on specific criteria

If it is 19000 rows I am guessing you used Data - Subtotals? If so then this
is not too bad. Colapse the subtotals to show only the rows you want to see.
Now you need to select only the visible cells to copy.

F5 - Special Cells - Visible Cells Only

Now Copy Ctrl + V

go to a new sheet and paste special - Values

HTH
Jim Thomlinson


"Alaphas" wrote:

I subtotaled a list of approx 19,000 values. I want to delete the previous
values, and leave only the subtotal lines behind. I am sure there is a
command line that allows us to do this, rather than cutting and pasting for
an hour and a half.

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 find and copy rows based on specific criteria? Georgew New Users to Excel 3 May 29th 09 11:07 AM
How can I delete rows programmatically based on certain criteria? nt_artagnian[_2_] New Users to Excel 2 March 8th 07 03:56 AM
Delete rows if specific criteria not met. SITCFanTN Excel Worksheet Functions 3 July 5th 06 12:20 AM
Delete rows based on criteria Chris_t_2k5 Excel Discussion (Misc queries) 2 April 11th 06 01:52 PM
Delete rows based on certain criteria Coal Miner Excel Discussion (Misc queries) 2 March 3rd 06 05:56 PM


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