LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Deleting rows based on number of characters


catalfamo1220 Wrote:
Thanks Scott, but I need something that will delete the rows
automatically as I have +9000 rows of data. I might be misinterpreting
but it seems this only displays the number of characters.

Mike


What I said before should display the number of characters on each
line. You just sort by that, and then you do one delete to get rid of
everything you don't want (since they will all be contiguous rows).

Alternatively, instead of sorting, you can do an AutoFilter on that
column (the one with the lengths) with custom criteria to show all rows
that have total length less than your threshold, and delete those. This
method will preserve the order.

After either of these two, just delete the first column and you should
be back to normal without the rows you don't want.

And if you want it really automatic, you'll have to write a macro to do
it for you.

For the macro, you'd be best to loop through all the rows from last to
first and delete the lines one by one. (First to last introduces extra
complications)

Scott


--
Maistrye
------------------------------------------------------------------------
Maistrye's Profile: http://www.excelforum.com/member.php...o&userid=36078
View this thread: http://www.excelforum.com/showthread...hreadid=563373

 
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
Insert rows based on specific value bob Excel Worksheet Functions 6 February 29th 08 07:11 PM
Selecting rows based on criteria JCP Excel Discussion (Misc queries) 3 April 5th 06 09:26 AM
Insert a number of rows based on a value in a cell on active row iRocco Excel Discussion (Misc queries) 1 August 11th 05 06:18 AM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM
Count rows based on multiple criteria Murph Excel Worksheet Functions 1 October 28th 04 07:13 AM


All times are GMT +1. The time now is 03:50 PM.

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"