How to Ignore Blank Cells in Excel Sum (6 Methods)

Dataset Overview

To demonstrate these methods, we require a dataset containing blank cells.  This below dataset includes Sales information of an Apple outlet that contains some blank cells.

Dataset to Ignore Blank Cells in Excel Sum


Method 1 – Using SUM Function

  • Add a new column to your dataset where you want to calculate the Total Sales.

Adding Total Sales Column

  • In cell H5, enter the formula:

=SUM(D5:G5)

This function finds the summation of the given range (D5:G5), ignoring blank cells.

Assigning SUM Formula to Ignore Blank cells in Excel Sum

  • Press Enter.
  • Drag the formula down to copy the formula for all the cells.

Copying Formula in All Cells

  • The Total Sales for all Sales Reporters are populated.

Showing Result Ignoring Blank Cells in Excel Sum


Method 2 – Using SUMIF Function

  • In cell H5, enter:

=SUMIF(C5:G5,"<>")

This function sums numeric values in the range (C5:G5), while ignoring blank cells.

Inserting SUMIF Formula to Ignore Blank Cells in Excel Sum

  • Press Enter.
  • Drag the formula down to calculate Total Sales for all sellers.

Copying Formula in All Cells

  • We have ignored all the blank cells and calculated the Total Sales for all sellers.

Showing Result Ignoring Blank Cells in Excel Sum


Method 3 – Combination SUM & IFERROR

  • In cell H5, enter:

=SUM(IFERROR(C5:G5,""))

This formula ignores blank cells and returns the summation.

Inserting Combined Formula to Ignore Blank Cells in Excel Sum

  • Press Enter.
  • Drag the formula down to get Total Sales for all sellers.

Copying Formula in All Cells

  • We ignored all blank cells and got the Total Sales for all sellers.

Showing Result Ignoring Blank Cells in Excel Sum


Method 4 – Merging SUM, IF & ISERROR

  • In cell H5, enter:

=SUM(IF(ISERROR(C5:G5),"",C5:G5))

This formula ignores blank cells and calculates the Total Sales.

Inserting Merged Formula to Ignore Blank Cells in Excel Sum

  • Press Enter.
  • Drag the formula down to cover all sellers.

Copying the Merged Formula for All Cells

  • We have ignored all blank cells and calculated the Total Sales for all sellers.

Showing Result Ignoring Blank Cells in Excel Sum


Method 5 – Using AGGREGATE Function

  • In cell H5, enter:

=AGGREGATE(9,6,C5:G5)

This function ignores blank cells and computes the Total Sales.

Inserting Aggregate Formula to Ignore Blank Cells in Excel Sum

  • Press Enter.
  • Drag the formula down for all sellers.

Copying the Formula for All Cells

We have ignored all blank cells and calculated the Total Sales for every seller.

Showing Result Ignoring Blank Cells in Excel Sum


Method 6 – Finding Profit with the IF Function

  • Suppose you have a dataset with Cost Price (C) and Selling Price (D).

Dataset for Using IF Function to Ignore Blank Cells in Excel Sum

  • In cell H5, enter:

=IF(D5="","Not Sold",(D5-C5))

This formula calculates profit for sold items, showing Not Sold for unsold items.

Inserting IF Formula to Ignore Blank Cells in Excel Sum

  • Press Enter.
  • Drag the formula down to find profit for all items.

Copying the Formula for All Cells

  • We have calculated the Profit for all the sold items. For Banana and Coconut, it gives the statement Not Sold.

Showing Result Ignoring Blank Cells in Excel Sum


Practice Section

There is a Practice Section in the workbook where you can practice these methods.

Showing Practice Section


Download Practice Workbook

You can download the practice workbook from here:


Related Articles


<< Go Back to Sum in Excel | Calculate in Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Sourav Kundu
Sourav Kundu

Sourav Kundu, BSc, Naval Architecture & Marine Engineering, Bangladesh University of Engineering and Technology, is a dedicated technical content creator of the ExcelDemy project. He has a keen interest in Excel and he leverages his problem-solving skills to provide solutions on user interface with Excel. In his position as an Excel & VBA Content Developer at ExcelDemy, Sourav Kundu not only adeptly addresses challenging issues but also demonstrates enthusiasm and expertise in navigating complex situations. Apart from creating... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo