SUMIF

Description

SUMIF returns the sum of the specified cells based on the given criteria.

Syntax

SUMIF (range, criteria, sum_range )

 

Parameter

Description

range

The range of cells you want evaluated.

criteria

A number, expression, or text that defines which cells are added. For example, criteria can be expressed as 15, "15", ">15", "cars".

sum_range

The actual cells to sum. These cells are only summed if their corresponding cells in range match the criteria. If this argument is omitted, the cells in range are summed.

Example

If the group is in column H and the peak area in column E, the following formula gives the sum of all peak areas from the Group Name group:

SUMIF(H29:H37,"Group Name",E29:E37)

 Note:

If an Invalid formula syntax warning appears, check whether the comma is set as the list separator in your regional settings on the Windows Control Panel. If a different character is set as the list separator, use this character in the above examples in place of the comma. (Windows XP: Access the Windows Control Panel and select Regional and Language Options. On the Regional Options tab page, click Customize. On the Numbers tab page, check which character is the default list separator on your computer. Use this character in the above examples instead of the comma.

Also, see

AVERAGE

COUNT

COUNTA

COUNTIF

PRODUCT

SUM