04 Safest Methods How to Delete Blank Rows in Excel_1

04 Safest Methods: How to Delete Blank Rows in Excel?


A. CHALLENGES OF HOW TO DELETE BLANK ROWS IN EXCEL?

Every Excel user facing a big challenge, especially handling a big dataset, how to delete blank rows in Excel?

There are so many challenges explained below:

(01) It is a time-consuming factor to find, select and delete the blank rows manually one by one. 

(02) If we go through Excel Autofilter (Excel Shortcut: Alt+D+L), simply filter ‘Blanks’ and delete the row. But this will not give a correct result.

CHALLENGES OF HOW TO DELETE BLANK ROWS IN EXCEL_using AutoFilter_1

Because filter will work columnwise or vertically, few cells in a row may be blank, but the filter considered those rows as blanks. It is impossible to find out these types of cases one by one from a huge dataset. 

CHALLENGES OF HOW TO DELETE BLANK ROWS IN EXCEL_using AutoFilter_2

(03) If we go through Data Sort (Excel shortcut: Alt+D+S; sequentially press Alt, D, S), it is impossible to sort a number of columns from a big dataset. Because we don’t know which rows have blanks. Additionally, if there are a number of formulas in the dataset (such as nested IFs, COUNTIFS), after sorting they may not work perfectly. 

(04) If we go through directly ‘Go To Special‘ dialog box (press Ctrl+G or F5 ➪ Click ‘Special’) and then select Blanks which will select all the blank cells in the dataset.

CHALLENGES OF HOW TO DELETE BLANK ROWS IN EXCEL_using autofilter_1

If we delete all the blank cells blindly it will delete all the blank rows including partial blank rows.

CHALLENGES OF HOW TO DELETE BLANK ROWS IN EXCEL_using Paste Special Blanks option_2

■ Note: We had detail discussed on Excel shortcuts in separate two tutorials, suggested you read these tutorials: 

80+ Excel Shortcuts with ALT Key || Best Hotkey of Keyboard Shortcuts

90+ Best Excel CTRL Shortcuts | Useful Keyboard Shortcuts |

B. PROCEDURE OF HOW TO DELETE BLANK ROWS IN EXCEL?

We can delete blank rows in Excel using any of the following 03 methods:

(i) HOW TO DELETE BLANK ROWS IN EXCEL ➢ USING THE COUNTIFS FUNCTION

If we apply the COUNTIFS function to count the nonblank cells in a row. If the row becomes empty It returns zero (o). We filter out value zero and delete them.

• STEP 1: PLACE THE COUNIFS FUNCTION

We put a COUNTIFS function in a black cell just after the ending cell of the subject heading i.e., in the cell J2.

The Syntax for the COUNTIFS function is:

COUNTIFS Syntax

Place an equality sign (=) in cell J2 and type ‘coun…’, select COUNTIFS from the below suggestion list with the down Arrow key () and then press the Tab key on the keyboard. COUNTIFS syntax appears with an open parenthesis.

Note: the upper or lower case does not matter in syntax, Excel by default considers it in upper case.

The Complete formula is =COUNTIFS(A2:I2,“<>”&””)

A2:I2 = criteria_range1 which refers to the subject heading starting from A2 and ends till I2.

“<>”&”” = criteria1 which refers to non blanks.

The formula returns the result =9 which means there are 9 non-blank cells in the subject heading.

HOW TO DELETE BLANK ROWS IN EXCEL ➢ USING THE COUNTIFS FUNCTION_1

• STEP 2: EXTEND THE FORMULA TILL TO THE END OF THE RANGE

Copy (Ctrl+C) the cell J2 with formula and selects till to the end of the range.

Then press Alt+E+S+R (sequentially press Alt, E, S, R) or Alt+Ctrl+V+R (press Alt+Ctrl+V, then press R) which will select the ‘Formulas and number formats‘ in the Paste Special dialog box. Then press Enter or click OK.

As a result, the formula is copied to the selected range without cell formatting.

HOW TO DELETE BLANK ROWS IN EXCEL ➢ USING THE COUNTIFS FUNCTION_2

■ Note: We had detail discussed on Paste Special in a separate tutorial, suggested you read these tutorials: Paste Special in Excel Vs Break Link – Which one is Better?

• STEP 3: APPLY FILTER

It is best practice to apply the Excel AutoFilter by selecting the entire range with Shortcut Ctrl+A ➪ Then press Ctrl+Shift+L or Alt+D+F+F (press sequentially Alt, D, F, F) which will apply the AutoFilter.

HOW TO DELETE BLANK ROWS IN EXCEL ➢ USING THE COUNTIFS FUNCTION_3

Then open the filter on column J ➪ Press Alt+ Down arrow () which will open the filter list ➪ Uncheck all the checkboxes by clicking on the Select All checkbox ➪ Then select only zero (0) checkbox ➪ Finally, click OK. As a result, all the blank rows are selected.

HOW TO DELETE BLANK ROWS IN EXCEL ➢ USING THE COUNTIFS FUNCTION_4

■ Note: We had detail discussed on Excel Filter in a separate tutorial, suggested you read these tutorials: 04 Simple to Advanced Methods: How to Filter in Excel?

• STEP 4: DELETE BLANK ROWS 

Select the first blank row by Shift+Spacebar ➪ Then select rest blank rows by clicking Shift+ Down arrow () or Shift+Page Down ➪ Then Press Alt+; (semicolon) which will select the only visible cell (this step is mandatory for filtered items, sometimes it can be deleted unfiltered items also) ➪ Finally press Ctrl+- (minus) which will delete all the blank rows in Excel.

HOW TO DELETE BLANK ROWS IN EXCEL ➢ USING THE COUNTIFS FUNCTION_5

• STEP 5: REMOVE FILTER

After deleting blank rows in Excel, clear the filter by pressing Alt+A+C (sequentially press Alt, A, C) or press Alt+D+F+S (sequentially press Alt, D, F, S).

(ii) HOW TO DELETE BLANK ROWS IN EXCEL ➢ USING THE COUNTBLANK FUNCTION

If we apply the COUNTBLANK function, empty rows return the highest value. We filter out the highest value and delete them.

• STEP 1: PLACE THE COUNTBLANK FUNCTION

We put a COUNTIFS function in a black cell just after the ending cell of the subject heading i.e., in the cell J2.

The Syntax for the COUNTBLANK function is:

Syntax for the Countblank Function

Place an equality sign (=) in cell J2 and type ‘coun…’, select COUNTBLANK from the below suggestion list with the down Arrow key () and then press the Tab key on the keyboard. COUNTBLANK syntax appears with an open parenthesis.

■ Note: the upper or lower case does not matter in syntax, Excel by default considers it in upper case.

The Complete formula is =COUNTBLANK(A2:I2)

A2:I2 = criteria_range1 which refers to the subject heading starting from A2 and ends till I2.

The formula returns the result =0 which means there is no blank cell in the subject heading. If the formula returns the value 1 which indicates that there is a single blank cell in the selected range. Reasonably, the formula always returns the highest value against the blank rows.

HOW TO DELETE BLANK ROWS IN EXCEL ➢ USING THE COUNTBLANK FUNCTION_1

• STEP 2: EXTEND THE FORMULA TILL TO THE END OF THE RANGE

Copy (Ctrl+C) the cell J2 with formula and selects till to the end of the range.

Then press Alt+E+S+R (sequentially press Alt, E, S, R) or Alt+Ctrl+V+R (press Alt+Ctrl+V, then press R) which will select the ‘Formulas and number formats‘ in the Paste Special dialog box. Then press Enter or click OK.

As a result, the formula is copied to the selected range without cell formatting. Please notice that the formula returns the highest value in the case of blank rows and our target to filter out this highest value.

HOW TO DELETE BLANK ROWS IN EXCEL ➢ USING THE COUNTBLANK FUNCTION_2

• STEP 3: APPLY FILTER

It is best practice to apply the Excel AutoFilter by selecting the entire range with Shortcut Ctrl+A ➪ Then press Ctrl+Shift+L or Alt+D+F+F (press sequentially Alt, D, F, F) which will apply the AutoFilter.

HOW TO DELETE BLANK ROWS IN EXCEL ➢ USING THE COUNTBLANK FUNCTION_3

Then open the filter on column J ➪ Press Alt+ Down arrow () which will open the filter list ➪ Uncheck all the checkboxes by clicking on the Select All checkbox ➪ Then select only the highest value, in this case we only consider the highest number 9 and select this checkbox ➪ Finally, click OK. As a result, all the blank rows are selected.

■ Note: We had detail discussed on Excel Filter in a separate tutorial, suggested you read these tutorials: 04 Simple to Advanced Methods: How to Filter in Excel?

HOW TO DELETE BLANK ROWS IN EXCEL ➢ USING THE COUNTBLANK FUNCTION_4

• STEP 4: DELETE BLANK ROWS 

Select the first blank row by Shift+Spacebar ➪ Then select rest blank rows by clicking Shift+ Down arrow () or Shift+Page Down ➪ Then Press Alt+; (semicolon) which will select the only visible cell (this step is mandatory for filtered items, sometimes it can be deleted unfiltered items also) ➪ Finally press Ctrl+- (minus) which will delete all the blank rows in Excel.

HOW TO DELETE BLANK ROWS IN EXCEL ➢ USING THE COUNTBLANK FUNCTION_5

• STEP 5: REMOVE FILTER

After deleting blank rows in Excel, clear the filter by pressing Alt+A+C (sequentially press Alt, A, C) or press Alt+D+F+S (sequentially press Alt, D, F, S).

(iii) HOW TO DELETE BLANK ROWS IN EXCEL ➢ USING THE ‘GO TO SPECIAL’ BLANKS OPTION

If we want to use ‘Go To Special’ blanks option, then we use it tactfully. We always try to select that column which has no extra blank cells. Suppose, in the given example, we can select either column A or Coulmn B for this purpose, but we cannot select column C (cell C3 is blank) or Coulmn D (cell D12 is blank) because there are extra blank cells in the column range. 

HOW TO DELETE BLANK ROWS IN EXCEL ➢ USING THE 'GO TO SPECIAL' BLANKS OPTION_1

• STEP 1: SELECT A COLUMN

As explained, we can select a column which has no extra blank cell. In this case, we select column B either with Ctrl+Spacebar or by clicking on B located on the column address bar.

HOW TO DELETE BLANK ROWS IN EXCEL ➢ USING THE 'GO TO SPECIAL' BLANKS OPTION_3

■ Note: We had detail discussed on Selection of Cells, Columns and Rows in a separate tutorial, suggested you read these tutorials: 09 Points Help You How to Select Multiple Cells in Excel

• STEP 2: SELECT ‘BLANKS’ IN THE ‘GO TO SPECIAL’ DIALOG BOX

➢ After selecting the column, press Ctrl+G or press the F5 key which will open the Go To dialog box ➪ Then either press Alt+S (hold down the Alt key and then press S) or click on the Special button which will open the Go To Special dialog box.

HOW TO DELETE BLANK ROWS IN EXCEL ➢ USING THE 'GO TO SPECIAL' BLANKS OPTION_4

Equivalently,  Go to the Home tab ➪ Click Find & Select dropdown ➪ Select Go To Special which will open the Go To Special dialog box.HOW TO DELETE BLANK ROWS IN EXCEL ➢ USING THE 'GO TO SPECIAL' BLANKS OPTION_2

➢ In the Go To Special dialog box, select Blanks option either press only the ‘K‘ key or click on the Blanks radio button ➪ Finally, press Enter or click OK

HOW TO DELETE BLANK ROWS IN EXCEL ➢ USING THE 'GO TO SPECIAL' BLANKS OPTION_5

As a result, all the blank cells in column B are selected.

HOW TO DELETE BLANK ROWS IN EXCEL ➢ USING THE 'GO TO SPECIAL' BLANKS OPTION_6

• STEP 3: DELETE BLANK ROWS IN EXCEL

After selecting blank cells, press Ctrl+- (minus) which will open ‘Delete dialog box ➪ Choose any of the four options according to the requirement, but in this case we select ‘Entire row‘ radio button ➪ Click OK or press Enter.

HOW TO DELETE BLANK ROWS IN EXCEL ➢ USING THE 'GO TO SPECIAL' BLANKS OPTION_7

As a result, we can easily delete blank rows in Excel.

HOW TO DELETE BLANK ROWS IN EXCEL ➢ USING THE 'GO TO SPECIAL' BLANKS OPTION_8

(iv) HOW TO DELETE BLANK ROWS IN EXCEL ➢ USING THE ‘FIND AND REPLACE’ DIALOG BOX

We cannot apply the Find and Replace option in the entire worksheet, rather we used it in a specific column where does not have any extra blank cells.

• STEP 1: SELECT A COLUMN

As explained, we can select a column which has no extra blank cell. In this case, we select column B either with Ctrl+Spacebar or by clicking on B located on the column address bar. 

■ Note: We had detail discussed on Selection of Cells, Columns and Rows in a separate tutorial, suggested you read these tutorials: 09 Points Help You How to Select Multiple Cells in Excel

• STEP 2: SELECT BLANK CELLS WITH THE ‘FIND AND REPLACE’ DIALOG BOX

➢ After selecting the column, press Ctrl+F which will open the Find and Replace dialog box.

Equivalently,  Go to the Home tab ➪ Click Find & Select dropdown ➪ Select Find which will open the Find and Replace dialog box.

HOW TO DELETE BLANK ROWS IN EXCEL ➢ USING THE 'FIND AND REPLACE' DIALOG BOX_1

Find what input box leaves blank.

➢ Click the ‘Options’ button to explore the Advanced options.

⇒ Select Sheet from the drop-down list from Within option.

⇒ Select Values from the drop-down list from Look in option.

⇒ Select the Match entire cell contents checkbox.

➢ Finally, click Find All which will suggest all the blank cells in column B.

HOW TO DELETE BLANK ROWS IN EXCEL ➢ USING THE 'FIND AND REPLACE' DIALOG BOX_2

• STEP 3: SELECT AND DELETE ALL BLANK ROWS IN EXCEL

➢ Press Ctrl+A which will select all the blank cells and press Esc(ape) key to close the Find and Replace dialog box.  

HOW TO DELETE BLANK ROWS IN EXCEL ➢ USING THE 'FIND AND REPLACE' DIALOG BOX_3

➢ After selecting blank cells, press Ctrl+- (minus) which will open ‘Delete dialog box ➪ Choose any of the four options according to the requirement, but in this case we select ‘Entire row‘ radio button ➪ Click OK or press Enter.

As a result, we can easily delete blank rows in Excel.

HOW TO DELETE BLANK ROWS IN EXCEL ➢ USING THE 'FIND AND REPLACE' DIALOG BOX_4

If you would like to improve your academic and professional career as well, then the below courses help you a lot. Instead of Advanced Excel, a number of best courses suggested you through this platform that boosts your confidence and flies your career high.
AEF_192by192
Advance Excel Forum

Premium Courses on ed2go

excel 2019 series4&bids=739114

Microsoft Excel 2019/Office 365 Series

Bestseller
4.9/5
idd4&bids=739114

Introduction to Database Development (Self-Paced Tutorial)

Bestseller
4.9/5
advanced excel 20194&bids=739114

Advanced Microsoft Excel 2019/Office 365 (Self-Paced Tutorial)

Bestseller
4.9/5
comptia network4&bids=739114

CompTIA&reg; Network+ Certification Prep

High Rated
4.9/5
online microsoft office 2016 training4&bids=739114

Microsoft Office Specialist 2016 (MOS) Certification Training

Top Rated
4.7/5
Certified Six Sigma Yellow Black GES20324&bids=739114

Certified Six Sigma Yellow Belt and Green Belt (Exam Cost Included)

Bestseller
4.9/5
T9821 Managing Web Design Projects4&bids=739114

Managing Web Design Projects

Bestseller
4.9/5
4&bids=739114

Administrative Assistant Applications (Self-Paced Tutorial)

Bestseller
4.9/5
visual basic programming4&bids=739114

Visual Basic Series

Bestseller
4.9/5

Premium Courses on Coursera

Course 2 logo crop4&bids=759505

Data Analysis and Visualization

Bestseller
4.9/5
04 Fundamentals4&bids=759505

Excel Fundamentals for Data Analysis

Bestseller
4.9/5
04 Visualisation4&bids=759505

Data Visualization in Excel

Bestseller
4.9/5
044&bids=759505

Excel Skills for Business

Bestseller
4.9/5
Specialization Certificate Emblem AADS Final4&bids=759505

Advanced Data Science with IBM

Bestseller
4.9/5
Applied AI with Deep Learning4&bids=759505

Applied AI with Deep Learning

Bestseller
4.9/5
4&bids=759505

Introduction to Spreadsheets and Models

Bestseller
4.9/5
4&bids=759505

Accounting Analytics

Bestseller
4.9/5
GIES Icon B4&bids=759505

Accounting Data Analytics

Bestseller
4.9/5

Premium Courses on Udemy

1974808 0835 34&bids=507388

Master Excel Functions in Office 365 – Excel Dynamic Arrays (Learn to Use Excel’s NEW Functions (FILTER, UNIQUE, SORT, XLOOKUP.) to Dramatically Simplify the Work You Do in Excel.)

High Rated
4.9/5
2542943 541c 64&bids=507388

Excel Essentials for the Real World (Complete Excel Course) [Microsoft Excel Beginner to Professional. Includes Pivot Tables, Power Query, NEW Formulas. (Excel 365, 2019 & 2016)]

Bestseller
4.8/5
773214 f3b8 94&bids=507388

Advanced Excel – Top Excel Tips & Formulas (Master Advanced Excel Formulas. Solve Complex Problems. Learn Advanced Excel Skills to Save Time & Impress (Excel 2010)

Bestseller
4.6/5
419404 543b 44&bids=507388

Excel Power Query, Power Pivot, Power Map & DAX Masterclass (Learn Excel Power Query, PowerPivot, DAX, Power View & Power BI Tools. Build Excel Data Analyst Models with Excel 2019)

Bestseller
4.8/5
635882 8032 64&bids=507388

Beginners to Expert Excel and Excel VBA 38 Hours Mega Course (Learn Excel formulas, Pivot Tables, Excel VBA macros, charts and the basics with our Microsoft Excel 38+ hours tutorial)

Top rated
4.6/5
1420274 809e 34&bids=507388

Microsoft Power BI Masterclass – Expand Excellence (achieve the next Level of Business Intelligence with Microsoft Power BI Desktop. How to master Power BI Desktop)

Top Rated
4.7/5
164058 e914 24&bids=507388

The Ultimate Excel Programmer Course (Learn Excel VBA from Scratch with Dan Strong, Bestselling Excel Expert with Over 180K Students Worldwide!)

Bestseller
4.8/5
3614594 b3c5 34&bids=507388

Microsoft Excel Certification Exam Prep: MO-201 Excel Expert (Ace the Excel MO-201 Exam. Learn advanced data analysis & earn the Excel Expert Certification (MS Excel 2019/Office 365)

Bestseller
4.8/5
575434 0e4a 54&bids=507388

Excel Charts, Graphs & Data Visualization in Excel (Master 20+ Advanced Dynamic Excel Charts and Create Impressive Excel Graphs & Data Visualization in Microsoft Excel)

High Rated
4.8/5
Read-More-5

Thanks for your interest joining to Advance Excel Forum community.

Something went wrong.

Join Our Community List

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.


Like it? Share with your friends!

Share via

Join Our Community List

Community grow with You. * VERIFY & CONFIRM YOUR EMAIL *

Thanks for your interest joining to Advance Excel Forum community.

Fill the Correct Information.

Thanks for your interest joining to Advance Excel Forum community.

Something went wrong.

Join Our Community List

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

We use cookies to ensure that we give you the best experience on our website (by analyzing).  Please see our cookies page for further details or agree by clicking the 'Accept' button.

 

Cookie settings

Below you can choose which kind of cookies you allow on this website. Click on the "Save cookie settings" button to apply your choice.

FunctionalOur website uses functional cookies. These cookies are necessary to let our website work.

AnalyticalOur website uses analytical cookies to make it possible to analyze our website and optimize for the purpose of a.o. the usability.

Social mediaOur website places social media cookies to show you 3rd party content like YouTube and FaceBook. These cookies may track your personal data.

AdvertisingOur website places advertising cookies to show you 3rd party advertisements based on your interests. These cookies may track your personal data.

OtherOur website places 3rd party cookies from other 3rd party services which aren't Analytical, Social media or Advertising.