Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Deleting every other row

On Friday, October 30, 2015 at 6:42:58 PM UTC-6, wrote:
On Tuesday, April 28, 1998 at 12:00:00 AM UTC-7, Paul T. Sindelar wrote:
Sorry to ask a question that has probably been answered one to many times...
but I need to delete every other row in a couple of different spreadsheets.
I'm hoping it can be done with a couple lines of code in a loop. I have
ruffly 62,000 rows to go through so the manual method is probably
inefficient.

Please advise,

-paul


If you don't want to do a macro, put =mod(row(),2) in a column on the rows you want to delete. Then sort by the column- it'll separate the rows you want to delete from the rest.


This worked beautifully. Thanks! Very simple.
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
Deleting Custom Views when Deleting Sheets ExcelMonkey Excel Programming 1 March 28th 07 06:11 AM
Deleting cell data without deleting formula Tom Hall Excel Discussion (Misc queries) 4 October 29th 06 05:07 PM
deleting values in a worksheet without deleting the formulas patti Excel Worksheet Functions 1 October 28th 05 09:49 PM
how prevent formula in cell from deleting when deleting value???? sh-boom New Users to Excel 1 September 30th 05 06:12 PM
Deleting Hyphens or Dashes from multiple cells without deleting the remaining content rmaloy Excel Programming 5 February 9th 04 02:59 AM


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