Delete Rows in Excel: The Complete Guide to Removing Single, Multiple, Blank, and Duplicate Rows in 2026

Learn how to delete rows in Excel fast — single rows, multiple rows, blank rows, and duplicates using shortcuts, filters, VBA, and Power Query.

Microsoft ExcelBy Katherine LeeMay 21, 202619 min read
Delete Rows in Excel: The Complete Guide to Removing Single, Multiple, Blank, and Duplicate Rows in 2026

Learning how to delete rows in Excel is one of those everyday spreadsheet skills that separates fluent users from frustrated ones. Whether you are cleaning a sales export, removing blank gaps from a survey, deduplicating a contact list, or trimming a budget tracker, the ability to remove rows quickly and accurately keeps your data tidy and your formulas working. This guide walks through every reliable method, from the right-click menu and keyboard shortcuts to filters, Go To Special, VBA macros, and Power Query for repeatable cleanup workflows.

The reason this topic matters so much is that messy rows quietly break analysis. Empty rows interrupt sort and filter ranges, duplicate rows inflate counts, and stray header rows confuse pivot tables. A single accidental row deletion in the middle of a linked workbook can ripple across dozens of dependent cells. Understanding the right method for each situation — and knowing how to undo a mistake — turns row deletion from a risky chore into a precise editing skill you can use confidently in any spreadsheet.

Excel offers at least eight distinct ways to delete rows, and each has trade-offs. The standard right-click delete shifts surrounding cells up, while pressing Delete on the keyboard merely clears contents without removing the row structure. Filtering visible rows lets you remove thousands of records matching a condition in seconds, and the remove duplicates excel feature collapses identical entries with a click. For recurring cleanup, Power Query records every step so your routine runs automatically on next month's file.

Beginners often confuse deleting rows with hiding them, or with clearing contents. Hidden rows still exist and still affect ranges, sums, and references. Cleared cells leave empty rows behind that throw off COUNTA and filter logic. True deletion physically removes the row from the worksheet, shifts everything below up by one, and renumbers the rows. This distinction becomes critical when you are using vlookup excel formulas that depend on stable lookup ranges or absolute references that must not break when rows shift.

The fastest single-row delete is the keyboard shortcut Ctrl + minus (-) after selecting the row header. The fastest multi-row delete is selecting multiple row numbers with Shift + click and pressing the same shortcut. The smartest blank-row delete uses F5 → Special → Blanks → Ctrl + minus. The safest duplicate-row delete starts with a backup copy of the sheet because the operation cannot be partially undone after a save. Each of these workflows is covered in detail in the sections below.

This guide assumes you are using Excel for Microsoft 365 or Excel 2021 on Windows or Mac, but every method also works in Excel 2016 and 2019. Web-based Excel (Office Online) supports most row deletion methods except advanced VBA macros and Power Query refresh schedules. Mobile Excel on iPad and Android supports basic right-click delete only. We will flag any version-specific quirks as they arise so you never get stuck staring at a missing menu option.

By the end of this article you will know which method to reach for in every situation, how to avoid the four most common mistakes that corrupt data during row deletion, and how to build a reusable cleanup macro that turns a 20-minute weekly task into a one-click operation. Bookmark this page — it is the only row deletion reference you will need.

Delete Rows in Excel by the Numbers

⏱️0.4 secCtrl + Minus ShortcutFastest single-row delete
📊1,048,576Max Rows Per SheetExcel 2007+ row limit
🔄100 levelsUndo HistoryReverse accidental deletes
🧹8 methodsWays to Delete RowsCovered in this guide
⚠️67%User Error RateFirst-time blank-row cleanup attempts
Microsoft Excel - Microsoft Excel certification study resource

Eight Methods to Delete Rows in Excel at a Glance

🖱️Right-Click Menu

Select the row header, right-click, and choose Delete. The most discoverable method for beginners and works identically across Windows, Mac, and web Excel.

⌨️Keyboard Shortcut

Press Ctrl + minus (Cmd + minus on Mac) after selecting one or more row headers. Fastest method for power users handling repetitive cleanup.

📋Home Ribbon Delete

Go to Home tab, click the Delete dropdown, and pick Delete Sheet Rows. Useful when you have a selection that spans only part of a row.

🔍Filter + Delete Visible

Apply a filter, select visible rows matching your condition, then delete. Removes thousands of records in seconds based on column criteria.

Go To Special Blanks

Press F5, choose Special, then Blanks. Selects every empty cell in a range so you can delete those rows in a single shortcut.

🔄Remove Duplicates

Data tab → Remove Duplicates. Built-in tool that compares selected columns and deletes any row that matches an earlier row exactly.

The simplest way to delete a single row in Excel is to click the row number on the left edge of the worksheet, which highlights the entire row, and then press Ctrl + minus on Windows or Cmd + minus on Mac. The row vanishes immediately and every row below shifts up by one. If you prefer the mouse, right-click the row number and choose Delete from the context menu. Both methods perform identically, and both are safer than pressing the Delete key, which only clears cell contents while leaving an empty row behind.

To delete multiple contiguous rows, click the first row number, hold Shift, and click the last row number in the range. Excel highlights every row between them. Press Ctrl + minus and the entire block disappears in one step. This approach scales beautifully — you can delete five rows or five hundred with the same two clicks and one shortcut. For non-contiguous rows, hold Ctrl while clicking each row number individually, then use the same delete shortcut to remove them all simultaneously.

If your selection covers only part of a row — say, three cells in the middle of row 12 — pressing Ctrl + minus opens a dialog asking whether to shift cells up, shift cells left, delete the entire row, or delete the entire column. Choose Entire Row to remove all 16,384 cells in that row. This dialog is your friend; it prevents accidental partial deletes that would shift surrounding data and break adjacent tables. Take a second to read it before clicking OK, especially in workbooks with multiple side-by-side tables on one sheet.

The Home ribbon offers a slightly slower but more visual route. Click Home, then look for the Cells group, then the Delete dropdown arrow. Pick Delete Sheet Rows to remove every row that overlaps your selection. This is useful when teaching Excel to someone new because every step is labeled, and when you need to know how to freeze a row in excel later, the same ribbon layout helps you find the View tab. Beginners benefit from clicking through menus once or twice before committing the shortcut to muscle memory.

Power users often combine row deletion with named ranges and Excel tables. When your data is formatted as a Table (Ctrl + T), deleting a row inside the table only shifts table rows up, never affecting data outside the table boundary. This is enormously safer in workbooks with multiple side-by-side data sets. Right-click any cell in the table, choose Delete, then Table Rows, and only the row within the table disappears. Adjacent regions, totals, and notes on other parts of the sheet remain untouched.

Mac users should note that Cmd + minus is the equivalent shortcut, but on some keyboards the minus key requires the function modifier. If the shortcut does not respond, check System Settings → Keyboard for conflicting global shortcuts. Web-based Excel uses Ctrl + minus on Windows browsers and Cmd + minus on Safari, with one limitation: you cannot delete more than one thousand rows at once in the web version. For larger jobs, open the workbook in the desktop app or split the deletion into smaller batches.

Finally, remember that every row deletion is undoable with Ctrl + Z (Cmd + Z on Mac) as long as you have not saved and closed the workbook. Excel retains up to 100 undo steps by default, so even a series of accidental deletes can be unwound. Once the file is saved and closed, however, the undo stack is cleared. Build a habit of duplicating the worksheet (right-click tab → Move or Copy → Create a Copy) before any large deletion run to guarantee a recoverable backup.

FREE Excel Basic and Advance Questions and Answers

Test foundational Excel skills including row deletion, formatting, and core formulas with instant feedback.

FREE Excel Formulas Questions and Answers

Practice questions covering SUM, VLOOKUP, IF, and range references affected by deleted rows.

Remove Duplicates Excel, Blank Rows, and Filtered Rows

The fastest way to delete every blank row in a dataset is the Go To Special trick. Select the column most likely to be empty in unwanted rows, press F5 or Ctrl + G, click Special, choose Blanks, and click OK. Excel highlights every empty cell in your selection. Now press Ctrl + minus, pick Entire Row in the dialog, and click OK. Every blank row vanishes in one step.

If your blank rows contain stray spaces or invisible characters, Go To Special will skip them because Excel sees them as non-empty. In that case, sort the column ascending first, which pushes truly empty rows to the bottom, then delete the bottom block manually. For large datasets, a TRIM helper column followed by a filter is more reliable than visual inspection. Always work on a copy of the sheet when cleaning up production data.

Excellence Playa Mujeres - Microsoft Excel certification study resource

Manual Row Deletion vs Power Query Cleanup: Which Should You Use?

Pros
  • +Manual deletion is instant for one-off cleanup jobs and needs no setup
  • +Right-click and shortcut methods work in every Excel version on every platform
  • +Undo (Ctrl + Z) reverses up to 100 accidental deletions in a session
  • +Filter + delete visible scales to tens of thousands of rows in seconds
  • +Remove Duplicates handles exact-match deduplication with one dialog
  • +Go To Special → Blanks deletes empty rows across an entire range at once
  • +Keyboard shortcuts feel natural after a week of daily use
Cons
  • Manual methods must be repeated every time you receive a new file
  • One wrong click can shift cells and silently break formulas elsewhere
  • Deletion cannot be undone once the workbook is saved and closed
  • Remove Duplicates keeps the first occurrence by default, not the most recent
  • Filter + delete fails if filtered ranges overlap merged cells
  • Web Excel limits batch deletions to roughly 1,000 rows at a time
  • No audit trail records what was deleted or when

FREE Excel Functions Questions and Answers

Sharpen knowledge of UNIQUE, FILTER, COUNTIF, and other functions that pair with row deletion.

FREE Excel MCQ Questions and Answers

Multiple-choice questions covering data cleanup, deletion methods, and spreadsheet best practices.

Pre-Deletion Safety Checklist Before You Delete Rows in Excel

  • Duplicate the worksheet with right-click → Move or Copy → Create a Copy
  • Save a backup copy of the workbook with a dated filename
  • Check for hidden rows that may be included in your selection
  • Verify no merged cells span the rows you plan to delete
  • Confirm formulas in other sheets do not reference the rows being removed
  • Disable shared workbook mode if collaborating in real time
  • Convert ranges to Excel Tables (Ctrl + T) for safer in-table deletion
  • Test your deletion method on a sample of 5-10 rows first
  • Document the cleanup steps if this is a recurring task
  • Press Ctrl + S only after visually confirming the result looks correct

Always duplicate the sheet before deleting more than 50 rows

A duplicated sheet costs nothing and saves hours of recovery work. Right-click any tab, choose Move or Copy, tick Create a Copy, and click OK. If your deletion goes wrong, drag the original copy back into position and you have lost nothing. Professional analysts treat this as a non-negotiable habit, especially on workbooks shared with clients or finance teams.

When you delete the same kind of rows every week from a recurring report, manual methods become tedious and error-prone. This is where VBA macros and Power Query shine. A simple macro can scan an entire column for empty cells and delete the corresponding rows in a fraction of a second, even across hundreds of thousands of rows. Recording the macro once and assigning it to a keyboard shortcut transforms a five-minute chore into a single keystroke. The Developer tab houses the macro recorder; enable it via File → Options → Customize Ribbon.

A typical row-deletion macro loops through a target range and removes any row whose key column is blank. The code uses the EntireRow.Delete property and a backwards loop (from the last row up to the first) to avoid skipping rows as the worksheet shifts. Backward iteration is critical — looping forwards causes Excel to skip alternating rows because deletion changes the row index of every cell below the current pointer. Most beginner macros fail for exactly this reason, leaving half the blanks intact.

Power Query offers a no-code alternative that is even more powerful for recurring cleanup. Load your data into Power Query (Data → From Table/Range), then use the Remove Rows menu to drop blanks, duplicates, top rows, bottom rows, or rows matching a filter. Every step is recorded as an editable transformation. Next month, when a new file arrives, refresh the query and the same cleanup runs automatically on the new data. This is dramatically more reliable than manual cleanup and creates a self-documenting audit trail.

The Power Query Remove Duplicates feature is also smarter than the worksheet version. It respects case sensitivity, handles leading and trailing spaces predictably, and can deduplicate across multiple keys with explicit column selection. When combined with Group By transformations, you can keep the most recent record per customer instead of the first, which is the standard worksheet behavior. Power Query is bundled free with Excel 2016 and later and lives on the Data tab under Get & Transform.

For one-off advanced cleanup, the FILTER and UNIQUE functions in Excel 365 give you a formula-based approach that never touches the source data. Write =FILTER(A2:D1000, B2:B1000<>"") in an empty area to return only rows where column B is non-blank. This is non-destructive and updates dynamically as the source changes. Pair it with SORT and UNIQUE for a one-formula data-cleansing pipeline that requires no manual deletion at all.

Macros and Power Query both interact with absolute and relative cell references differently than manual deletion. A macro that uses ActiveCell relies on whatever cell is selected when the macro runs, which can produce inconsistent results. Always start macros with explicit range references like Sheet1.Range("A1") to avoid surprises. Power Query queries reference named tables, so renaming a source table breaks the query — choose stable table names from the start and document them in a hidden setup sheet for future maintenance.

When deciding between macros and Power Query, ask whether the cleanup is logic-heavy (use VBA) or transformation-heavy (use Power Query). VBA wins for conditional logic spanning multiple sheets, popup prompts, and integration with Outlook or other apps. Power Query wins for repeatable data shape changes, joining tables, and unpivoting wide data. Many real-world workflows use both: Power Query loads and shapes the data, then a small macro applies final business rules and saves the result.

Excel Spreadsheet - Microsoft Excel certification study resource

Even experienced Excel users make predictable mistakes when deleting rows, and most of these errors stem from misunderstanding how Excel handles cell references when rows shift. The most common mistake is deleting rows that are referenced by formulas elsewhere in the workbook. When you delete a row containing cell A5 and another sheet has a formula like =Sheet1!A5, that formula will return a #REF! error after the deletion. Always use the Inquire add-in or Find & Replace (Ctrl + H) to search for references to your target rows before pulling the trigger.

The second common mistake is using the Delete key on the keyboard instead of Ctrl + minus. The Delete key clears cell contents but leaves the empty row in place, which often goes unnoticed until pivot tables show ghost categories or formulas like COUNTA return inflated counts. If you intended to delete the row and only its contents disappear, you used the wrong key. The correct shortcut for actual row deletion is Ctrl + minus on Windows or Cmd + minus on Mac, applied after selecting the entire row.

A third trap involves merged cells. If even one cell in your selection is part of a merged region that extends beyond your selection, Excel will refuse to delete the row and display a confusing error. Unmerge all cells in your dataset before bulk deletion by selecting the whole range, then Home → Merge & Center → Unmerge Cells. Merged cells also break sort, filter, and many lookup formulas, so removing them improves overall workbook health beyond just deletion. Many Excel professionals treat merged cells as an antipattern in raw data ranges.

Mistake four is using how to merge cells in excel techniques on header rows and then forgetting that those headers will fight back during row deletion. Headers should use Center Across Selection formatting instead of true merging — it looks identical but does not break selections. To apply it, select the range, press Ctrl + 1, go to Alignment, and choose Center Across Selection from the Horizontal dropdown. Your headers look merged but behave like normal cells during deletion and sorting.

The fifth mistake is forgetting that filtered views hide rows rather than removing them. Pressing Ctrl + A in a filtered range selects only visible rows, but a Delete operation in some contexts can still affect hidden rows depending on Excel version and operation type. Always confirm by clearing the filter immediately after deletion and visually scanning for unexpected data loss. If something is missing, Ctrl + Z to undo and try again with a more explicit selection method like Go To Special → Visible Cells Only.

A subtle but dangerous mistake is deleting rows in a workbook with active external links or Power Query refreshes. The refresh can run mid-deletion if scheduled, restoring rows you just removed or worse, mixing old and new data. Disable refresh during cleanup via Data → Queries & Connections → Properties → uncheck Refresh Data When Opening File. Re-enable it once your cleanup is complete and verified. This same caution applies to workbooks linked to SharePoint lists or Dataverse tables where syncing is automatic.

Finally, never delete rows in a workbook that other users have open in shared mode. Modern Excel co-authoring usually handles conflicts gracefully, but legacy shared workbooks (the old shared-mode feature) can corrupt when multiple users delete rows simultaneously. Coordinate with collaborators, use track changes, or work on a personal copy that gets merged back manually. For mission-critical financial models, schedule cleanup operations during off-hours and notify the team before making structural changes that could affect downstream consumers.

Putting all of this knowledge into a repeatable practical workflow is what separates occasional Excel users from confident analysts. Start every cleanup session by opening the source file, immediately saving a copy with the suffix _backup_YYYYMMDD, and only then beginning your deletions. This single habit prevents 90% of catastrophic data loss incidents. Save the backup to a dated archive folder so you build up a recoverable history without thinking about it. Cloud-stored files on OneDrive or SharePoint give you automatic version history as an additional safety net.

Second, develop a personal cheat sheet of the three shortcuts you use most: Ctrl + minus to delete, Ctrl + Z to undo, and F5 → Special → Blanks for blank-row cleanup. Memorize them through daily repetition until your fingers move without thinking. The productivity difference between mouse-driven menu navigation and shortcut-driven workflow is roughly 4x for repetitive tasks. Over a year of regular Excel use, that compounds into dozens of recovered hours and noticeably less wrist fatigue.

Third, learn to recognize when manual deletion is the wrong tool. If you find yourself deleting the same rows from a similar file every Monday morning, that is a Power Query candidate. If you are deleting rows based on complex conditions across multiple columns, consider a FILTER formula in a separate sheet rather than destructive deletion. The mantra is: prefer non-destructive transformations whenever possible, and use deletion only when you genuinely need a smaller worksheet.

Fourth, build a personal macro library. Even one well-tested DeleteBlankRows macro saved in your Personal Macro Workbook (PERSONAL.XLSB) will pay dividends for years. Add new macros incrementally as you encounter recurring cleanup patterns. Comment your code generously so future-you can understand what each block does. Version control your macro workbook by committing it to a private Git repository or simply copying it to a dated backup folder monthly.

Fifth, validate your results after every cleanup. Run quick sanity checks: does the row count look right? Do totals at the bottom of the sheet still match the expected sum? Are pivot tables refreshing without errors? Spot-check a few records to confirm the data is what you expect. A two-minute validation pass at the end of every cleanup session catches errors before they reach stakeholders, protecting your credibility as a careful analyst.

Sixth, practice the underlying Excel skills regularly. Functions like COUNTIF, COUNTBLANK, and SUMPRODUCT help you audit data before and after deletion. Conditional formatting can highlight duplicates visually without destroying anything. Excel Tables convert ranges into managed structures where row operations are safer and cleaner. Together these skills compound into spreadsheet fluency that makes complex cleanup feel routine. Online practice quizzes are an efficient way to stay sharp between real-world projects.

Finally, document your cleanup standards in a personal or team SOP. Write down the file naming convention, the backup procedure, the validation steps, and the order in which deletion methods should be tried. Share it with new team members. A short, well-followed standard is worth more than a 50-page manual that no one reads. Iterate the document as you discover edge cases, and treat it as a living artifact of your spreadsheet craft.

FREE Excel Questions and Answers

Comprehensive Excel practice test covering deletion, formulas, formatting, and certification-level topics.

FREE Excel Trivia Questions and Answers

Fun Excel trivia covering shortcuts, history, and lesser-known features to round out your skills.

Excel Questions and Answers

About the Author

Katherine LeeMBA, CPA, PHR, PMP

Business Consultant & Professional Certification Advisor

Wharton School, University of Pennsylvania

Katherine Lee earned her MBA from the Wharton School at the University of Pennsylvania and holds CPA, PHR, and PMP certifications. With a background spanning corporate finance, human resources, and project management, she has coached professionals preparing for CPA, CMA, PHR/SPHR, PMP, and financial services licensing exams.