computer help index
 
 
Search:
"Offering free computer help, hints, and tips to the Internet populace." Now with over 3,240 tips!

Microsoft Excel 2003 Functions and Formulas

Find a Conditional Sum

SUMMARY: Use Microsoft Excel 2003 to find the sum of numbers that meet a certain condition.
 
Sometimes you may need to use only certain values inside a range in a summation, based on a defined condition. Using Microsoft Excel 2003, this can be calculated with the =sumif function. =sumif can also use another range of cells to determine whether or not the condition is met.

Syntax:

=sumif(SERIES,CRITERION,SERIES_OF_NUMBERS)

SERIES is the range of cells you want to evaluate.

CRITERION is the criterion you want to meet to evaluate the number.

SERIES_OF_NUMBERS are the numbers you want to actually sum. This may the same as SERIES, or it may be different.

For example, given the following table of salespeople and their number of sales:


A B
1 Tom 1500
2 Rick 2250
3 Jane 2320
4 Tom 1670
5 Jane 1400
6 Jane 2780
7 Rick 1220


To find Jane's total number of sales, use this function:

=sumif(A1:A7,"Jane",B1:B7)

This produces the result 6500 (2320+1400+2780).

To find the sum of the sales that exceed 2000, use this function:

=sumif(B1:B7,>2000)

This produces the result 7350 (2250+2320+2780).

 

 
Add: Del.icio.us | Digg | Furl | My Yahoo!
 
Discuss This Tip

Print This Tip

Get E-Mail When New Tips are Online

Return to the Microsoft Excel 2003 Functions and Formulas page.

RSS Feeds - Subscribe!
 

You want the latest tech tips and tricks in your e-mail Inbox - FREE? Type your e-mail address below and click 'Subscribe'.
 



( sample / details ) ( opt-out instructions )
 


 Free Offer! - Subscribe to the MalekTips computer help list and be one of the first to get new computer tips, articles, and download links! ( privacy policy )  ( opt-out instructions )
This page and its contents are copyright
©1997 - 2008 Envision Programming. ( copyright/disclaimer )

Home | Free Computer Help Newsletter! | Windows | Web Development | DOS and Batch Files | Removing Spyware
Digital Camera and Photography | Computer and Internet | Software | Microsoft Word
Computer Articles | About | Contribute a Tip | Link To Us! | Computer and Technology Links
RSS Feeds |  Contact Us | Advertising | Privacy Policy | Computer Help Forums