• Unit 3: Logical Functions

    In this unit, we explore logical functions, which are more advanced Microsoft Excel functions. Logical functions in Microsoft Excel allow you to assess the text or numerical content within cells and produce custom outputs.

    For example, imagine you are an instructor for a class of 250 students. Your students pass if their final grade is 60 percent or higher. They fail if their final grade is below 60 percent. We can use the logical function IF to automatically determine if each student passed or failed based on their final grades. Logical functions can make these types of determinations for large data sets.

    Completing this unit should take you approximately 2 hours.

    • 3.1: Logical Functions

      Logical functions make it easier to assess cell data and produce custom outputs in Microsoft Excel. The data can be text or numerical. You can insert quotation marks before and after the text to direct Excel to treat data as text. Be aware that logical formulas must be exact – a misplaced comma, character, parenthesis, or number will generate an error instead of performing a calculation.

    • 3.2: Statistical IF Functions

      In this section, we study the functions COUNTIF, COUNTIFS, AVERAGEIF, AVERAGEIFS, SUMIF, and SUMIFS. Pay close attention to the examples to understand how to format these functions properly.

      Use the COUNTIF function to count cells based on one criterion. For example, a store manager may want to count how many sales they had over $100. They can use COUNTIF to only measure sales from a given day over $100. They can use the COUNTIFS function to count based on more than one option. For example, let's say a meeting planner has created a spreadsheet to track a group's food allergies. They can use COUNTIFS to count the number of people who responded "dairy foods" or "gluten".

      Use the AVERAGEIF function to calculate the average of a list of numbers that meet a certain criterion. For example, an instructor might average the scores of students who earned grades above 60 percent. The AVERAGEIFS function allows them to add additional criteria to their average.

      Use the SUMIF function to add values that meet a specific criterion. For example, the meeting planner can use SUMIF to add the number of people who have food allergies or other preferences. They can use SUMIFS to add additional criteria, such as peanuts or requests for Kosher meals.