When to use a SUM(IF()) array formula (275165)
The information in this article applies to:
- Microsoft Office Excel 2003
- Microsoft Excel 2002
- Microsoft Excel 2000
- Microsoft Excel 97 for Windows
- Microsoft Excel 2004 for Mac
- Microsoft Excel X for Mac
- Microsoft Excel 2001 for Mac
- Microsoft Excel 98 Macintosh Edition
This article was previously published under Q275165 SUMMARY
You can use the SUMIF() worksheet function in Microsoft Excel for either of the following situations:
- When you want to return a sum for a single criteria (for example, a single IF condition)
- When you want to use multiple criteria and return the sum to multiple cells
The criteria that you can use with the SUMIF() worksheet function is limited to text, numbers, or a range, and the function cannot use array constants.
For additional information about array constants and worksheet functions, click the following article numbers to view the articles in the Microsoft Knowledge Base:
214286
Some worksheet functions do not allow array constants
192222 Some worksheet functions do not allow array constants
You cannot use the SUMIF() worksheet function with logical Boolean operators, such as OR and AND.
For additional information about worksheet functions and Boolean operators, click the following article number to view the article in the Microsoft Knowledge Base:
267982
How to use a logical AND or OR in a SUM+IF statement in Excel
When you want to use multiple conditions, array constants, nested IF statements or Boolean operators; or you want one total for multiple conditions (criteria); use the two functions SUM and IF together. For example, use SUM(IF()) instead of the SUMIF() function.
This article demonstrates how to use the two functions SUM and IF together instead of the SUMIF() worksheet function.
REFERENCESFor more information about the SUM worksheet function, click Microsoft Excel Help on the
Help menu, type sum in the Office Assistant or
the Answer Wizard, and then click Search to view the topics
returned.
For more information about the IF worksheet function, click Microsoft Excel Help on the
Help menu, type if worksheet function in the Office Assistant or
the Answer Wizard, and then click Search to view the topics
returned.
For more information about the SUMIF, click Microsoft Excel Help on the
Help menu, type sumif in the Office Assistant or
the Answer Wizard, and then click Search to view the topics
returned.
| Modification Type: | Major | Last Reviewed: | 11/12/2004 |
|---|
| Keywords: | kbhowto KB275165 |
|---|
|