Fast way to delete rows ( based on value )

spcalan

Well-known Member
Joined
Jun 4, 2008
Messages
1,247
I am trying to pull specific data from a 'master' datasheet. - 4k rows.

Here are my options:
1. copy/paste over entire 4k rows then delete each row that doesn't meet the 'requirement' - trying to filter ( without a real filter ) based on customer name. this seems to be a very sloooww way to do this.

2. verify each of the 4k rows and IF the requirement is met, copy the needed columns over to new sheet. Still pretty slow.

3. Could create a 'temp' pivot table and then just copy/paste the 'filtered' data over.


I am thinking about going with # 1 or # 3, but is there an easier way to delete certain rows ( without verifying 1 at a time ? ).

Ideas?
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
AutoFilter is very quick. If you have a complex criteria you can use a formula in a spare column that returns TRUE/FALSE and AutoFilter on that column.
 
Upvote 0
Apply the filter criteria and then simly copy and paste to new worksheet.

The paste will only paste unfiltered rows.


Post back if you need to do it using VBA.

Obiron
 
Upvote 0
I may go the filter route ( Obiron ).

I will need to use some vba to do the fiter on the original datasheet, then some vba to copy/paste over into a new one.

Seems the fastest way.
 
Upvote 0

Forum statistics

Threads
1,224,603
Messages
6,179,853
Members
452,948
Latest member
UsmanAli786

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top