19
Feb
Filed under: Productivity Tools, Tips & Tricks
A colleague asked me how to delete every second row of data in an Excel spreadsheet that contains thousands of rows. Manual deletion in this case (holding the CTRL key on a PC) while selecting every second row would take too long.
A quick search turned up this tip in the Excel Forum.
- Insert a "helper" column to the left of the first column.
- Enter this formula: =mod(row(),2)
- Copy down the formula to the end of the data rows. A column with ones and zeros should appear.
- Use the Filter to filter all of the data and select the value that you don't want.
- Delete all the rows with that value.
- Clear the Filter.
- Delete the "helper" column.
Hope this helps someone!
Related posts:
Leave a Comment
When responding, please ensure that your remarks are reflective, relevant, courteous, and engaging. Refrain from offensive language, personal attacks, and distasteful comments or it will be deleted.
All comments will be reviewed before posting. Thank you for your cooperation!
RSS
Via Email