

Generic Excel SUMIF Formula: =SUMIF( condition_range,condition,sum range) But that’s not what we want to do.Īs the name suggests, the SUMIF formula in Excel sums values in a range on a given condition. It sums them up and returns the result as 525.Īnother method can be having a totals column and then use it with SUMIF function to get the sum of all columns. (B2:B9=H2): This part compares each value in range B2:B9 with H2 and returns an array of TRUE and FALSE.

Let’s break down the formula and understand it in pieces. This returns 525 as total amount spent on mangos. In I2 the formula is = SUMPRODUCT((B2:B9=H2)*C2:E9) We just need to get the total amount spent on mangoes in all these months. In the above image, we have this table of the amount spent on different fruits in different months. This can have multiple columns but same rows as criteria range. Generic Formula = SUMPRODUCT((criteria_range=criteria)*(sum_range))Ĭriteria_range: This is the range in which criteria will be matched.Ĭriteria: this is the criteria or condition.

This article is all about summing multiple columns on condition. But how do we sum multiple columns in one condition. We know how to sum one column on multiple conditions. For example finding the sum of price of products which belong to the household category. It lets the user have the sum of values having criteria on the corresponding text values. Whenever we need to find the sum of values having criteria, we use the SUMIF function. In this article, we will learn How to Sum using Text Characters as Criteria in Excel.
