Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • Excel Pie Chart
  • How to Create Area Chart in Excel
  • How to Create One and Two Variable Data Tables in Excel
  • How to calculate current stock or inventory in Excel
  • How to create dynamic reference table name in Excel

References

  • Last row number in range
  • Excel Advanced Lookup using Index and Match Functions
  • Create hyperlink with VLOOKUP in Excel
  • How to use Excel MATCH Function
  • How to get last column number in range in Excel

Data Validations

  • Excel Data validation no punctuation
  • Excel Data validation with conditional list
  • Excel Data validation must contain specific text
  • Excel Data validation whole percentage only
  • Prevent invalid data entering in specific cells

Sum if not blank in Excel

by

This tutorial shows how to Sum if not blank in Excel using the example below;

Formula

=SUMIF(range,"<>",sum_range)

Explanation

To sum cells when certain values are not blank, you can use the SUMIF function.

In the example shown, cell G6 contains this formula:

=SUMIF(C5:C11,"<>",D5:D11)

This formula sums the amounts in column D only when the value in column C is not blank

How the formula works

The SUMIF function supports all of the standard Excel operators, including not-equal-to, which is input as <>.

When you use an operator in the criteria for a function like SUMIF, you need to enclose it in double quotes (“”). When you use only “<>” in a criteria, you can think of the meaning as “not equal to empty”, or “not empty”.

Alternative with SUMIFS

You can also use the SUMIFS function sum if cells are not blank. SUMIFS can handle multiple criteria, and the order of the arguments is different from SUMIF. This SUMIFs formula is equivalent to the SUMIF formula above:

=SUMIFS(D5:D11, C5:C11,"<>")

With SUMIFs, the sum range always comes first.

Post navigation

Previous Post:

How to use Excel CHOOSE Function

Next Post:

Customize Ribbon In Excel

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others

Logical Functions

  • IFS function: Description, Usage, Syntax, Examples and Explanation
  • Extract multiple matches into separate rows in Excel
  • How to use Excel AND Function
  • OR function Examples in Excel
  • SWITCH function: Description, Usage, Syntax, Examples and Explanation

Date Time

  • Get days, months, and years between dates in Excel
  • DATEVALUE function: Description, Usage, Syntax, Examples and Explanation
  • Two ways to sum time over 30 minutes in Excel
  • How to get number of days, weeks, months or years between two dates in Excel
  • How to calculate working days left in month in Excel

Grouping

  • Map text to numbers in Excel
  • How to randomly assign data to groups in Excel
  • Group times into unequal buckets in Excel
  • Running count group by n size in Excel
  • Calculate conditional mode with criteria in Excel

General

  • Using Existing Templates in Excel
  • Subtotal by color in Excel
  • Sum by group in Excel
  • How to calculate total from percentage in Excel
  • How to get Excel workbook path only
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning