Sunteți pe pagina 1din 2

State the function and structure of the COUNTIF function.

State the function and structure of the SUMIF function.

CONTENT

COUNTIF is a function that will count the number of entries within a RANGE if certain CRITERIA
are met. The data within each entry can be text or numbers.

SUMIF is a function that will add the total number of numerical entries within a range if certain
criteria are met. SUMIF only works with numbers when adding up figures, so if the range includes
any text, those will be ignored.

PROCEDURES

Teacher will explain the function of the COUNTIF and SUMIF function

Class will create a spreadsheet with the following data.

# OF
YEAR TYPE OF SALE SALES
2003 Telephone 8
2003 Store 20
2004 Telephone 9
2003 Store 21
2005 Online 1
2005 Telephone 13
2005 Store 25
2006 Online 2
2006 Telephone 15
2006 Store 27
2007 Online 3
2007 Telephone 28
2007 Store 40
2008 Online 4
2008 Telephone 25
2008 Store 37
2009 Online 5
2009 Telephone 29
2009 Store 41

Teacher will work example using the above illustration.

Explain to a student that from the above data the aim is to find how many sales there are of each
type (STORE, PHONE, ONLINE) that were done in total.

Student will enter the type of sales in a column to the right.

Teacher will explain and demonstrate the structure of the COUNTIF function.

Countif takes two inputs, the range youre interested in and the criteria that need to be met: In
our case, the data (store type) is in column B, so we input that into the first part of the countif
function: Next, we want each entry to be counted only for the particular type off sale.
=countif(B2:B20, store)

Remember to always put quotation marks () around the criteria when working with text!
Students will repeat the formula for ONLINE and TELEPHONE.

To find the total numbers of sales by type for the entire period use the SUMIF function.

First, sumif takes in slightly different inputs than countif.

The first input is the range that youre interested in.

The second input is the criteria.

The third argument is the range to be summed.

Note that sumif can also take in different criteria. Lets suppose we wanted to know the total
number of sales that have taken place starting in 2008, regardless of type. To do this, we could
make our range the year, found in column A:

and then add in the criteria of >= 2008:

To sum up the total number of sales, which is in column C:

Closing out our final parenthesis, we get that we have had a total of 141 sales from 2008-2009:

When you put in non-numerical data to sum using the sumif function the calculations
automatically ignore that entry

S-ar putea să vă placă și