COURSE 1 – PREPARING DATA FOR ANALYSIS WITH MICROSOFT EXCEL

Module 2: Formulas and functions

MICROSOFT POWER BI DATA ANALYST PROFESSIONAL CERTIFICATE

Complete Coursera Study Guide

Last updated:

INTRODUCTION – Formulas and functions

This module provides an in-depth introduction to formulas and functions in Excel, highlighting their critical importance to data analysis. It delves into how these tools can be effectively utilized to interpret and manipulate data, facilitating more informed decision-making processes. By examining various business scenarios, the module demonstrates the practical applications of Excel’s formulas and functions, showcasing how they can streamline operations, enhance productivity, and drive better business outcomes. Through this comprehensive exploration, users will gain a thorough understanding of how to leverage Excel’s computational capabilities to analyze data efficiently and effectively in a range of professional contexts.

Learning Objectives

  • Recognize correct syntax for formulas and function calculations.
  • Use common formulas and functions in a worksheet.

SELF-REVIEW: CALCULATING PROFIT AND MARGIN

In the exercise Calculating profit and margin, you helped Adventure Works to calculate their annual profits and margins using the dataset in the worksheet Jan-Dec in the Microsoft Workbook Revenue figures.

Your final worksheet should resemble the following screenshot:

AD 4nXc5t GCMIiDChMupqpPGgIL6OpcWtUHd8r619Rymh UU8ktK863zey1OOwaEalxxR3IPNqy67UaVcNKFk4XdGs4RepHf6ME1B8W2Y4 x yFPadJzpJX9OJmoyKWsEsCJoNKO39Y1b 6nfyPK5KC9yvmJysB0kVo9vAnisPaAfNe JZ05vmoPcc?key=R1gj4Ab2ZVG

Now it’s time to review your understanding of the tasks you completed by answering the questions that follow. Don’t forget that you can revisit the previous learning items to recap the process steps.

1. When you created the calculation in cell G4, you were able to use the double-click shortcut to Autofill copies of the formula into the cells underneath. What data did Excel use as a visual reference to determine when to stop copying the formula?

  • The block of information in row 201. 
  • The block of information in column F. (CORRECT)
  • The block of information in column K.

That’s correct! There needs to be a block of data to the immediate left or right of the cursor position for the double-click Autofill shortcut to work. 

2. In cell H4 you created a formula that worked out the total shipping cost. Cell P1 contained the $5 per item shipping charge. Column F contained multiple rows of entries. Which of the following was the correct syntax for the formula to ensure that it copied correctly when you used the Autofill shortcut?

  • =$F$4*P1
  • =F4*P1
  • =F4*$P$1 (CORRECT)

That’s correct! The per-item shipping cost is a single entry in cell P1. The dollar signs before the column initial and row number ensure that the formula always uses the value in P1 to multiply by when the formula is copied down through the column. The F4 reference does not need dollar signs because it adjusts row on row to focus on the different numbers for items in column F.

3. In cell J4, you created a formula with parentheses to set a new retail price by adding numbers together and working out a percentage increase. What result did you get for the calculation? 

  • $224.66
  • $333.24 (CORRECT)
  • $222.16

That’s correct! If you placed parentheses around the addition, Excel would have added the two costs together before processing the multiplication to calculate the percentage. You should also have added dollar signs on P1 to ensure that the reference stays constant when the formula is copied down through the column.

4. You are creating a formula in a worksheet called Summary. This formula also includes a reference to cell H2 in a worksheet called Products. How will this reference appear in the formula?

  • ProductsH2
  • Products!H2 (CORRECT)
  • H2

That’s correct! The exclamation mark separates the worksheet name from the cell reference and allows Excel to correctly identify the cell.

5. You are creating a calculation in your worksheet. You want Excel to subtract a figure held in C5 from a total held in H2 and then for the result to be divided by four. Which formula will calculate this correctly?

  •  =H2-C5/4
  • =(H2-C5)/4 (CORRECT)
  • =C5-H2/4

That’s correct! The parentheses surrounding the subtraction element of this calculation ensure that it is processed first, and the result will be then divided by four.

6. A Microsoft Excel worksheet contains the following formula:

=A2*B3/C2+D4

Which operator in this calculation will Excel process first?

  • Addition
  • Multiplication (CORRECT)
  • Division

That’s correct! The multiplication and division operators have greater priority than the addition, though they are equal. Excel will process them first and work left to right in the calculation.

KNOWLEDGE CHECK: FORMULAS IN EXCEL

1. You are creating a formula in cell C2 in your worksheet. The calculation only needs to appear in cell C2. You have typed the following formulas: 

A3*D15/45*F17

However, there is an error in the syntax of this formula. What part of the formula is missing?

  • Parentheses
  • Dollar Signs
  • An Equals Sign (CORRECT)

Feedback: That’s correct. All calculations must begin with an Equals sign so that Excel is able to recognize that the cell contains a formula.

2. Cell D2 of your worksheet contains the weekly sales total. Cell D7 contains the overall monthly sales. You need cell E2 to show what percentage the week one total is of the overall monthly total. You’ve already applied the percentage format to E2. Which of the following options is the correct syntax for the formula?

  • =D2/D7 (CORRECT)
  • =D7/D2
  • =D2/D7*100

That’s correct. The weekly sales total (subtotal) needs to be divided by the overall monthly total (the overall total). The Percentage format already applied to the cell will multiply the result by 100 to display it as a percentage.

3. True or False: When Excel processes the following formula, it will first multiply cell A1 by cell C3 before it processes the addition.

=(B15+D45)-(A1*C3)

  • True
  • False (CORRECT)

That’s correct! The two pairs of parentheses control how Excel steps through the calculation. When there is more than one set of parentheses listed in a linear fashion, Excel will process them from left to right.

4. You have created the following formula in your worksheet:

=D4+$C$6-E4+F6

You use the Autofill feature to copy the formula down the column. Which of the cell references will update with new row numbers?

  • C6, E4, F6
  • D4, C6, E4
  • D4, E4, F6 (CORRECT)

That’s correct. These are the cell references in the formula which do not contain dollar signs. As they are still Relative References, the row numbers will update when the formula is copied down the column.

5. What mathematical sign does Excel process last when calculating the results of the following formula?

=D4+C3/N5*B3

  • The plus sign. (CORRECT)
  • The Division sign.
  • The Multiplication sign.

That’s correct! Excel assigns a higher priority to multiplication and division. So, it will execute both actions before performing the addition. It will process those symbols left to right as it encounters them because it assigns the same priority to multiplication and division.

SELF-REVIEW: PREPARING A MONTHLY SALES REPORT

In the ungraded exercise, you completed a series of tasks to prepare a monthly sales report for Adventure Works.

You first downloaded the file Monthly sales report.xlsx. You then created a series of calculations to determine the total sales amount for the month of April.

A screenshot of the worksheet is included for reference.

AD 4nXectX33J3 0is ALWhtEW9WwZd086k4d9GFH gCqhY gZrhvWDRUBQOhSZfAqSOds81Iu3CJUBOeRb6jqurKHyv1wo2CSygfjPQlgU 9bRrdkjJJc2PNotKEpzMQEKLNOF2qbTAnkKauG2Ky7filKplybXjvxdsIlZTTZpDKYFco77g9To8nRk?key=R1gj4Ab2ZVG

Now it’s time to review your understanding of the tasks you complete by answering the questions that follow. Don’t forget that you can refer to previous lesson items to recap your process steps.

1. Cell C34 in your worksheet is blank and cell C35 contains a formula. The cursor is on C36. If you use the AutoSum shortcut to add a SUM formula, which cell range does Excel automatically suggest as the argument for the function?

  • C34 (CORRECT)
  • C36
  • C35

That’s correct! Excel looks up above the cursor position to identify suggested arguments for the SUM function formula. It suggests the value in C35 directly above the cursor position but does not include the blank cell above that because it is empty.

2. True or False: When you created the Total Revenue formula in C35, the results appeared as dollar amounts because the Accounting format had been applied to the cell in advance.

  • True
  • False (CORRECT)

That’s correct! In fact, cell C35 was still formatted as general when the workbook opened. The format changed automatically on C35 when the formula in it referenced the cell range E4 to E33. Because those cells had the Accounting format applied, the same format was automatically applied to the results in C35.

3. When you created the formula in C39 to count how many days there were in the month, what answer did the formula produce?

  • 0
  • 31
  • 30 (CORRECT)

That’s correct! When the / character is used to separate the numeric components of a date, Excel recognizes it as a number. So, a COUNT function formula would count the dates correctly.

4. You need to access the full range of functions available in Excel. Which ribbon do you need to select to access the full library of functions?

  • The Formula ribbon. (CORRECT)
  • The Data ribbon.
  • The Home ribbon.

That’s correct! The Function Library is visible on the left-hand side of the Formula ribbon. It displays the different category names and then the individual functions on the drop-down lists under each category heading.

5. You need to access the Insert function feature to create a function formula. What actions can you take to access this feature? Select all that apply:

  • Use the Insert function choice on the Formulas ribbon. (CORRECT)
  • Use the FX symbol to the left of the Formula bar. (CORRECT)
  • Use the Name box beside the Formula bar.

That’s correct! The Insert function button opens the Insert function dialog.

That’s correct! Selecting the FX symbol just to the left of the Formula bar opens the Insert function dialog.    

KNOWLEDGE CHECK: GETTING STARTED WITH FUNCTIONS

1. Which of the following items are part of a function formula? Select all that apply:

  • Parentheses (CORRECT)
  • An equals sign (CORRECT)
  • Periods
  • The function name (CORRECT)

That’s correct! The function arguments must be enclosed in parentheses in the formula.

That’s correct! A function formula, like any other formula,  must begin with an equals sign so that Excel can identify it as a formula.

That’s correct! A function formula needs to contain a single word which is the name of the function.

2. You need to know how many cells in a cell range contain entries. The cells with entries contain a mixture of text and numeric entries. Which function should you use in this situation? 

  • COUNTA (CORRECT)
  • COUNT
  • COUNTBLANK

That’s correct! The results of the COUNTA function include any cell that has content. This means that it will include cells with numeric and with text entries.

3. Three cells in your worksheet contain numbers. Cell D7 holds the number 10, D8 contains the number 20, and D9 contains the number 30. What is the result of the following formula when added to cell D10? 

  • =MAX(D7:D8) 
  • 10
  • 30
  • 20 (CORRECT)

That’s correct! The formula addresses the cell range D7:D8. 20 is the largest value of the two in this cell range and is the correct answer.

4. Cells B1 to B3 in your worksheet contain numbers. Cell B4 has a piece of text. You add an AVERAGE function formula to cell B5, which works out the average of cells B1 to B4. How will Excel work out the average?

  • Total the numbers in B1 to B3 and divide by 4.
  • Total the numbers in B1 to B3 and divide by 5.
  • Total the numbers in B1 to B3 and divide by 3. (CORRECT)

That’s correct! At this point, Excel ignores the cell that contains text when calculating the average. It instead totals the three numbers in B1 to B3 and divides them by 3 to give a true “point in time” average.

5. Cell E4 in your worksheet contains the value 300, cell E5 the value 300, and cell E6 the value 0. What is the correct answer to the following formula when added to your worksheet?

=AVERAGE(E4:E6)

  • 300
  • 200
  • 100 (CORRECT)

That’s correct! All three cells contain numbers, so Excel first adds together the values in cells E4 and E5 and then divides the result by three.

MODULE QUIZ: FORMULAS AND FUNCTIONS

1. You need to add a new figure in cell H52 of a workbook. However, you accidentally begin typing the number in cell H51, which already contains data. What key can you press to cancel your entry?

  • The Enter key.
  • The F4 Key.
  • The ESC key. (CORRECT)

That’s correct. If you begin editing a cell in error, you can press the ESC key to exit Edit mode and restore the original content. 

2. True or False: The following formula automatically recalculates and the result updates if new values are entered in any of the referenced cells.

=A2+F3-H3

  • True (CORRECT)
  • False

That’s correct! This formula contains cell references, which means it will update when values in those cell references update.

3. Row one of your spreadsheet contains the following formula:    

=A1*C1/$B$1

If you use the Autofill feature to copy the formula down to the next row, what will the formula in row two be?

  • =A2*C2/$B$1 (CORRECT)
  • =A2*C2/$B$2
  • =A2*C1/$B$1

That’s correct. The dollar signs in cell reference B1 prevent Excel from changing the row numbers for those references. This means that it will copy exactly down to the next row.

4. You have created a formula in your worksheet which reads:

=(300+30)/(10-7)

What would the answer be?

  • 110 (CORRECT)
  • 296
  • 330

That’s correct! The parentheses in the formula instruct Excel to ignore the order of precedence. When there are multiple sets of parentheses in a formula, Excel processes them from left to right. In this case, the addition is calculated first because it’s in parentheses on the left. The subtraction is next because it is also in parentheses. Finally, the first subtotal is divided by the second subtotal.

5. Column B of your worksheet contains stock item prices. In cell C2 you need a formula to calculate the discount on the current stock price in B2 using the 10% discount rate in cell F2. You also need to copy this formula down column B to apply it to the other stock items listed. Which formula would calculate the discount and allow for the formula to be copied? 

  • =B2*$F$2 (CORRECT)
  • =B2/$F$2
  • =B2*F2

That’s correct! The value in cell F2 contains a percentage symbol. So, multiplying by this value calculates 10%. The dollar signs on the F2 reference make sure that it remains constant when the formula is copied down column B.

6. True or False: You are using the Insert Function feature to add a formula to your worksheet. You’ve switched to the category Math & Trig to find a function. The list of functions is organized in the order that they were recently used. 

  • True
  • False (CORRECT)

That’s correct! The functions are listed alphabetically in all the categories except for Most Recently Used.

7. As you type a function formula into a cell, a help message appears to remind you of the arguments required. How does the message display the optional arguments?

  • The arguments are contained in square brackets. (CORRECT)
  • The arguments are in bold.
  • The arguments are italicized.

That’s correct! The floating help message is a useful reminder of what information a function needs. Anything listed in bold is required, but anything that is optional is in square brackets.

8. According to the order of precedence, which mathematical operators would Excel automatically assign a higher priority to than a minus symbol? Select all that apply: 

  • Addition
  • Division (CORRECT)
  • Multiplication (CORRECT)

That’s correct! In the order of precedence table, a division operator is placed higher than a minus.

That’s correct! In the order of precedence table, a multiplication operator is placed higher than a minus.

9. Cell C7 in your worksheet contains the value 300, and cell A4 has the entry 12. Which of the following calculations would correctly calculate 12% of the value in C7? Both A4 and the formula cell have the General format applied. Select all that apply.

  • =C7/100*12%
  • =C7/100*A4 (CORRECT)
  • =C7/100*12 (CORRECT)

That’s correct. The value in A4 is formatted as a standard number. Dividing C7 by 100 would give the one percent value. You can then multiply by the value in A4 to obtain the twelve percent value.

That’s correct. The general format has been applied to the formula cell. So, dividing C7 by 100 would give the one percent value. Multiplying by 12 would give the twelve percent value.

10. Your team achieved sales of $35,000 last month and $45,000 this month. Which of the following calculations would work out the percentage they had increased their sales by? 

  • =(45000-35000)/35000 (CORRECT)
  • =(45000-35000)/45000
  • =(35000-45000)/35000

That’s correct. For this calculation, you must take this month’s sales figure and subtract last month’s figure to find the difference between them. Dividing the result by last month’s figure shows what the percentage increase is.

11. Cell E7 in your worksheet contains a value of 0. F7 contains a value of 100. Cell G7 contains a value of 200, and cell H7 contains a piece of text. What is the correct answer for the following formula?    

=COUNTA(E7:H7) 

  • 3
  • 4 (CORRECT)

The COUNTA function includes a cell in its count if the cell contains any content, either text or numeric. All cells in the range E7 to H7 have content, so the result of the formula is four.

12. Cell A1 of your spreadsheet contains the value 10. Cell B1 contains the value 5, and cell C1 contains the value 2. The formula you created in cell D1 reads:    

=A1*B1+$C$1

Row 2 of your spreadsheet is completely empty. If you were to copy the formula down to cell D2 what would the formula result be?

  • 52
  • 50
  • 2 (CORRECT)

That’s correct! The dollar signs on the C1 reference in the formula mean that the C1 reference would not change. This means that it would still use the value in C1 when calculating the addition in the formula.

13. What mathematical symbol is processed first in the following formula? 

=((A3+H4)/G7)*5

  • The Division symbol.
  • The Addition Symbol. (CORRECT)
  • The Multiplication Symbol.

That’s correct! If a formula contains sets of parentheses within other parentheses, then Excel processes the expression in the inner set of parentheses first. In this case, the inner set of parentheses contains the addition symbol.

14. You are creating a worksheet to track team performance. You know that the team increased their sales in May. The team’s April sales figures are in cell C5. Their sales figures for May are in cell D5. Which one of the following calculations would show you the percentage increase?

  • =(D5-C5)/C5 (CORRECT)
  • =(D5-C5)/D5
  • =(C5-D5)/D5

That’s correct. For this calculation, you must take the new value for May and subtract the old value for April to find the actual difference between the two sales figures. Dividing the result by the April figure shows what the percentage increase is.

15. Cell F7 contains a value of 100. Cell G7 has a value of 200, and cell H7 is empty. What is the correct answer for the following formula?    

=AVERAGE(F7:H7) 

  • 100
  • 150 (CORRECT)
  • 200

That’s correct! Only two of the three cells referenced in the formula contain numbers, so Excel adds the two values in F7 and G7 together and then divides the result by two.

16. What information must be added to the Number 1 and Number 2 boxes when working with the Function Arguments dialog to add a SUM function formula using the Insert Function wizard?

  • The name of the function. 
  • The function parentheses.
  • The function arguments. (CORRECT)

That’s correct! You must type the cell references for the cell range you need to total. These cell references are referred to as the Function Arguments.

17. You are using the Insert Function wizard to add a formula to your worksheet. When the Insert Function dialog opens, what Function category list is displayed?

  • Most Recently Used (CORRECT)
  • All
  • Math & Trig

That’s correct! The Most Recently Used category is displayed first to save you time. This list contains the functions that you have recently used in your worksheets.

18. The formulas in your worksheet are not recalculating. You discover that this is because the Automatic Calculation feature is turned off. Which ribbon can you access this feature from to turn it back on?

  • The Home Ribbon.
  • The Formula Ribbon. (CORRECT)
  • The Data Ribbon.

That’s correct! The Calculate Options drop-down list is in the calculation group on the right side of the Formula ribbon. If the word Automatic at the top of this drop-down list doesn’t have a tick mark beside it, then the Automatic calculation feature has been switched off. Select the word Automatic to switch the feature on again. 

19. True or False: You are working with the Number 1 and Number 2 boxes in the Function Arguments dialog in the Insert Function wizard. The Number 2 entry is not bolded, which means that it’s optional.

  • True (CORRECT)
  • False

That’s correct! The Number 2 box is an optional field. You can add cell references here if you need Excel to total multiple, discrete cell ranges.

20. Cell A4 in your worksheet contains the value 10. Cell A5 contains the value 100. Cell A6 contains the value 2. In cell A7 you have created the following formula: 

=10*100/2 

If you change the value in cell A6 to 4, then what would the result of this formula be?

  • 750
  • 500 (CORRECT)
  • 250

That’s correct! The formula contains fixed values and not cell references. This means that the formula will not recalculate and generate a new result if the content in A4, A5, or A6 is changed.

21. As you type a function formula into a cell, a help message appears to remind you of the arguments required. How does the message display these required arguments?

  • The arguments are in bold. (CORRECT)
  • The arguments are contained in square brackets.
  • The arguments are italicized.

That’s correct! The floating help message is a useful reminder of what information a function needs. Anything listed in bold is required, but anything that is optional is in square brackets.

22. What function does Excel use when the Count Number choice is selected from the AutoSum drop-down list?

  • COUNTBLANK
  • COUNT  (CORRECT)
  • COUNTA

That’s correct. The COUNT function only includes cells in the count if they contain numeric entries. To prevent any confusion, this choice in the AutoSum drop-down is labeled as Count Numbers.

CONCLUSION – Formulas and functions

In conclusion, this module offers a thorough exploration of formulas and functions in Excel, emphasizing their pivotal role in data analysis and their extensive use in various business scenarios. By understanding and applying these tools, users will be able to manipulate and interpret data with greater precision, leading to more informed decision-making and enhanced operational efficiency. This foundational knowledge empowers users to harness Excel’s full potential, ultimately driving better business outcomes and increasing overall productivity in their professional endeavors.