

The SUMIF family does not have a case-sensitive option, so we need to resort back to using array formulas or SUMPRODUCT. = SUMPRODUCT( sales,1*( (( model="A")+( model="B"))>0 )) Sum of Sales where Model = "A" or Price > 45 = SUMPRODUCT( sales,1*( (( model="A")+( price>45))>0 )) 6) Case-Sensitive SUMIF and COUNTIF Sum of Sales where Model is equal to A or B. This means that for a logical OR condition to be true, we can check whether the sum of two or more conditions is > 0. The key to avoid double-counting is to recognize that FALSE+FALSE=0 and TRUE+FALSE=1 and TRUE+TRUE=2. Use SUMPRODUCT for overlapping OR conditions If there is a possibility of conditions overlapping, then you may need to use a SUMPRODUCT formula as explained below. If the conditions overlap, you may end up counting or adding a value twice. For example, the condition "=*e*" would overlap with the condition "=yes". To avoid double-counting cells, the conditions must not overlap. The two formulas below do essentially the same thing. You can use the TODAY function to make comparisons based on the current date, like this: = SUMIF( date_range, "=", date_range, " 1 AND x 1", range,"3 are usually easier to handle by evaluating each condition separately and then adding the results. When using, =, Excel still recognizes the criteria as a date, but it does not convert text values in the criteria_range to date values. When using dates as criteria for the COUNTIF and SUMIF functions, Excel does some interesting things, depending on whether you are using "=" or "3/1/17") Formulas for OR conditions are a bit more tricky (see below). NOTE The SUMIFS, COUNTIFS, and AVERAGEIFS functions are used for multiple AND conditions.
