Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365. If you are using an earlier version (Excel 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Excel, click here: Deleting Every X Rows without a Macro.
Written by Allen Wyatt (last updated April 4, 2024)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365
When working with data retrieved from another source—such as another user or from an external program—you may have a need to remove certain rows from the data. It is not unusual, for instance, to have the need to remove every third row or every fifth row. The following general steps allow you to delete every X rows without using a macro.
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (6123) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365. You can find a version of this tip for the older menu interface of Excel here: Deleting Every X Rows without a Macro.
Professional Development Guidance! Four world-class developers offer start-to-finish guidance for building powerful, robust, and secure applications with Excel. The authors show how to consistently make the right design decisions and make the most of Excel's powerful features. Check out Professional Excel Development today!
Need to insert rows in your worksheet? Excel provides a few techniques you can use to do this. Here are some ideas you ...
Discover MoreFREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
2020-06-22 12:36:52
Neil
I see a pattern like 1,2,3,1,2,3 CAN be auto-populated if it is formatted as text before being entered.
2020-06-22 12:18:47
Neil
nevermind, autofill won't work that way. That's pretty dumb of excel not to be able to detect a pattern like that.
2020-06-22 12:12:52
Neil
Or, you could just use one helper column and put, in this case, 1,2,3,1,2,3 and autofill the rest of the way down and then filter for the number 3 and delete those rows.
2020-06-20 14:10:52
Frank Moore
Wow. This is another great tip. I frequently have this problem when I import a CSV file. Thank you very much.
Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2024 Sharon Parq Associates, Inc.
Comments