EDUCBA

EDUCBA

MENUMENU
  • Free Tutorials
  • Certification Courses
  • 120+ Courses All in One Bundle
  • Login
Home Excel Excel Resources Maths Function in Excel SUMIF Formula in Excel
Secondary Sidebar
Excel Functions
  • Excel Tips
    • Recover Document in Excel
    • Excel Shortcut to Select Row
    • Excel Header Row
    • Excel Insert Button
    • Excel Translate
    • Budget in Excel
    • KPI Dashboard in Excel
    • Blank Invoice Excel Template
    • Write Formula in Excel
    • Auditing Tools in Excel
    • Autofit Row Height in Excel
    • Formatting Text in Excel
    • Add Rows in Excel Shortcut
    • Divide Cell in Excel
    • Compare Two Columns in Excel for Matches
    • Excel Troubleshooting
    • Unprotect Excel Workbook
    • Subtract Date in Excel
    • Carriage Return in Excel
    • Negative Numbers in Excel
    • Worksheets in Excel
    • Excel Match Multiple Criteria
    • Exponential Moving Average Formula
    • Sentence Case in Excel
    • Excel Reverse Order
    • Excel Timesheet Template
    • Weighted Average in Excel
    • CTRL Shift-Enter in Excel
    • Excel Expense Tracker
    • INDEX MATCH Function in Excel
    • Percent Change in Excel
    • Drag and Drop in Excel
    • Shade Alternate Rows in Excel
    • Excel Database Template
    • Inverse Matrix in Excel
    • New Line in Excel Cell
    • Format Cells in Excel
    • Excel Text with Formula
    • Project Management Template in Excel
    • Vlookup vs Index Match
    • Embedded in Excel
    • Count Colored Cells in Excel
    • Excel Hacks
    • Column Header in Excel
    • Database Function in Excel
    • Excel Spell Check
    • Linear Interpolation in Excel
    • Convert Excel to CSV
    • Excel Not Responding
    • Delta Symbol in Excel
    • Excel Mortgage Calculator
    • Excel Show Formula
    • Break Links in Excel
    • VLOOKUP Examples in Excel
    • Alternate Row Color Excel
    • Checklist in Excel
    • Microsoft Office Tips
    • Excel vs Access
    • Excel Change Case
    • Count Characters in Excel
    • Formula Bar in Excel
    • Invoice Template in Excel
    • Find and Replace in Excel
    • PowerPivot in Excel
    • Wildcard in Excel
    • Line Break in Excel
    • NULL in Excel
    • Text Formula in Excel
    • Family Tree in Excel
    • Insert Calendar in Excel
    • Page Setup in Excel
    • Search For Text in Excel
    • Switching Columns in Excel
    • 3D Cell Reference in Excel
    • Roadmap Template in Excel
    • Cell References in Excel
    • Excel Automation
    • Matching Columns in Excel
    • Evaluate Formula in Excel
    • How to Find Mean in Excel
    • How to Add Cells in Excel
    • Project Timeline in Excel
    • TODAY Formula in Excel
    • Poisson Distribution in Excel
    • YEAR Formula in Excel
    • REPLACE Formula in Excel
    • Create Spreadsheet in Excel
    • SEARCH Formula in Excel
    • HYPERLINK Formula in Excel
    • Pivot Table with Multiple Sheets
    • COLUMNS Formula in Excel
    • DAY Formula in Excel
    • RIGHT Formula in Excel
    • INDIRECT Formula in Excel
    • Excel IRR Formula
    • Pivot Table Sort
    • OR Formula in Excel
    • Pivot Table Formula in Excel
    • How to Edit Drop Down List in Excel?
    • WEEKDAY Formula in Excel
    • Chart Wizard in Excel
    • Time Difference in Excel
    • Lookup Table in Excel
    • SUBTOTAL Formula in Excel
    • LOOKUP Formula in Excel
    • Themes in Excel
    • Group Worksheets in Excel
    • Excel ISNUMBER Formula
    • 3D Maps in Excel
    • VLOOKUP Tutorial in Excel
    • Moving Columns in Excel
    • Grouping Columns in Excel
    • Excel Formula of Percentage
    • Excel Leading Zeros
    • Timesheet in Excel
    • Nested IF Formula in Excel
    • SUMIF Formula in Excel
    • Concatenation in Excel
    • Excel Insert Page Break
    • LEN Formula in Excel
    • Insert Comment in Excel
    • Excel Print
    • Fractions in Excel
    • Excel Add a Column
    • Borders in Excel
    • Excel Sum by Color
    • Excel vs Google Sheets
    • Calculate Percentage Increase in Excel
    • Excel Format Phone Numbers
    • Excel Search Box
    • Excel vs CSV
    • Excel vs Numbers
    • Excel Concatenate Date
    • Excel Bullet Points
    • Calculate Compound Interest in Excel
    • Find External Links in Excel
    • Excel Comma Style
    • Excel Remove Leading Spaces
    • Combine First and Last Name in Excel
    • How to Calculate Ratio in Excel
    • SUMPRODUCT Function with Multiple Criteria
    • Create Excel Template
    • Excel Greater than or Equal
    • Excel Keyboard Shortcuts
    • Excel Row vs Excel Column
    • Excel Operators
    • Excel Text Compare
    • Excel Uppercase Function
    • Excel Auto Numbering
    • Watermark in Excel
    • Excel Delete Row Shortcut
    • Excel Word Count
    • Row Count in Excel
    • Excel Grade Formula
    • Excel Percentage Difference
    • Excel Rows and Columns
    • Excel Group
    • Excel Move Columns
    • Excel Row Height
    • Excel Sparklines
    • Excel Drawing a line
    • Multiple IFS in Excel
    • Excel Strikethrough
    • Numbering in Excel
    • Share Excel Workbook
    • Excel Shortcut For Merge Cells
    • Excel OneDrive
    • Excel Track changes
    • Excel Hide Formula
    • Excel Filter Shortcuts
    • Excel 3D Reference
    • Protect Excel Workbook
    • Excel Moving Averages
    • Excel Row Limit
    • Excel Absolute Value
    • Excel Print Area
    • Excel Format Painter
    • Excel Separate text
    • Excel Autofit
    • Excel Columns to Rows
    • Excel Paste Shortcut Option
    • Excel Rows to Columns
    • Excel Insert Row Shortcut
    • Excel Extensions
    • Excel Unmerge Cells
    • Divide in Excel Formula
    • Excel Compare Two Columns
    • Not Equal To Excel
    • Excel Remove Duplicates
    • Excel Remove Spaces
    • Excel Calculate Age
    • Copy Excel Sheet
    • Excel Conditional Formatting Based on Another Cell Value
    • Excel Cell Reference
    • Excel Split Cell
    • Excel Circular Reference
    • Highlight Every Other Row in Excel
    • Errors in Excel
    • Excel Delete Pivot Table
    • Excel Pivot Table
    • Subtraction in Excel
    • Count Unique Values in Excel
    • Excel Highlight Duplicates
    • Excel Data Formatting
    • Random Numbers in Excel
    • Page Numbers in Excel
    • Excel CAGR Formula
    • Excel Combine cells
    • IFERROR with VLOOKUP in Excel
    • Column Sort in Excel
    • Print Comments in Excel
    • Cheat Sheet of Excel Formulas
    • Remove Hyperlinks in Excel
    • Remove (Delete) Blank Rows in Excel
    • Relative Reference in Excel
    • Subscript in Excel
    • Superscript in Excel
    • Excel Insert Multiple Rows
    • Excel Absolute Reference
    • Unhide Columns in Excel
  • Excel Functions (12+)
  • Excel Tools (114+)
  • Financial Functions in Excel (17+)
  • Logical Functions in Excel (14+)
  • Lookup and Reference Functions in Excel (36+)
  • Maths Function in Excel (47+)
  • TEXT and String Functions in Excel (26+)
  • Date and Time Function in Excel (24+)
  • Statistical Functions in Excel (59+)
  • Information Functions in Excel (4+)
  • Excel Charts (56+)
  • Workplace Productivity (4+)
  • Microsoft Office Tools (15+)
  • Excel Formula and Functions (22+)
  • MS Excel Shortcuts (4+)
Excel Functions Courses
  • Online EXCEL ADVANCED Certification
  • Excel for HR Training

SUMIF Formula in Excel

By Madhuri ThakurMadhuri Thakur

SUMIF Formula in Excel

Excel SUMIF Formula (Table of Content)

  • SUMIF Formula in Excel
  • How to Use SUMIF Formula in Excel?

SUMIF Formula in Excel

In this article, we will learn about the SUMIF formula in Excel. We will also look into the use of the function with several examples.

Start Your Free Excel Course

Excel functions, formula, charts, formatting creating excel dashboard & others

The sum function adds cells or all cells in a range. The SUMIF function is used to add cells or a range when a specific criterion is met. Thus, this function adds all the cells that fulfill a certain condition or criteria. A criterion could be a number, text, or logical operator. In short, it is a conditional sum of cells in a range.

This function is a worksheet function and is available in all versions of Microsoft Excel. It is categorized under Math & Trigonometry formulas.

The formula is written as below:

How to Use SUMIF Formula in Excel?

SUMIF Formula

The syntax has arguments, as mentioned below:

  • Range – It is a required argument. It is the cell range on which the condition/criteria is applied. The cell should contain numbers or text, dates, cell references that have numbers. If the cell is blank, it will be ignored.
  • Criteria – It is a required argument. It is the criteria that will decide which cells to be added. In other words, it is the condition based on which the cells will be summed up. The criteria can be text, number, dates in excel format, cell references, or logical operators. It could be like 6, “yellow”, C12,”<5”, 05/12/2016, etc.
  • Sum_ range – It is the cell range that needs to be added. It is an optional argument. They are the cells other than those found in range. In case there is no sum range, the original cell range is then added.

How to Use SUMIF Formula in Excel?

SUMIF formula in excel is very simple and easy to use. Let’s start with a very simple example of SUMIF. In this example, we only have one column or range.

You can download this SUMIF Formula Excel Template here – SUMIF Formula Excel Template

Example #1

This is a very basic example, with only two arguments.

Below is the single column data on which we will use SUMIF. We need to add cells that are above or >20 in the cell range A1: A8.

Sumif Formula Example 1.1

We will now write the formula in cell A9 as below:

Sumif Formula Example 1.2

In this, the range is “A1: A8”, criteria is “>20”, and then since there is no sum_range so the cells of range (A1: A8) will be added.

Press Enter to get the result.

Sumif Formula Example 1.3

All cells above 20 are added in the range. Only cell A3 that has 15 and cell A5 that has 10 are excluded.

Also, we can use a cell reference as criteria instead of hard-coding the actual value.

Sumif Formula Example 1.4

Here we have used E4 and E5 respectively as cell references instead of 20 and 40. Now press Enter to see the result.

Sumif Formula Example 1.5

This is how we use cell references as criteria instead of writing them.

Example #2

In this example, we have a data set of different fruits and their stocks, as shown below. Suppose we want to know the total stock of mangos out of all fruits.

Sumif Formula Example 2.1

We will now write the formula in cell E3:

Sumif Formula Example 2.2

The arguments in the formula are explained below:

Range: A2: A11. In this range, the criteria of mangos will be applied.

Criteria: It is mangos, as we want to know the sum of mangos out of all fruits.

Sum_range: The sum range here is B2: B11.

Press Enter to get the result.

Sumif Formula Example 2.3

We have 450 mangos out of all fruits.

Example #3

We have sales data from different zones. Let’s say we want to know the total sales for the South zone.

Sumif Formula Example 3.1

We will write the formula in cell B12 as below:

Range: A2: A10

Criteria: SOUTH

Sum_range: B2:B10

Sumif Formula Example 3.2

Press Enter.

Sumif Formula Example 3.3
So the total sales for the south zone are 197. Also, we can use a cell reference in criteria instead of south.

Sumif Formula Example 3.4
Here A3 is a cell reference used in place of “South”.Now press Enter.

Sumif Formula Example 3.5
So we can also use cell references in place of writing the criteria.

Example #4

We have a sales data table for six months. And we want to find out the total sales for the month of May.

Sumif Formula Example 4.1
We will write the formula in cell B16.

Sumif Formula Example 4.2

Once you press Enter, you will see the Result.

Sumif Formula Example 4.3
We will now be looking at some different SUMIF scenarios where the criteria are text.

Example #5

We have sample data of balloons and their quantities.

Sumif Formula Example 5.1
Let’s say we want to sum up all blue balloons, be it sky blue or navy blue, out of all balloons.
We will write the formula as below:

Sumif Formula Example 5.2

Press Enter to get the result.

Sumif Formula Example 5.3
In this case, we want to sum the cell based on a partial match. So we use a wild card *. Hence all cells that contain the word “Blue” will be summed up, be it single or in combination with other words.
And so Blue, sky blue, and navy blue are all summed up.
In case you want to add all balloons, except for blue balloons. We will write the formula as below.

total balloons except for blue balloons 1

The criteria in this example are “<>Blue”, which means add all except for blue balloons. It will also add sky blue and navy blue in this case.
Press Enter to see the total balloons except for blue balloons.

total balloons except for blue balloons 2

If we want to add all balloons except for all shades of green color, we will write this formula.

total balloons except for green balloons 1

The criteria in this formula are any cell containing the word green or in combination with other words like dark or light green will not be summed up.

total balloons except for green balloons 2
Hence we see all balloons are summed up except for green, dark green and light green balloons.

Also, we can use cell references in criteria when using logical operators.

Example #6

Taking our previous example, if we want to add all balloons except for red balloons.

total balloons except for red balloons 1
Press Enter to see the Result.

total balloons except for red balloons 2

In case you want only a specific cell or “= to” operator, you can use any of the options shown below. Suppose we only need the sum of Pink balloons. We will write the formula in any of the ways.

all pink balloons 1
Or

all pink balloons 2
Both of them will give the below answer.

all pink balloons 3

Let’s now see how to add blank cells using SUMIFs. Let us say we have the above data table with blank cells, and we want to sum up the blank cells. We can do so by writing the below formula.

total blank cells 1
To see the sum of blank cells, press Enter.

total blank cells 2
Here the logical operator “=” is used for blank cells. The above examples would have given you a clear understanding of the function and its uses.

Things to Remember

  • To make things simple, make sure that range and sum_range are of the same size.
  • If the criteria are text, it should be always be written within quotes.
  • You might #VALUE! Error if the given text criteria are more than 255 characters.
  • In SUMIF, the range and sum_range should always be ranges and not arrays.
  • In case sum_range is not given, cells of the range will be added, which meets the criteria provided.

Recommended Articles

This has been a guide to SUMIF Formula in Excel. Here we discuss how to use SUMIF Formula in Excel with examples and downloadable excel templates. You may also look at these useful functions in excel –

  1. SUMIF in Excel
  2. SUM Function in Excel
  3. Excel SUMIF with OR
  4. Sumif Function Examples
Popular Course in this category
Excel Advanced Training (16 Courses, 23+ Projects)
  16 Online Courses |  23 Hands-on Projects |  140+ Hours |  Verifiable Certificate of Completion
4.8
Price

View Course

Related Courses

Excel for HR Training (8 Courses, 10+ Projects)4.9
Primary Sidebar
Footer
About Us
  • Blog
  • Who is EDUCBA?
  • Sign Up
  • Live Classes
  • Corporate Training
  • Certificate from Top Institutions
  • Contact Us
  • Verifiable Certificate
  • Reviews
  • Terms and Conditions
  • Privacy Policy
  •  
Apps
  • iPhone & iPad
  • Android
Resources
  • Free Courses
  • Excel Charts
  • Excel Tips
  • All Tutorials
Certification Courses
  • All Courses
  • Excel VBA Course - All in One Bundle
  • VBA Course
  • Excel Data Analysis Course
  • Excel for Marketing Course
  • Excel for Finance Course
  • Excel for HR Training

ISO 10004:2018 & ISO 9001:2015 Certified

© 2023 - EDUCBA. ALL RIGHTS RESERVED. THE CERTIFICATION NAMES ARE THE TRADEMARKS OF THEIR RESPECTIVE OWNERS.

EDUCBA
Free Excel Course

Excel functions, formula, charts, formatting creating excel dashboard & others

By continuing above step, you agree to our Terms of Use and Privacy Policy.
*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you

Let’s Get Started

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA

Download SUMIF Formula Excel Template

EDUCBA Login

Forgot Password?

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA

Download SUMIF Formula Excel Template

EDUCBA

डाउनलोड SUMIF Formula Excel Template

This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the cookie policy. By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to our Privacy Policy

Loading . . .
Quiz
Question:

Answer:

Quiz Result
Total QuestionsCorrect AnswersWrong AnswersPercentage

Explore 1000+ varieties of Mock tests View more