Click here to go to the Office Update Home page   All Products  |   Support  |   Search  |   microsoft.com Guide  
Featured on Office UpdateMicrosoft
   Home   |    Auto Update   |    What's New   |    Search Office Update   |    eServices   |    Office Update Worldwide   |    Site Help   |
 

Add Amounts Based on a Condition in Excel 2000 Click here to email this to a friend.

You have a column filled with part numbers, and next to it a column filled with the amounts of each part available in different regions. You want to be able to enter a part number in a cell, and see the total amount available in all regions in an adjacent cell. In the following example, Cell E5 contains the formula:

=SUMIF(A2:A12,E4,C2:C12)

where A2:A12 is the Range of parts referenced; E4 is the Criteria, or part number for which you want to find a total amount; and C2:C12 is the Sum_range, or range of data that should be summed when a matching part number is found on the same row.

A worksheet that uses a formula to count the total number available of a specific part

You can also count cell entries based on a condition by using the COUNTIF function. For more information on this and the SUMIF function, type COUNTIF function or SUMIF function in the Office Assistant or on the Answer Wizard tab in the Excel Help window, and then click Search.

If you want Excel to generate a formula to sum specific data for you, you can use an add-in program called the Conditional Sum Wizard. For more information, type Conditional Sum Wizard in the Office Assistant or on the Answer Wizard tab in the Excel Help window, and then click Search.

 
 
é

© 2000 Microsoft Corporation.
All rights reserved. Terms of use.  Disclaimer.