Sum multiple columns if one criterion is met in Excel
This tutorial will guide you how to sum values in multiple columns based on the same criterion in Excel.
How to sum multiple columns based on one criteria?
Look at the example below, suppose you have a list of products with three months of sales, and you want to sum all sales for the product “KTE”, you can follow the steps below.
Generic Formulas
=SUMPRODUCT((criteria_rng=criteria)*(sum_range))
Arguments
How to use this formula?
Select a blank cell, copy or enter the formula below and press the Enter key to get the result.
=SUMPRODUCT((B5:B10=G5)*(C5:E10))
Note:
Explanation of the formula
=SUMPRODUCT((B5:B10=G5)*(C5:E10))
Related functions
Excel SUMPRODUCT function
The Excel SUMPRODUCT function can be used to multiply two or more columns or arrays together, and then get the sum of products.
Related formulas
Sum the last N columns
To sum values in the last n columns, normally you may need to calculate the sum of each column and then add up the results to get the final sum. This tutorial provides a formula based on the INDEX function to help you easily get it done.
Sum top N values or top N values with criteria
This step-by-step tutorial demonstrates how to use the SUMPRODUCT function with the LARGE function to sum the top N values in a range and sum the top N values in a range with criteria in Excel.
Sum values based on column or both column and row
This tutorial provides different formulas based on the SUMPRODUCT function to help you sum values based on a column header, and sum values based on both column and row criteria.
Sum values in last N days based on criteria
To sum values in last N days based on specific criteria in Excel, you can apply a formula based on the SUMIF and TODAY function.
The Best Office Productivity Tools
Kutools for Excel - Helps You To Stand Out From Crowd
Kutools for Excel Boasts Over 300 Features, Ensuring That What You Need is Just A Click Away...

Office Tab - Enable Tabbed Reading and Editing in Microsoft Office (include Excel)
- One second to switch between dozens of open documents!
- Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
- Increases your productivity by 50% when viewing and editing multiple documents.
- Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Edge and Firefox.
