Fundamentals of Financial Analytics
Online B.Com · Sem 5
0% complete
0/3 lessons
Lesson 3 of 3Fin Analytics
Excel and Python for Finance
Fundamentals of Financial Analytics
About the video
Python in Excel - Beginner Tutorial
Kevin Stratvert
Study notes
Excel and Python are the two core tools of financial analytics. Excel suits quick, transparent modelling and ad-hoc analysis, while Python (with pandas, NumPy and matplotlib) handles large datasets, automation and reproducible analysis.
Excel for Finance
- Spreadsheet grid suited to financial models, budgets and valuation (DCF) work.
- Key functions: NPV, XNPV, IRR, XIRR, PMT, VLOOKUP/XLOOKUP, INDEX-MATCH, SUMIFS.
- Tools: PivotTables, Data Tables for sensitivity analysis, Goal Seek, Solver, charts.
- Use absolute ($A$1) vs relative (A1) references correctly when copying formulas.
- Limits: row cap (about 1,048,576 rows), error-prone manual steps, weak version control.
Python for Finance
- pandas: DataFrames for loading, cleaning, merging and resampling time series.
- NumPy: fast vectorised maths (returns, matrices, simulations).
- matplotlib/seaborn: visualisation; scipy/statsmodels: statistics and regression.
- Scales to large datasets, automates repetitive reports and pulls data from APIs.
- Scripts and notebooks make analysis reproducible and auditable.
Common Financial Calculations
- Simple return = (P_t - P_(t-1)) / P_(t-1); in pandas: prices.pct_change().
- Log return = ln(P_t / P_(t-1)).
- Annualised volatility = daily standard deviation x sqrt(252).
- NPV = sum of CF_t / (1+r)^t minus initial investment.
Choosing the Tool
- Excel: small models, stakeholder-facing workbooks, quick what-if analysis.
- Python: big data, automation, Monte Carlo simulation, machine learning.
- Often combined: Python processes data and exports to Excel (e.g. pandas to_excel).
Key terms
- DataFrame
- pandas' two-dimensional labelled table structure for tabular data.
- XNPV
- Excel function computing NPV for cash flows at irregular dates.
- IRR
- Discount rate at which a project's NPV equals zero.
- Vectorisation
- Applying operations to whole arrays at once instead of looping, as in NumPy.
- Data Table
- Excel what-if tool showing how outputs change across input values.
Takeaways
- Excel excels at transparent, interactive models; Python at scale, automation and reproducibility.
- Know core Excel finance functions (NPV, IRR, XLOOKUP, SUMIFS) and pandas/NumPy basics.
- Returns via pct_change; annualise daily volatility by multiplying by sqrt(252).
- The two tools are complementary, not competing.
Contribute
Was this lesson helpful?
We read every rating and fix the weakest lessons first.