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

Data Analysis

  • How to create a Histogram in Excel
  • How To Sort One Column or Multiple Columns in Excel
  • Conditional Formatting Color Scales Examples in Excel
  • How to sum a total in multiple Excel tables
  • Conditional Formatting Data bars Examples in Excel

References

  • How to calculate two-way lookup VLOOKUP in Excel Table
  • Offset in Excel
  • How to create dynamic named range with OFFSET in Excel
  • How to get relative row numbers in a range in Excel
  • INDEX function: Description, Usage, Syntax, Examples and Explanation

Data Validations

  • Excel Data validation don’t exceed total
  • Excel Data validation whole percentage only
  • Excel Data validation date in specific year
  • Excel Data validation with conditional list
  • How To Create Drop-down List in Excel

Sumproduct Function Example in Excel

by

To calculate the sum of the products of corresponding numbers in one or more ranges, use Excel’s powerful SUMPRODUCT function.

Basic Use

1. For example, the SUMPRODUCT function below calculates the total amount spent.

Explanation: the SUMPRODUCT function performs this calculation: (2 * 1000) + (4 * 250) + (4 * 100) + (2 * 50) = 3500.

2. The ranges must have the same dimensions or Excel will display the #VALUE! error.

3. The SUMPRODUCT function treats any entries that are not numeric as if they were zeros.

4. If you supply a single range, the SUMPRODUCT function produces the exact same result as the SUM function.

Advanced Use

The SUMPRODUCT function is an extremely versatile function and can produce the same result as many built-in functions in Excel and even array formulas!

1a. For example, the COUNTIF function below counts the number of cells that contain exactly star.

1b. The SUMPRODUCT function below produces the exact same result.

Explanation: –(A1:A7=”star”) reduces to the following array constant:

–{TRUE;FALSE;FALSE;FALSE;FALSE;TRUE;FALSE}

The double negative — coerces these Booleans to 1’s and 0’s (TRUE=1, FALSE=0). Result:

{1;0;0;0;0;1;0}

This array constant is used as an argument for the SUMPRODUCT function, giving a result of 2.

1c. The COUNTIF function below counts the number of cells that contain exactly star + 1 character. A question mark (?) matches exactly one character.

1d. The SUMPRODUCT function is not perfect! You cannot use wildcard characters (? and *) when you use the SUMPRODUCT function.

2a. The array formula below counts the number of characters in a range of cells.

Note: finish an array formula by pressing CTRL + SHIFT + ENTER. Excel adds the curly braces {}.

2b. The SUMPRODUCT function below produces the exact same result.

Note: the array constant {9;4;6;5} is used as an argument for the SUMPRODUCT function, giving a result of 24. The SUMPRODUCT function handles arrays natively so you don’t have to finish by pressing CTRL + SHIFT + ENTER. This is one of the biggest advantages of the SUMPRODUCT function because the curly braces {} confuse many Excel beginners!

3a. The array formula below sums the sales in 2018.

3b. The SUMPRODUCT function below produces the exact same result.

Explanation: (YEAR(A1:A5)=2018)*B1:B5 reduces to:

({2018;2017;2018;2017;2017}=2018)*{10;1;7;20;3} and this reduces to:

{TRUE;FALSE;TRUE;FALSE;FALSE}*{10;1;7;20;3}

We don’t need a double negative (see example 1b) because the multiplication operator * automatically coerces the Booleans to 1’s and 0’s (TRUE=1, FALSE=0). Result:

{10;0;7;0;0}

This array constant is used as an argument for the SUMPRODUCT function, giving a result of 17.

Post navigation

Previous Post:

Complete List of Excel Cube Functions References and Examples

Next Post:

Excel Bar Chart

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
  • IFS function: Description, Usage, Syntax, Examples and Explanation
  • How to use Excel XOR Function
  • AND function: Description, Usage, Syntax, Examples and Explanation
  • How to use Excel FALSE Function

Date Time

  • Add days exclude certain days of week in Excel
  • ISOWEEKNUM function: Description, Usage, Syntax, Examples and Explanation
  • How to get workdays between dates in Excel
  • How to determine year is a leap year in Excel
  • NETWORKDAYS function: Description, Usage, Syntax, Examples and Explanation

Grouping

  • Group times into unequal buckets in Excel
  • Running count group by n size in Excel
  • Calculate conditional mode with criteria in Excel
  • If cell contains one of many things in Excel
  • Group numbers at uneven intervals in Excel

General

  • How to calculate percent of students absent in Excel
  • Excel Operators
  • Check if multiple cells have same value with case sensitive in Excel
  • How to get random value from list or table in Excel
  • With vs Without Array Formula in Excel
© 2023 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning