SUMIF Not Blank (Table of Contents)
SUMIF Not Blank
There are times when we have a dataset that contains blank inputs, however, have a corresponding value assigned to it. In such cases, we may want to exclude the cells that contain blank inputs and do the sum total. In such cases, use criteria of SUMIF “Not Blank”. An example could be to know the total number of Passengers and exclude blank names criteria.
Examples of Not Blank in SUMIF Function
Here we look at the Examples of using Not Blank in SUMIF Function:
Example #1 – SUMIF Not Blank
Below set of data contains certain blanks in range criteria and suppose we still want to know the Total No. of passengers:
Here now, Criteria Range conditions completely change for both at by City and by Month. Important to note the condition which we put here in the syntax for Criteria
- “<>” -> Indicates NOT EQUAL TO sign and it has to be out in double inverted commas as the formula processes it as characters. When we use this, the formula sums up all the values which are not blanks and ignores completely the blank cells while summation.
- “” -> Indicates Blanks. Double inverted comas with no characters in it, signifies equals to blank. When we use this, it sums up all the values containing blanks and ignores cells that contain some characters/ value in it.
For the ease of understanding, the final output of Table 1 and 2, refer below explanation:
Example 2 – Using Function Argument
- Select Cell F2(active cell), where we need SUMIF() value as shown below:
- Click on “Formulas” Tab and select “Math & Trig”.
- A drop-down appears with various mathematical functions, scroll down and click on “SUMIF”(Highlighted in Red)
- A dialog box appears as shown below and next steps would be to input corresponding respective cell reference or values:
Here we will insert cell reference of City column in Range input, City name/ cell reference in Criteria input and No. of passengers in Sum_range.
- Go to “Range” section in dialog box, click in the blank space and select range starting from A2 and drag up-to A17 i.e. select all the row range in City column B. Then go to “Criteria” section and select the City cell reference, cell E2 and lastly similarly go to “Sum_range” section in Column C from C2 to C17.
Click on “OK” and we shall see the value in Cell E2.
Things to Remember
- SUMIF not blank has limited use unless that dataset contains blank rows in the criteria range.
This has been a guide to SUMIF Not Blank. Here we discuss how to add cells based on Blank / Not Blank Criteria using SUMIF along with practical examples and downloadable excel template. You may learn more about excel from the following articles –
- Sumif Text in Excel
- Excel Shortcut for SUM
- How to use SUMIF Between Two Dates
- Examples of COUNTIF
- Multiple Criteria SUMIF
- 35+ Courses
- 120+ Hours of Videos
- Full Lifetime Access
- Certificate of Completion
- Basic Excel Training
- Advanced Excel Training
- Basic & Advanced VBA Course
- Excel Dashboard Course
- Data Analysis in Excel
- Create VBA Applications