Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 989
Default Select non-consecutive cells for deletion

I am trying to filter a large range of cells in a column for several
different values. If the values exist, the entire row should be deleted.
The problem is, across many cells in the range, if each cells is evaluated
and deleted one by one, the process can be very slow. I want to figure a way
to some how select or store all the cells in the range first and then delete
them in one go. How/is this possible? (Note: Since there are a number of
values that trigger the deletion, I don't think autofiltering is an option)
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 56
Default Select non-consecutive cells for deletion

1. Select the column whose value will determine whether a row should be
deleted.
2. EditReplace to replace a value to be deleted by an unusual string, e.g.
"zzzzzzzzzz"
3. Repeat 2 until all the values to be deleted have been replaced by
zzzzzzzzzz.
4. Filter the rows with zzzzzzzzzz.
5. Delete all those rows.

"Mark" wrote in message
...
I am trying to filter a large range of cells in a column for several
different values. If the values exist, the entire row should be deleted.
The problem is, across many cells in the range, if each cells is evaluated
and deleted one by one, the process can be very slow. I want to figure a

way
to some how select or store all the cells in the range first and then

delete
them in one go. How/is this possible? (Note: Since there are a number of
values that trigger the deletion, I don't think autofiltering is an

option)


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Select non-consecutive cells for deletion


Have you turned off screen updating?
(Application.ScreenUpdating = false)

Szalapsk

--
TommySzalapsk
-----------------------------------------------------------------------
TommySzalapski's Profile: http://www.excelforum.com/member.php...fo&userid=2556
View this thread: http://www.excelforum.com/showthread.php?threadid=46647

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 989
Default Select non-consecutive cells for deletion

That's a unique solution that seems like it should fit my situation quite well.

"Shatin" wrote:

1. Select the column whose value will determine whether a row should be
deleted.
2. EditReplace to replace a value to be deleted by an unusual string, e.g.
"zzzzzzzzzz"
3. Repeat 2 until all the values to be deleted have been replaced by
zzzzzzzzzz.
4. Filter the rows with zzzzzzzzzz.
5. Delete all those rows.

"Mark" wrote in message
...
I am trying to filter a large range of cells in a column for several
different values. If the values exist, the entire row should be deleted.
The problem is, across many cells in the range, if each cells is evaluated
and deleted one by one, the process can be very slow. I want to figure a

way
to some how select or store all the cells in the range first and then

delete
them in one go. How/is this possible? (Note: Since there are a number of
values that trigger the deletion, I don't think autofiltering is an

option)



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Select non-consecutive cells for deletion

You could even a modification of Shatin's suggestion...

Insert another column. Build a formula that returns true or false depending on
one of those values to be deleted is found in the cell of the same row.

Then filter on that.

But this depends on the type of data that should be deleted--and whether you can
find a pattern to make into a formula.

Mark wrote:

That's a unique solution that seems like it should fit my situation quite well.

"Shatin" wrote:

1. Select the column whose value will determine whether a row should be
deleted.
2. EditReplace to replace a value to be deleted by an unusual string, e.g.
"zzzzzzzzzz"
3. Repeat 2 until all the values to be deleted have been replaced by
zzzzzzzzzz.
4. Filter the rows with zzzzzzzzzz.
5. Delete all those rows.

"Mark" wrote in message
...
I am trying to filter a large range of cells in a column for several
different values. If the values exist, the entire row should be deleted.
The problem is, across many cells in the range, if each cells is evaluated
and deleted one by one, the process can be very slow. I want to figure a

way
to some how select or store all the cells in the range first and then

delete
them in one go. How/is this possible? (Note: Since there are a number of
values that trigger the deletion, I don't think autofiltering is an

option)




--

Dave Peterson
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
Deletion Of Cells DDD Excel Worksheet Functions 1 December 10th 08 01:19 AM
Auto Deletion of 4 consecutive rows out of every 5 scratching my head Excel Programming 1 June 1st 05 02:14 PM
Auto Deletion of 4 consecutive rows out of every 5 filo666 Excel Programming 0 May 31st 05 11:40 PM
Select non-consecutive rows dee Excel Discussion (Misc queries) 14 December 4th 04 08:45 PM
Select two consecutive rows Bruce Roberson Excel Programming 8 July 31st 03 03:06 PM


All times are GMT +1. The time now is 03:37 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"