Introduction

In lecture this week, we have started to take a look at Microsoft Excel and spreadsheets. In lecture, you have learned the first set of functions: SUM, SUMIFS, COUNT, COUNTIFS, AVERAGE, and AVERAGEIFS. You will use these functions to complete the lab today.

Complete the Lab

Download the Lab

Complete the lab wihtin Excel

The Excel file you just downloaded contains ten questions as part of the spreadsheet. The questions are clearly marked throughout the spreadsheet. You should find a total of 10 questions.

Functions and Concepts Used

To complete this lab, you will need to use several functions and concepts in Excel:

Arithmetic Operations

Just like JavaScript, Excel allows the use of basic arithmetic operations in formulas such as +, -, * (for multiplication), and / (for division).

The following formulas are all valid: =4 * 2, =(10 + 3)/2, and =6-3+2.

Simple Arithmetic Functions

The SUM, COUNT and AVERAGE functions each take a comma-separated list or a range of cells as their parameter(s) and calculates the sum of their values (SUM), the number of values (COUNT), or the average of their values (AVERAGE).

AVERAGE is not explicitly necessary, as the formula =SUM(A1:A10)/COUNT(A1:A10) will result in the same value as the formula =AVERAGE(A1:A10).

The following formulas are all valid:

Conditional Arithmetic Functions

The SUMIFS, COUNTIFS and AVERAGEIFS functions are similar to their simple counterparts but only perform their action if a conditional is true. Due to the presence of the conditional, these functions take in an extra function arguments:

In the SUM and AVERAGE versions, one range is given for the range of cells that you want to compute a sum or average (sum_range or average_range). Using the example sheet displayed to the right, the following formulas are all valid:

Submission

To submit your lab, you must submit your completed Excel file to the CS 105 website. Ensure you save your file before uploading it.