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

Data Analysis

  • Filter Data Based on Date in Excel
  • Randomize/ Shuffle List in Excel
  • How to count table rows in Excel
  • Create Scatter Chart in Excel
  • How to Create One and Two Variable Data Tables in Excel

References

  • Merge tables with VLOOKUP in Excel
  • How to use Excel MMULT Function
  • Excel Advanced Lookup using Index and Match Functions
  • CHOOSE function: Description, Usage, Syntax, Examples and Explanation
  • Perform case-sensitive Lookup in Excel

Data Validations

  • Excel Data validation only dates between
  • Data validation must not exist in list
  • Excel Data validation allow weekday only
  • Excel Data validation no punctuation
  • Prevent invalid data entering in specific cells

Sum if equal to one of many things in Excel

by

This tutorial shows how to Sum if equal to one of many things in Excel using the example below;

Formula

=SUMPRODUCT(SUMIF(range,things,values))

Explanation

If you need to sum values when cells are equal to one of many things, you can use a formula based on the SUMIF and SUMPRODUCT functions.

Worked Example:   Count long numbers without COUNTIF in Excel

In the example shown, the formula in H5 is:

=SUMPRODUCT(SUMIF(B5:B11,things,C5:C11))

How this formula works

The SUMIF function takes three arguments: range, criteria, and sum_range.

For range, we are using B5:B11. These cells contain the values we are testing against multiple criteria.

Worked Example:   Count day of week between dates in Excel

For criteria, we are using the named range “things” (E5:E7). This range contains the 3 values we are using as criteria. This range can be expanded to include additional criteria as needed.

For  sum_range, we are using using C5:C11, which contains numeric values.

Worked Example:   Get work hours between dates custom schedule in Excel

Because we are giving SUMIF more than one criteria, it will return multiple results – one result for each value in “things. The results come back an array like this:

=SUMPRODUCT({60;30;12})

SUMPRODUCT then sums all items in the array and returns a final result, 102.

Post navigation

Previous Post:

44 Practical Excel IF function Examples

Next Post:

Large with criteria 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

  • IF function: Description, Usage, Syntax, Examples and Explanation
  • Nested IF function example in Excel
  • How to use Excel FALSE Function
  • IF with wildcards in Excel
  • How to use Excel NOT Function

Date Time

  • Calculate years between dates in Excel
  • Display Days in month in Excel
  • How to calculate working days left in month in Excel
  • Convert text timestamp into time in Excel
  • TIMEVALUE function: Description, Usage, Syntax, Examples and Explanation

Grouping

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

General

  • How to generate random date between two dates in Excel
  • Print Excel Sheet In Landscape Or Portrait
  • How to get original price from percentage discount in Excel
  • Basic numeric sort formula in Excel
  • How to calculate percent sold in Excel
© 2023 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning