Adv. Excel Visualization

 

Practical 10 – Auditing Formulas with Trace Precedents and Dependents

1. Objective

The primary objective of this practical is to familiarize students with Excel’s powerful formula auditing tools: Trace Precedents and Trace Dependents. Students will learn to:

·         Identify which cells contribute to a formula’s result using Trace Precedents.

·         Identify which formulas use the value of a specific cell using Trace Dependents.

·         Understand the flow of data and calculations within a complex spreadsheet.

·         Effectively troubleshoot errors and verify the accuracy of formulas.

·         Navigate and remove tracing arrows.

2. Introduction

In complex Excel worksheets, formulas often depend on values from many other cells, and a single cell’s value might be used in multiple calculations elsewhere. Understanding these relationships is crucial for auditing, debugging, and confidently modifying spreadsheets. Excel’s "Trace Precedents" and "Trace Dependents" tools provide a visual map of these interconnections, making it easy to see where data comes from (precedents) and where it goes (dependents). This practical will demonstrate how to use these tools on your academic marksheet to gain a deeper insight into its underlying calculations.

3. Pre-requisites

·         Successful completion of Practical 3 and Practical 6.

·         Basic understanding of Microsoft Excel interface and formula entry.

4. Software Required

·         Microsoft Excel

5. Procedure: Practical Steps with Examples

Ensure you have your completed marksheet from Practical 3 open. We will use this table to demonstrate and practice these auditing tools.

Step 5.1: Opening the Marksheet

1.     Open the Marksheet: Open the Excel workbook containing your Marksheet from Practical 3. Ensure all formulas for Total Marks, Percentage, Grade, and Result are present and calculating correctly.

Step 5.2: Using Trace Precedents

Trace Precedents helps you identify all the cells that contribute to the value of the currently selected cell. It shows arrows pointing from the precedent cells to the active cell.

1.     Select a Cell with a Formula: Click on cell G4 (Alice’s Total Marks). This cell contains the formula =SUM(B4:F4).

2.     Activate Trace Precedents:

o    Go to the Formulas tab on the Excel ribbon.

o    In the Formula Auditing group, click the Trace Precedents button.

o    Observation: Blue arrows will appear, pointing from cells B4 through F4 to cell G4. This visually confirms that Alice’s total marks are derived from her scores in Subject 1 to Subject 5.

3.     Trace Another Level:

o    Now, click on cell H4 (Alice’s Percentage). This cell contains a formula that uses G4.

o    Click Trace Precedents again.

o    Observation: Arrows will now point from G4 and the cell containing 500 (the maximum marks, if explicitly referenced) to H4. This shows that the percentage is dependent on the total marks.

4.     Keep Tracing (if applicable): If H4 was dependent on other formulas, clicking Trace Precedents multiple times can show deeper levels of dependency.

Step 5.3: Using Trace Dependents

Trace Dependents helps you identify all the cells that use the value of the currently selected cell in their formulas. It shows arrows pointing from the active cell to its dependent cells.

1.     Clear Existing Arrows: Before tracing dependents, it’s good practice to clear any existing arrows. On the Formulas tab, in the Formula Auditing group, click Remove Arrows.

2.     Select a Cell (Input/Intermediate): Click on cell B4 (Alice’s score in Subject 1).

3.     Activate Trace Dependents:

o    Go to the Formulas tab on the Excel ribbon.

o    In the Formula Auditing group, click the Trace Dependents button.

o    Observation: An arrow will appear, pointing from B4 to G4 (Alice’s Total Marks), indicating that G4 uses the value of B4.

4.     Trace Another Level:

o    Now, click on cell G4 (Alice’s Total Marks).

o    Click Trace Dependents again.

o    Observation: Arrows will now point from G4 to H4 (Alice’s Percentage) and potentially to I4 and J4 if those formulas directly reference G4 or H4 which, in turn, references G4. This shows where Alice’s total marks are being used.

5.     Identify Dependents of an Intermediate Calculation:

o    Click on cell H4 (Alice’s Percentage).

o    Click Trace Dependents.

o    Observation: Arrows will point from H4 to I4 and J4, confirming that both her grade and pass/fail status depend on her percentage.

Step 5.4: Removing Arrows

After you’ve finished auditing, you can easily remove the tracing arrows.

1.     Remove All Arrows: On the Formulas tab, in the Formula Auditing group, click the Remove Arrows button.

o    Observation: All the blue and red arrows will disappear from your worksheet.

2.     Remove Arrows in Steps: Clicking the small dropdown arrow next to Remove Arrows gives you options to Remove Precedent Arrows or Remove Dependent Arrows specifically. This can be useful in complex scenarios if you only want to clear certain types of arrows.

Step 5.5: Understanding Error Tracing

If a formula results in an error (e.g., #DIV/0!), the Error Checking and Trace Error features can help you identify the source of the problem.

1.     Introduce an Error: In cell B4, temporarily change Alice’s Subject 1 marks to 0. Then, in a blank cell (e.g., O4), type =G4/0 and press Enter. This will generate a #DIV/0! error.

2.     Trace Error:

o    Select cell O4 (which contains the error).

o    On the Formulas tab, in the Formula Auditing group, click the Error Checking dropdown and select Trace Error.

o    Observation: Arrows will appear, pointing from the cells that cause the error to the error cell. In this case, an arrow might point from G4 (though G4 isn’t the direct cause, 0 is) and from the cell containing 0 (if you typed =G4/A_Cell_With_Zero).

3.     Clear Errors and Arrows: Undo the changes or delete the error formula. Click Remove Arrows.

6. Exercises / Tasks

Apply the concepts learned to complete the following tasks using your marksheet:

1.     Total Marks Audit:

o    For a different student (e.g., Bob), select his Total Marks cell (G5).

o    Use Trace Precedents to see which subject scores contribute to his total. Take a screenshot.

o    Clear arrows.

2.     Subject Impact Analysis:

o    Select Subject 3 score for Alice (D4).

o    Use Trace Dependents to identify where this specific score is used in her calculations (e.g., total marks, percentage, grade, result). Take a screenshot.

o    Clear arrows.

3.     Pass/Fail Determination:

o    Select the Result cell for a student who Passed (J4).

o    Use Trace Precedents to see how their result was determined. Observe the chain of dependencies back to the raw subject scores.

o    Clear arrows.

4.     Grade Calculation:

o    Select the Grade cell for a student who received Grade B (I5).

o    Use Trace Precedents to understand which percentage value led to that grade.

o    Clear arrows.

5.     Debugging Challenge:

o    Intentionally make an error in one of your formulas (e.g., accidentally delete one subject score from B4, making G4 show #VALUE!).

o    Use Trace Error to pinpoint the source of the error. Once identified, correct the error.

o    Clear arrows.

7. Assessment / Deliverables

·         Submit the Excel workbook (.xlsx file) with your Marksheet.

·         Provide screenshots for Exercise 1 and Exercise 2, clearly showing the tracing arrows.

·         Be prepared to demonstrate to your instructor how to use Trace Precedents, Trace Dependents, and Remove Arrows, and how to interpret the tracing arrows.

·         Be able to explain how these tools are useful for auditing and debugging spreadsheets.

 

 

   

Assignment: Single Course Grade Tracker – “My Grades, My Sheet”

Purpose/Objective: This assignment is designed to solidify your understanding of fundamental Excel operations: efficient data entry, applying simple formulas, using relative and absolute cell references correctly, and basic formatting within a single worksheet. This forms the essential groundwork for managing and analyzing data.

Scenario: You are a student trying to keep track of your performance in a single course, “Introduction to Programming.” You have received scores for various assessments and need to organize them in Excel to calculate your total score, percentage, and determine your pass/fail status. You also want to see some basic class statistics.

Instructions:

<![if !supportLists]>1. <![endif]>Setup the Worksheet:

<![if !supportLists]>o <![endif]>Open a new Excel workbook.

<![if !supportLists]>o <![endif]>Rename Sheet1 to Programming Grades.

<![if !supportLists]>2. <![endif]>Enter Data:

<![if !supportLists]>o <![endif]>Starting from cell A1 in the Programming Grades sheet, enter the following header row: Student Name | Assignment 1 | Quiz 1 | Midterm | Final Exam | Total Score | Percentage | Pass/Fail Status

<![if !supportLists]>o <![endif]>Enter data for at least 7 students (you can use your friends’ names, or hypothetical names). Input scores for each assessment. Make sure some students have scores that would result in a “Pass” and some a “Fail” later.

Student Name

Assignment 1

Quiz 1

Midterm

Final Exam

Emily Chen

18

12

35

55

David Lee

15

10

28

45

Sarah Kim

19

14

38

58

John Doe

10

5

20

30

Maria Garcia

17

11

32

50

Alex Wang

12

8

25

38

Linda Brown

16

13

34

52

<![if !supportLists]>3. <![endif]>Define Total Possible Marks and Pass Threshold:

<![if !supportLists]>o <![endif]>In cell K1 (or any empty cell outside your main data table), type Total Possible Marks:.

<![if !supportLists]>o <![endif]>In cell L1, calculate the sum of the maximum marks for all assessments (20 + 15 + 40 + 60 = 135). So, enter 135 in L1.

<![if !supportLists]>o <![endif]>In cell K2, type Pass Threshold (%):.

<![if !supportLists]>o <![endif]>In cell L2, enter 0.40 (for 40%). Format this cell as Percentage with 0 decimal places.

<![if !supportLists]>4. <![endif]>Calculate Total Score for Each Student:

<![if !supportLists]>o <![endif]>In cell F2, write a formula to sum the scores for Assignment 1, Quiz 1, Midterm, and Final Exam for the first student.

<![if !supportLists]>o <![endif]>Hint: Use the SUM function.

<![if !supportLists]>o <![endif]>Task: Ensure you use relative references so that when you copy this formula down, it automatically calculates the total for each student in their respective row.

<![if !supportLists]>o <![endif]>Copy the formula down for all other students.

<![if !supportLists]>5. <![endif]>Calculate Percentage for Each Student:

<![if !supportLists]>o <![endif]>In cell G2, write a formula to calculate the percentage for the first student. This will be their Total Score divided by the Total Possible Marks (from cell L1).

<![if !supportLists]>o <![endif]>Task: This is a crucial step for understanding references. Your formula must use an absolute reference for the Total Possible Marks (cell L1) so that when you copy the formula down, every student’s total score is divided by the same overall maximum.

<![if !supportLists]>o <![endif]>Copy the formula down for all other students.

<![if !supportLists]>o <![endif]>Task: Format column G as Percentage with 2 decimal places.

<![if !supportLists]>6. <![endif]>Determine Pass/Fail Status:

<![if !supportLists]>o <![endif]>In cell H2, write an IF statement: If the Percentage (from column G) is greater than or equal to the Pass Threshold (%) (from cell L2), display “Pass”; otherwise, display “Fail”.

<![if !supportLists]>o <![endif]>Task: Use an absolute reference for the Pass Threshold (%) (cell L2).

<![if !supportLists]>o <![endif]>Copy the formula down for all other students.

<![if !supportLists]>7. <![endif]>Basic Class Statistics:

<![if !supportLists]>o <![endif]>Below your student data (e.g., starting in cell A10 or so), calculate the following:

<![if !supportLists]>§  <![endif]>Average Class Score

<![if !supportLists]>§  <![endif]>Highest Score

<![if !supportLists]>§  <![endif]>Lowest Score

<![if !supportLists]>§  <![endif]>Average Class Percentage

<![if !supportLists]>§  <![endif]>Number of Students Passed

<![if !supportLists]>§  <![endif]>Number of Students Failed

<![if !supportLists]>o <![endif]>Task: Use AVERAGE, MAX, MIN functions for scores/percentages.

<![if !supportLists]>o <![endif]>Task: Use COUNTIF for “Number of Students Passed” and “Number of Students Failed”.

<![if !supportLists]>o <![endif]>Format the average, highest, and lowest percentage cells as Percentage with 2 decimal places.

<![if !supportLists]>8. <![endif]>Formatting and Presentation:

<![if !supportLists]>o <![endif]>Apply Bold and Center Alignment to your main header row (A1:H1).

<![if !supportLists]>o <![endif]>Apply All Borders to your entire student data table (from headers down to the last student’s data).

<![if !supportLists]>o <![endif]>Adjust column widths to ensure all text and numbers are clearly visible.

<![if !supportLists]>o <![endif]>Conditional Formatting:

<![if !supportLists]>§  <![endif]>Select the Pass/Fail Status column (H2 downwards to the last student).

<![if !supportLists]>§  <![endif]>Go to Home tab > Conditional Formatting > Highlight Cells Rules > Text that Contains….

<![if !supportLists]>§  <![endif]>Set a rule to highlight cells containing “Pass” with Green Fill with Dark Green Text.

<![if !supportLists]>§  <![endif]>Set another rule to highlight cells containing “Fail” with Light Red Fill with Dark Red Text.

Deliverables: Submit the completed Excel file (.xlsx).