Skip to content
xlsoffice. All Rights Reserved
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Lookup and Reference Examples

  • How to use Excel OFFSET function
  • How to use Excel VLOOKUP Function
  • Merge tables with VLOOKUP in Excel
  • Find Closest Match in Excel Using INDEX, MATCH, ABS and MIN functions
  • Extract data with helper column in Excel

Data Analysis Examples

  • How to Create Column Chart in Excel
  • Understanding Anova in Excel
  • Number and Text Filters Examples in Excel
  • Filter Data Based on Date in Excel
  • How to count table rows in Excel

Data Validation Examples

  • Excel Data validation must begin with
  • Excel Data validation allow weekday only
  • Excel Data validation exists in list
  • Prevent invalid data entering in specific cells
  • Excel Data validation date in next 30 days

Sum if cells are equal to in Excel

by

This tutorial shows how to Sum if cells are equal to in Excel using the example below;

In the example shown, we are summing all sales in the West region.

Explanation

If you need to sum numbers based on other cells being equal to a certain value, you can easily do with either the SUMIF or SUMIFS function.

Worked Example:   Sum if by year in Excel

The formula in cell H6 is:

=SUMIF(region,"West",amount)

The formula in cell H7 is:

=SUMIFS(amount,region,"West")

Both formulas refer to the named ranges region (C5:C30) and amount (E5:E30).

Worked Example:   Sum if less than in Excel

How these formulas work

Both formulas use built-in functions to calculate a subtotal, but the syntax used by SUMIF and SUMIFS is slightly different:

SUMIF(range,criteria,sum_range)
SUMIFS(sum_range,range,criteria)

In both cases, note that the region “West” must be enclosed in double quotes, since it is a text value.

Worked Example:   Sum if date is greater than in Excel

Whether you use SUMIF or SUMIFS (which can handle more than one criteria) is a matter of personal preference. SUMIFS was introduced with Excel 2007, so it’s been around now for a long time.

Post navigation

Previous Post:

Sum if between in Excel

Next Post:

Sum if cells contain both x and y 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
  • How to extract domain from email address in Excel
  • DBCS function: Description, Usage, Syntax, Examples and Explanation
  • How to check if cell contains one of many things in Excel
  • How to strip protocol and trailing slash from URL in Excel
  • How to display conditional message with REPT function in Excel
  • Excel Date & Time Functions Example
  • Count day of week between dates in Excel
  • Get days, months, and years between dates in Excel
  • Convert text to date in Excel
  • WEEKNUM function: Description, Usage, Syntax, Examples and Explanation
  • ACCRINT function: Description, Usage, Syntax, Examples and Explanation
  • CUMPRINC function: Description, Usage, Syntax, Examples and Explanation
  • How to calculate annuity for interest rate in excel
  • Calculate interest rate for loan in Excel
  • Calculate loan interest in given year in Excel
© 2022 xlsoffice . All Right Reserved. | Teal Smiles