|
|
Using Conditional Sums to Count Data (Sum+If) Assume that you create a list of data in cells A1:A10 and that you want to count all the values that are greater than 50 and less than 200. To do this, use the following array formula: =SUM(IF(A1:A10>=50,IF(A1:A10<=200,1,0),0)) Note Be sure to enter the formula as an array by pressing CTRL+SHIFT+ENTER. After you do this, you see curly braces {} surrounding the formula. Do not try to enter the braces manually. The formula uses nested IF functions for each cell in the range and adds one to the total only when both criteria tests are met.
|