Learning Goals and Standards Use several conditional functions available in MS Excel Create a MS Excel formula Edit MS Excel formula Compute using autosum, average and counta function Identify the Mix and max function Involve in Sunday mass by identifying the different parish in the municipality
Introduction Examine the data below: SET A 2+2+2 2+3+4 3 SET B Sum ( A1:A3) Average ( A1:A3)
Introduction The Data on set A show mathematics equation while set B shows excel functions. Both performs the same operations One of the most powerful features in Excel is the ability to calculate numerical information using formulas . Just like a calculator, Excel can add, subtract, multiply, and divide. In this lesson, we'll show you how to use cell references to create simple formulas.
MS Excel ( Intro to formulas) Lesson Proper
Mathematical operators Excel uses standard operators for formulas, such as a plus sign for addition ( + ), a minus sign for subtraction ( - ), an asterisk for multiplication ( * ), a forward slash for division ( / ), and a caret ( ^ ) for exponents.
Understanding cell references All formulas in Excel must begin with an equals sign ( = ). This is because the cell contains, or is equal to, the formula and the value it calculates. While you can create simple formulas in Excel using numbers (for example, =2+2 or =5*5 ), most of the time you will use cell addresses to create a formula. This is known as making a cell reference .
Understanding cell references In the formula below, cell A3 adds the values of cells A1 and A2 by making cell references:
Understanding cell references When you press Enter, the formula calculates and displays the answer in cell A3:
Creating Formula By combining a mathematical operator with cell references, you can create a variety of simple formulas in Excel. Formulas can also include a combination of cell references and numbers, as shown in the examples.
Creating Formula – Step 1 We'll use a simple formula and cell references to calculate a budget. Select the cell that will contain the formula. In our example, we'll select cell D12 .
Creating Formula – Step 2 Type the equals sign (=) . Notice how it appears in both the cell and the formula bar .
Creating Formula – Step 3 Type the cell address of the cell you want to reference first in the formula: cell D10 in our example. A blue border will appear around the referenced cell.
Creating Formula – Step 4 Type the mathematical operator you want to use. In our example, we'll type the addition sign ( + ).
Creating Formula – Step 5 Type the cell address of the cell you want to reference second in the formula: cell D11 in our example. A red border will appear around the referenced cell.
Creating Formula – Step 6 Press Enter on your keyboard. The formula will be calculated , and the value will be displayed in the cell. If you select the cell again, notice that the cell displays the result, while the formula bar displays the formula.
Creating Formula If the result of a formula is too large to be displayed in a cell, it may appear as pound signs (#######) instead of a value. This means the column is not wide enough to display the cell content. Simply increase the column width to show the cell content.
Copying formulas with the fill handle Formulas can also be copied to adjacent cells with the fill handle , which can save a lot of time and effort if you need to perform the same calculation multiple times in a worksheet. The fill handle is the small square at the bottom-right corner of the selected cell(s).
Copying formulas with the fill handle Step 1 Select the cell containing the formula you want to copy. Click and drag the fill handle over the cells you want to fill.
Copying formulas with the fill handle Step 2 After you release the mouse, the formula will be copied to the selected cells.
Editing a formula Sometimes you may want to modify an existing formula. In the example below, we've entered an incorrect cell address in our formula, so we'll need to correct it.
Editing a formula – Step 1 Select the cell containing the formula you want to edit. In our example, we'll select cell D12 .
Editing a formula – Step 2 Click the formula bar to edit the formula. You can also double-click the cell to view and edit the formula directly within the cell.
Editing a formula – Step 3 A border will appear around any referenced cells. In our example, we'll change the first part of the formula to reference cell D10 instead of cell D9 .
Editing a formula – Step 4 When you're finished, press Enter on your keyboard or select the Enter command in the formula bar.
Editing a formula If you change your mind, you can press the Esc key on your keyboard or click the Cancel command in the formula bar to avoid accidentally making changes to your formula.
MS Excel (Functions) Lesson Proper
MS Excel Functions A function is a predefined formula that performs calculations using specific values in a particular order. Excel includes many common functions that can be used to quickly find the sum , average , count , maximum value , and minimum value for a range of cells. In order to use functions correctly, you'll need to understand the different parts of a function and how to create arguments to calculate values and cell references.
The Parts of a Function In order to work correctly, a function must be written a specific way, which is called the syntax . The basic syntax for a function is the equals sign (=) , the function name (SUM, for example), and one or more arguments . Arguments contain the information you want to calculate. The function in the example below would add the values of the cell range A1:A20.
Working with Arguments Arguments can refer to both individual cells and cell ranges and must be enclosed within parentheses . You can include one argument or multiple arguments, depending on the syntax required for the function.
Working with Arguments For example, the function =AVERAGE(B1:B9) would calculate the average of the values in the cell range B1:B9. This function contains only one argument.
Working with Arguments Multiple arguments must be separated by a comma . For example, the function =SUM(A1:A3, C1:C2, E1) will add the values of all of the cells in the three arguments.
Creating a Function There are a variety of functions available in Excel. Here are some of the most common functions you'll use: SUM : This function adds all of the values of the cells in the argument. AVERAGE : This function determines the average of the values included in the argument. It calculates the sum of the cells and then divides that value by the number of cells in the argument.
Creating a Function COUNT : This function counts the number of cells with numerical data in the argument. This function is useful for quickly counting items in a cell range. MAX : This function determines the highest cell value included in the argument. MIN : This function determines the lowest cell value included in the argument.
AutoSum Function The AutoSum command allows you to automatically insert the most common functions into your formula, including SUM, AVERAGE, COUNT, MIN, and MAX. In the example below, we'll use the SUM function to calculate the total cost for a list of recently ordered items.
AutoSum Function – Step 1 Select the cell that will contain the function. In our example, we'll select cell D13 . ₱ ₱ ₱ ₱ ₱ ₱ ₱ ₱ ₱ ₱
AutoSum Function – Step 2 In the Editing group on the Home tab, click the arrow next to the AutoSum command. Next, choose the desired function from the drop-down menu. In our example, we'll select Sum .
AutoSum Function – Step 3 Excel will place the function in the cell and automatically select a cell range for the argument. In our example, cells D3:D12 were selected automatically; their values will be added to calculate the total cost. If Excel selects the wrong cell range, you can manually enter the desired cells into the argument.
AutoSum Function – Step 3
AutoSum Function – Step 4 Press Enter on your keyboard. The function will be calculated , and the result will appear in the cell. In our example, the sum of D3:D12 is $765.29 .
AutoSum The AutoSum command can also be accessed from the Formulas tab on the Ribbon .
AVERAGE FUNCTION If you already know the function name, you can easily type it yourself. In the example below (a tally of cookie sales), we'll use the AVERAGE function to calculate the average number of units sold by each troop.
AVERAGE FUNCTION – Step 1 Select the cell that will contain the function. In our example, we'll select cell C10 .
AVERAGE FUNCTION – Step 2 Type the equals sign (=), and enter the desired function name . You can also select the desired function from the list of suggested functions that appears below the cell as you type. In our example, we'll type =AVERAGE .
AVERAGE FUNCTION – Step 3 Enter the cell range for the argument inside parentheses . In our example, we'll type (C3:C9) . This formula will add the values of cells C3:C9, then divide that value by the total number of values in the range.
AVERAGE FUNCTION – Step 4 Press Enter on your keyboard. The function will be calculated, and the result will appear in the cell. In our example, the average number of units sold by each troop is 849 .
COUNTA FUNCTION The use of COUNTA function is to count the total number of items in the Items column. Unlike COUNT, COUNTA can be used to tally cells that contain data of any kind, not just numerical data.
COUNTA FUNCTION – Step 1 Select the cell that will contain the function. In our example, we'll select cell B17 .
COUNTA FUNCTION – Step 2 Click the Formulas tab on the Ribbon to access the Function Library .
COUNTA FUNCTION – Step 3 From the Function Library group, select the desired function category . In our example, we'll choose More Functions , then hover the mouse over Statistical .
COUNTA FUNCTION – Step 4 Select the desired function from the drop-down menu. In our example, we'll select the COUNTA function, which will count the number of cells in the Items column that are not empty.
COUNTA FUNCTION – Step 5 The Function Arguments dialog box will appear. Select the Value1 field, then enter or select the desired cells. In our example, we'll enter the cell range A3:A12 . You may continue to add arguments in the Value2 field, but in this case we only want to count the number of cells in the cell range A3:A12 .
COUNTA FUNCTION – Step 5 When you're satisfied, click OK .
COUNTA FUNCTION – Step 6 The function will be calculated , and the result will appear in the cell. In our example, the result shows that a total of 10 items were ordered.
COUNTA FUNCTION – Step 6 The function will be calculated , and the result will appear in the cell. In our example, the result shows that a total of 10 items were ordered.
Excel MIN and MAX Functions Finding the lowest and highest values with the MIN and MAX functions. Use with the IF function, to create MIN IF and MAX IF formulas.
Excel MIN Functions To find the lowest value in a range of cells, use the MIN function. For example, this formula will find the lowest value in cells H2:H17 =MIN(H2:H17)
Excel MAX Functions To find the highest value in a range of cells, use the MAX function. For example, this formula will find the highest value in cells H2:H17 =MAX(H2:H17)
Excel MIN IF Formula Although Excel has a SUMIF function and a COUNTIF function, there is no MINIF function. To create your own MINIF, you can combine the MIN and IF functions in an array formula.
Excel MIN IF Formula In this example, we'll find the lowest value for a specific product in a sales list with multiple products. The formula will be entered in cell D2, then copied down to D5.
Excel MIN IF Formula First, enter the MIN and IF functions, and their opening brackets: =MIN(IF( Next, select the product names in the sales list, and press the F4 key, to lock the reference. =MIN(IF($G$2:$G$17 Type an equal sign, and click on the cell with the product name criteria. This reference will not be locked. =MIN(IF($G$2:$G$17=C2
Excel MIN IF Formula Type a comma, then select the quantity cells in the sales list. Press the F4 key, to lock this reference. =MIN(IF($G$2:$G$17=C2,$H$2:$H$17 To finish the formula, type two closing brackets, and then press Ctrl+Shift+Enter to array-enter the formula. =MIN(IF($G$2:$G$17=C2,$H$2:$H$17))
Excel MIN IF Formula In the formula in the Formula Bar shown, you can see that curly brackets were automatically added at the start and end of the formula, because it was array-entered.
Excel MIN IF Formula If you don't see those curly brackets, you pressed Enter, instead of Ctrl + Shift + Enter. To fix it, click somewhere in the formula bar, and press Ctrl + Shift + Enter.
Excel MIN IF Formula Then, copy the formula down, to the rows below, to see the minumum for each of the products.
Excel MAX IF Formula Although Excel has a SUMIF function and a COUNTIF function, there is no MAXIF function. To create your own MAXIF, you can combine the MAX and IF functions in an array formula.
Excel MAX IF Formula In this example, we'll find the highest value for a specific product in a sales list with multiple products.
Excel MAX IF Formula First, enter the MAX and IF functions, and their opening brackets: =MAX(IF( Next, select the product names in the sales list, and press the F4 key, to lock the reference. =MAX(IF($G$2:$G$17 Type an equal sign, and click on the cell with the product name criteria. This reference will not be locked. =MAX(IF($G$2:$G$17=C2
Excel MAX IF Formula Type a comma, then select the quantity cells in the sales list. Press the F4 key, to lock this reference. =MAX(IF($G$2:$G$17=C2,$H$2:$H$17 To finish the formula, type two closing brackets, and then press Ctrl+Shift+Enter to array-enter the formula. =MAX(IF($G$2:$G$17=C2,$H$2:$H$17))
Excel MAX IF Formula In the formula in the Formula Bar shown , you can see that curly brackets were automatically added at the start and end of the formula, because it was array-entered.
Excel MAX IF Formula If you don't see those curly brackets, you pressed Enter, instead of Ctrl + Shift + Enter. To fix it, click somewhere in the formula bar, and press Ctrl + Shift + Enter.
Excel MAX IF Formula Then, copy the formula down, to the rows below, to see the maximum for each of the products.
Integration Make a survey in your class at least 20 of your classmate regarding on what parish did they go for Sunday mass. Enter the data on Excel then using count function make a summary of Parish and number of students who come for Sunday mass.
Assessment Using the data of First Quarter Grade find the lowest Score, Median Score, Highest Score, and Average Score. You must use functions and formula in Excel. Average Score
Assessment Average Score
References Intro to Formulas retrieved from: https://edu.gcfglobal.org/en/excel2016/intro-to-formulas/1/ MS Excel Functions retrieved from: https://edu.gcfglobal.org/en/excel2016/functions/1/ Min and Max Spreadsheet retrieved from: https://spreadsheeto.com/min-max/