IFS2230 Management Information Systems Tutorial 7
KIMEP 1
BCB/OMIS
Tutorial 7
Managing and Analyzing Large Data Sets
• Reports with Totals
• Database Functions
• Subtotals
• Consolidation
Reports with Totals.
We often want to count the number of cells in a range that meet a given criteria. For example, if a
worksheet contains information about different media, we might want to count the number of
particular media transaction.
Suppose, you have a list of tasks that are made in a variety of media. For each task you know the
media, the date the task was made, and the number of hours spent for the task.
How can you answer such questions about the tasks in the list?
• How many records of each media are in the list?
• How much time spent on the use of each media?
In a more general context, how do you perform operations such as the following?
• Count the number of cells in a range that meet a given criteria.
• Sum the values in a range that meet criteria that you specify.
You can use COUNTIF() function to count the number of cells in a range that meet criteria and use
SUMIF() function to Sum the values in a range that meet criteria that you specify.
The syntax of the COUNTIF function is COUNTIF(range,criterion)
The syntax of the SUMTIF function is SUMIF(range, criteria, [sum_range]).
Examples: (open file Tutorial 7.xls)
=COUNTIF(A12:A33, “Internet”) – Counts the number of cells with Internet in cells A12 through
A33.
=COUNTIF(C12:C33,”>6”) – Counts the number of cells with a value greater than 6 in cells C12
through C33.