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

Data Analysis

  • Move chart to a separate worksheet in Excel
  • Working With Tables in Excel
  • How To Sort One Column or Multiple Columns in Excel
  • How to create a Histogram in Excel
  • How to Create Thermometer Chart in Excel

References

  • Lookup entire row in Excel
  • How to get relative row numbers in a range in Excel
  • Find Closest Match in Excel Using INDEX, MATCH, ABS and MIN functions
  • Count rows that contain specific values in Excel
  • Vlookup Examples in Excel

Data Validations

  • Excel Data validation allow weekday only
  • Excel Data validation require unique number
  • Excel Data validation must not contain
  • Excel Data validation unique values only
  • Excel Data validation number multiple 100

SUMIF function: Description, Usage, Syntax, Examples and Explanation

by

What is SUMIF function in Excel?

SUMIF function is one of the Math and Trig functions in Microsoft Excel that is used to sum the values in a range that meet criteria that you specify. For example, suppose that in a column that contains numbers, you want to sum only the values that are larger than 5. You can use the following formula: =SUMIF(B2:B25,”>5″)

Syntax of SUMIF function

SUMIF(range, criteria, [sum_range])

The SUMIF function syntax has the following arguments:

  • range: The range of cells that you want evaluated by criteria. Cells in each range must be numbers or names, arrays, or references that contain numbers. Blank and text values are ignored. The selected range may contain dates in standard Excel format (examples below).
  • criteria: The criteria in the form of a number, expression, a cell reference, text, or a function that defines which cells will be added. For example, criteria can be expressed as 32, “>32”, B5, “32”, “apples”, or TODAY().

    Important: Any text criteria or any criteria that includes logical or mathematical symbols must be enclosed in double quotation marks (“). If the criteria is numeric, double quotation marks are not required.

  • sum_range   Optional. The actual cells to add, if you want to add cells other than those specified in the range argument. If the sum_range argument is omitted, Excel adds the cells that are specified in the range argument (the same cells to which the criteria is applied).
  • You can use the wildcard characters—the question mark (?) and asterisk (*)—as the criteria argument. A question mark matches any single character; an asterisk matches any sequence of characters. If you want to find an actual question mark or asterisk, type a tilde (~) preceding the character.
Worked Example:   Sum if cell contains text in another cell in Excel

SUMIF formula explanation

  • The SUMIF function returns incorrect results when you use it to match strings longer than 255 characters or to the string #VALUE!.
  • The sum_range argument does not have to be the same size and shape as the range argument. The actual cells that are added are determined by using the upper leftmost cell in the sum_range argument as the beginning cell, and then including cells that correspond in size and shape to the range argument. For example:
Worked Example:   Sum lookup values using SUMIF in Excel
If range is And sum_range is Then the actual cells are
A1:A5 B1:B5 B1:B5
A1:A5 B1:B3 B1:B5
A1:B4 C1:D4 C1:D4
A1:B4 C1:C2 C1:D4
Worked Example:   Sum if cells are equal to in Excel

However, when the range and sum_range arguments in the SUMIF function do not contain the same number of cells, worksheet recalculation may take longer than expected.

Post navigation

Previous Post:

SUMIFS function: Description, Usage, Syntax, Examples and Explanation

Next Post:

SEQUENCE function: Description, Usage, Syntax, Examples and Explanation

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

  • Complete List of Excel Logical Functions, References and Examples
  • Check multiple cells are equal in Excel
  • IFNA function: Description, Usage, Syntax, Examples and Explanation
  • IFERROR function: Description, Usage, Syntax, Examples and Explanation
  • AND function: Description, Usage, Syntax, Examples and Explanation

Date Time

  • How to enter Today’s Date or Static Date and Time in Excel
  • How to calculate months between dates in Excel
  • Basic timesheet formula with breaks in Excel
  • Add decimal minutes to time in Excel
  • Count holidays between two dates in Excel

Grouping

  • Running count group by n size in Excel
  • Group times into 3 hour buckets in Excel
  • How to randomly assign people to groups in Excel
  • Group numbers with VLOOKUP in Excel
  • Calculate conditional mode with criteria in Excel

General

  • Subtotal invoices by age in Excel
  • Basic error trapping example in Excel
  • Excel Default Templates
  • How to get original price from percentage discount in Excel
  • How to Delete Cells, Row and Rows in Excel
© 2023 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning