Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default How do I delete alternating rows in excel

I have over 5,000 rows of data. I only need the odd number rows (1,3,5) and
need to delete the even rows. Is there a faster way then hold CTRL and
clicking on even number rows and then deleting? How can select all the even
number of rows and then delete all?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default How do I delete alternating rows in excel

gump wrote:
I have over 5,000 rows of data. I only need the odd number rows (1,3,5) and
need to delete the even rows. Is there a faster way then hold CTRL and
clicking on even number rows and then deleting? How can select all the even
number of rows and then delete all?


Insert a column. Put =MOD(ROW(),2) in row 1 and copy down. Sort all of your
data by that column. Delete the appropriate rows. Delete the column.
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ken Ken is offline
external usenet poster
 
Posts: 207
Default How do I delete alternating rows in excel

gump

Put this formula in a spare column

=mod(row(),2)

copy it down all your relevant rows.

convert the formula to values (paste special values on top of the mod
formula)

sort by that column, the zeros will come to the top where they can all
be deleted at once

the other rows should still be in the same order as prior to the sort
since they are all 1's

Good luck

Ken
Norfolk, Va



On Jul 29, 3:41*pm, gump wrote:
I have over 5,000 rows of data. *I only need the odd number rows (1,3,5) and
need to delete the even rows. *Is there a faster way then hold CTRL and
clicking on even number rows and then deleting? *How can select all the even
number of rows and then delete all?


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default How do I delete alternating rows in excel

You have a couple of suggestions but they both ibvolve sorting.

Do you want to do that?

If not, in an adjacent column in cell 2 enter an X

In cell 4 enter an X

Select cell 2 to cell 5

Double-click to fill down.

AutoFilter for X and delete those rows.


Gord Dibben MS Excel MVP

On Wed, 29 Jul 2009 12:41:02 -0700, gump
wrote:

I have over 5,000 rows of data. I only need the odd number rows (1,3,5) and
need to delete the even rows. Is there a faster way then hold CTRL and
clicking on even number rows and then deleting? How can select all the even
number of rows and then delete all?


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 shade alternating rows in spreadsheet JasonH Excel Discussion (Misc queries) 7 October 30th 14 12:04 AM
Alternating Color Rows Gator Excel Discussion (Misc queries) 1 June 18th 08 05:42 PM
fill rows with alternating data ? [email protected] Excel Discussion (Misc queries) 1 January 10th 07 06:38 PM
shade alternating rows in excel Matt8301 Excel Discussion (Misc queries) 2 July 28th 05 08:54 PM
Alternating colors for rows jp Excel Discussion (Misc queries) 1 December 28th 04 09:00 PM


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