S
Course Logistics and Tooling Setup
Prerequisites and Environment Setup:
Software Requirements: Use the desktop version of Excel for Microsoft 365. Both Windows and macOS environments are supported for working with PivotTables.
Code Editing: A plain-text editor (such as Visual Studio Code) must be available for future programming modules.
Course Content Management: Lab instructions and submission details are located in the designated labs folder on OWL. Completed lab work must be checked by the instructor prior to departure.
Schedule of Activities (2026):
22 September: Data preparation review and Excel II.
29 September: Excel III.
6 October: Quiz 1 and Programming I.
13 October: Reading Week (no class scheduled).
Administrative Updates: Official schedule changes and course material updates are published on Brightspace and the course outline.

Jupyter Notebook Setup Guidelines:
Installation Reference URL:
https://jupyter.readthedocs.io/en/latest/install.htmlEnvironment Options: Jupyter Notebooks, Anaconda distribution, or Visual Studio Code (VSCode).
macOS Setup: Configuration can be performed via the terminal or within VSCode.
Windows Setup: Windows Subsystem for Linux (WSL) is recommended for native Linux tools, though VSCode provides a more streamlined installation path.
Implementation Timeline: Environment setup instructions will be provided prior to the start of Programming I following Quiz 1.
Data Preparation and Regular Expression Analysis
Data Preparation Lifecycle:
Data Pipeline Flow: Web page Raw records Clean table Analysis.
Structural Integrity: At every phase of data transformation, explicitly verify what a single row represents to ensure observational granular clarity.

Regular Expression Syntax and Evaluation:
.(Dot): Matches any single character except a newline character by default.*(Asterisk): Matches zero or more occurrences of the preceding element.(...)(Parentheses): Defines a capture group.\1(Backreference): Matches the exact text previously captured by capture group 1.

Pattern Evaluation Case Study:
(...).*\1Target Objective: Identify string tokens that contain a repeated sequence of three characters.
Word Analysis Results:
barbary: Capturesbarin group 1; matching repeated segment found ().gummage: No repeated 3-character group found ().entablement: Capturesentin group 1; matching repeated segment found ().mathematic: Capturesmatin group 1; matching repeated segment found ().corundum: No repeated 3-character group found ().Key Requirement: The backreferenced back-token must be an exact literal duplicate of the captured string sequence.

Generative Artificial Intelligence in Spreadsheet Workflows
AI Assistant Capabilities:
Formula Suggestion: Proposes dynamic worksheet formulas based on context.
Content Manipulation: Direct editing and structural modification of workbook elements.
Automated Summaries: Synthesis of data, chart generation, and automated PivotTable creation.
Deployment Constraints: Functionality access depends on software version, licensing level, and organizational security policy.
Human-in-the-Loop Review Pipeline:
Operational Flow: Business question Draft calculation Independent check Approved result.

Human Verification Protocols:
Unit and Metric Validation: Ensure output units match physical or financial reality.
Boundary and Range Inspection: Check applied filters, row boundaries, and explicitly referenced cell blocks.
Total Reconciliation: Verify underlying math against independent aggregated calculations.
Common AI Pitfalls:
Aggregation Pitfall Example: When prompted for "Average sales per order", AI systems frequently average existing regional averages rather than dividing total overall revenue by total order count.
Corrective Procedure: Inspect denominators directly and compare results against total sales divided by total order count.
Evolving Responsibilities of Analytics Professionals:
Shift in Effort: Less time spent manually constructing routine formulas; significantly more time allocated to data definitions, conceptual modeling, and verification.
Data Governance: Confidential and sensitive enterprise data must be processed exclusively through authorized and secured compliance workflows.
Fundamentals of Spreadsheet Architecture
Structural Overview:
Grid Structure: Worksheets organize data into horizontal rows and vertical columns of individual cells.
Cell Storage Types: Cells hold raw text, numeric parameters, or dynamic formulas.
Functional Purpose: Formulas create functional dependencies that connect explicit input data to dynamically updated output results.

Cell Contents vs. Visual Display:
Stored Value: The exact numerical value stored in memory (e.g., or ).
Displayed Value: The rendered value following visual formatting rules (e.g., or ).
Formatting Scope: Formatting changes font, background color, cell borders, and number display without altering underlying precision or memory value.

Data Types and Structural Pitfalls:
Text: String identifiers (e.g.,
Order S001). Common Pitfall: Storing numeric values as text, which prevents mathematical aggregation.Number: Numeric values (e.g., ). Common Pitfall: Hardcoding currency symbols directly inside the cell as text.
Date: Temporal values (e.g.,
2026-01-05). Common Pitfall: Day/month ordering ambiguity across regional settings.Logical: Boolean values (
TRUEorFALSE). Common Pitfall: Treating string literal"TRUE"as equivalent to BooleanTRUE.Core Rule: Standardize data types consistently within individual data columns.

Cell Coordinate Reference System:
Columns: Identified by alphabetical characters (e.g., Column
B, ColumnAA).Rows: Identified by sequential numerical integers increasing downwards (e.g., Row
4, Row99).Cell Address: Combination of column letter and row index (e.g.,
B4represents Column B, Row 4;AA99represents Column AA, Row 99).Rectangular Ranges: Defined by top-left cell and bottom-right cell separated by a colon (e.g.,
B2:E10encompasses all cells in the rectangle fromB2throughE10).

Multi-Cell Range Operations:
Grid Range Evaluation Example:
B2:D4encompasses a 3x3 matrix containing 9 total cells (Row 2: ; Row 3: ; Row 4: ).Sum Aggregation:
=SUM(B2:D4)evaluates to .

Formula Structure and Dynamic Dependencies:
Initialization: Formulas must begin with an equals sign (
=).Formula Components: Composed of constant values, cell references, standard mathematical operators, contiguous ranges, and built-in functions.
Dependency Chain Example: Units stored in
B2(), Price stored inC2($\text{CAD } ). Revenue calculated inD2via=B2*C2(). Updating any input cell automatically updates all dependent output cells.

Number Formatting Rules:
Stored formatted as Percentage (1 decimal place) displays as .
Stored formatted as Number (2 decimal places) displays as .
Stored formatted as Currency (CAD) displays as .
Stored formatted as Number (2 decimal places) displays as .
Operational Rule: Formatting rounds the visual presentation only; stored precision remains unrounded for calculations.
Troubleshooting Cell Formatting:
Column Width Errors (
####): Occurs when column width is insufficient to render the formatted string; resolve by increasing column width.Long Numeric Text Identifiers: Must be explicitly formatted as Text prior to string entry to prevent scientific notation conversion or loss of leading zeros.
Value Verification: Always verify raw values for dates and percentages in the formula bar.
Cut, Copy, and Paste Operations:
Windows Shortcuts: Copy (
Ctrl+C), Paste (Ctrl+V), Cut (Ctrl+X), Paste Special (Home > Paste).macOS Shortcuts: Copy (
Command+C), Paste (Command+V), Cut (Command+X), Paste Special (Home > Paste).Paste Special Mechanics: Explicitly select whether to paste values, formulas, or formatting properties.
Cell Referencing Mechanics
Reference Types Overview:
Relative Reference (
B4): Neither row nor column fixed. Shifts relative to copy destination.Mixed Column Fixed Reference (
$B4): ColumnBfixed; row shifts relatively.Mixed Row Fixed Reference (
B$4): Column shifts relatively; row4fixed.Absolute Reference (
$B$4): Both columnBand row4fixed.Range Locking: Absolute dollar signs apply to range bounds as well (e.g.,
$A$1:H$2).
Comparative Referencing Behavior (Origin Cell
D6copied to DestinationE5):Destination offset: Move 1 column right (), 1 row up ().
Relative Formula
=B4inD6: Becomes=C3inE5(points to cellC3).Fixed Column Formula
=B3inE5(points to cellB3).Fixed Row Formula
=B$4inD6: Becomes=C$4inE5(points to cellC4).Absolute Formula
=$B$4inD6: Remains=$B$4inE5(points to cellB4).
Currency Exchange Conversion Model:
Conversion Formula:
=A14*$B$11Operational Role:
A14stores a variable foreign currency value (e.g., USD);$B$11stores a fixed exchange conversion factor (CAD per USD ). Fixing$B$11allows downward formula copying across multiple transaction rows.
Named Ranges and Named Cells:
Single Cell Naming: Select single cell, type custom name (e.g.,
ExchangeRate) in Name Box. Formulas use literal names:=A14*ExchangeRate.Range Naming: Select continuous array, enter custom name (e.g.,
Revenue) in Name Box. Use directly in aggregation functions:=SUM(Revenue).
Formula Operators, Syntax, and Hierarchy
Operator Classification:
Arithmetic Operators:
+,-,*,/,%,^. Example:=2^3evaluates to .Comparison Operators:
=,>,<,>=,<=,<>. Example:=B2>=20evaluates to BooleanTRUEorFALSE.Text Concatenation Operator:
&. Example:="Wednes"&"day"evaluates to string"Wednesday".
Precedence Hierarchy and Parentheses:
Evaluation Order: Parentheses Exponents Multiplication and Division Addition and Subtraction.
Order Impact Example:
=10+2*3evaluates to ;=(10+2)*3evaluates to .
Reference Operators:
Range Operator (
:): References all cells between two endpoints inclusive. Example:=SUM(B5:B15).Union Operator (
,): Combines multiple distinct references. Example:=SUM(B5:B15,C5:C14).Intersection Operator ( space character): Identifies overlapping cells common to both ranges. Example:
=SUM(B5:B15 B6:B16)evaluates exclusively over rangeB6:B15.
Cross-Worksheet External Referencing:
Syntax Structure:
='SheetName'!CellAddressExample:
='Formula Practice'!B11or=Merch!A3.Quotation Rule: Worksheet names containing spaces or non-alphanumeric characters must be wrapped in single quotation marks.
Statistical, Financial, and Logical Functions
Statistical Summary Functions:
AVERAGE: Computes arithmetic mean of numeric cells.COUNT: Counts cells containing numeric entries.MIN/MAX: Identifies lowest and highest numeric values in a dataset.CORREL: Calculates Pearson linear correlation coefficient between two aligned equal-sized ranges.STDEV.S/STDEV.P: Calculates sample standard deviation () and population standard deviation ().RANK.EQ: Returns relative rank of a value within an array; ties share top rank.PERCENTILE.INC: Returns -th percentile of values inclusive of bounds and .Legacy Compatibility Note:
RANK,PERCENTILE, andSTDEVrepresent older compatibility functions.
Statistical Function Calculation Check (Dataset: ):
=SUM(10, 40, 20, 30)evaluates to .=AVERAGE(10, 40, 20, 30)evaluates to .=STDEV.S(10, 40, 20, 30)evaluates to .=MIN(10, 40, 20, 30)evaluates to .=RANK.EQ(10, (10, 40, 20, 30), 0)(descending order) evaluates to rank .
Financial Valuation Functions:
PV/FV: Computes Present Value and Future Value.NPV: Calculates Net Present Value of periodic stream of future cash flows at a specified discount rate.DB: Computes asset depreciation using fixed declining-balance method.IPMT: Computes interest payment portion of an installment loan.Alignment Constraint: Discount rate period must strictly match payment cash flow frequency.
Financial Calculation Examples:
Future Value:
=FV(5%, 3, 0, -1000)models investing for annual periods at interest with zero additional payments. Output evaluates to .Net Present Value:
=NPV(10%, 400, 400, 400) - 1000models initial cash outflow of today followed by cash inflows at the end of years 1, 2, and 3 discounted at . Output evaluates to approximately .
Boolean Logic and Conditional Operations:
Truth Tables:
AND(A, B): ReturnsTRUEif and only if both conditions evaluate toTRUE.OR(A, B): ReturnsTRUEif at least one condition evaluates toTRUE.NOT(A): Inverts logical boolean input. Example:=NOT(B2>20)is logically identical to=B2<=20.Single Condition Branching (
IF):Syntax:
=IF(logical_test, value_if_true, value_if_false)Example: `=IF(B2>=20,