Excel Finance Guide: Key Functions, Stock Data and Copilot Tools
Learn the Excel finance functions that matter (PMT, NPV, XNPV, IRR, XIRR), how to pull stock data, and what Copilot in Excel adds for finance teams in 2026.
Excel finance work comes down to three things: Excel’s built-in financial functions (PMT for loan payments, NPV and XNPV for valuation, IRR and XIRR for returns), the Stocks data type and STOCKHISTORY for market data, and, as of 2026, Copilot in Excel features aimed at finance teams. Below, each one is covered with what it does, how to use it properly, and the mistakes that most often break a model.
The core Excel finance functions
Microsoft lists dozens of functions in its financial functions reference, but most day-to-day finance work uses a small set:
| Function | What it returns | Use it when |
|---|---|---|
| PMT | Periodic payment for a loan or annuity | Sizing loan or savings payments |
| NPV | Net present value from periodic cash flows and a discount rate | Cash flows are evenly spaced |
| XNPV | Net present value for cash flows that are not necessarily periodic | Cash flows have real, irregular dates |
| IRR | Internal rate of return for a series of cash flows | Evenly spaced cash flows |
| XIRR | Internal rate of return for a schedule of cash flows that are not necessarily periodic | Investments with irregular deposits or distributions |
Rule of thumb: if your model has a date column, you probably want the “X” versions.
PMT: loan and savings payments
The syntax is PMT(rate, nper, pv, [fv], [type]). Microsoft’s PMT documentation stresses one thing above all: keep the units for rate and nper consistent.
To calculate a monthly loan payment:
- Put the annual interest rate, the number of monthly payments and the loan amount in three cells.
- Divide the annual rate by 12 so it becomes a monthly rate.
- Use the number of months (years × 12) as
nper. - Enter something like
=PMT(A2/12, A3, A4).
Microsoft’s own example uses an 8% annual rate, 10 monthly payments and a $10,000 loan, and returns ($1,037.03). The result is negative because it is money going out. Microsoft also notes that the payment covers principal and interest only, not taxes, reserve payments or fees that sometimes come with a loan.
PMT also works for savings goals. Microsoft’s example =PMT(1.5%/12, 3*12, 0, 8500) works out the monthly deposit needed to reach $8,500 in three years at 1.5% annual interest.
NPV vs. XNPV: the initial investment trap
NPV is the most commonly misused function in Excel finance. NPV assumes each cash flow arrives at the end of a period, and the investment starts one period before the first value. Microsoft’s NPV documentation says that if your first cash flow happens at the beginning of the first period (typically the upfront investment), you add it to the NPV result rather than include it in the values range.
In practice, with a 10% discount rate, the initial outlay (a negative number) in B2 and future cash flows in B3:B6:
=NPV(10%, B3:B6) + B2
If you include B2 inside the range, Excel discounts your day-zero investment by a full period and overstates the project’s value.
XNPV avoids this by taking an explicit list of dates, so each cash flow is discounted based on when it actually occurs. If your cash flows don’t land on neat annual or monthly boundaries, use XNPV.
IRR vs. XIRR
IRR assumes evenly spaced cash flows. XIRR, documented in Microsoft’s XIRR article, uses the syntax XIRR(values, dates, [guess]) and handles irregular timing. Things to know:
- The values need at least one positive and one negative number, or XIRR returns #NUM!.
- If any date comes before the starting date, you get #NUM!. A non-date entry in the dates range gives #VALUE!.
- If you leave out
guess, Excel uses 10%. - XIRR is iterative. If Excel can’t find a result within 100 tries, it returns #NUM!. Supplying a different guess can help.
Microsoft’s worked example, a −10,000 outflow followed by four inflows over about 15 months, returns 37.34%.
Pulling stock and market data into Excel
The Stocks data type
For current quotes, Excel has a linked Stocks data type. According to Microsoft’s “Get a stock quote” guidance:
- Type ticker symbols or company names into a column.
- Select those cells.
- On the Data tab, choose Stocks in the Data Types gallery.
- Converted cells show a stock icon. Use the Add Column button to pick fields such as Price, or type a formula like
=A2.and choose a field from the autocomplete list. - To update the values, use Refresh All on the Data tab.
Microsoft does not present this as a real-time trading feed. Treat it as reference data for tracking and analysis, and read the data provider details Microsoft shows before you use it for anything time-sensitive.
STOCKHISTORY for historical prices
For historical series, use STOCKHISTORY:
=STOCKHISTORY(stock, start_date, [end_date], [interval], [headers], [property0], ... [property5])
It returns a spilling array of prices for the range you ask for. Microsoft’s launch post explains that the historical data comes from Refinitiv, the same provider used for the Stocks data type. It also covers a few practical behaviors:
- Dates are read the same way DATEVALUE would interpret them.
- You’ll briefly see a #BUSY! error while Excel fetches the data. Requesting more dates or columns takes longer.
- If the formula uses a volatile function like TODAY and automatic calculation is on, it refreshes when you open the workbook.
The STOCKHISTORY support page lists Microsoft 365 Personal, Family, Business Standard or Business Premium as required subscriptions. If the function doesn’t appear for you, check your plan first. Note that STOCKHISTORY is a Microsoft Excel feature, so files that depend on it won’t calculate the same way in other spreadsheet apps.
Copilot in Excel for finance teams (2026)
The big change this year is on the AI side. On June 25, 2026, Microsoft published Copilot in Excel: Built for the era of Frontier Finance, which describes these finance features:
- Skills: reusable, team-defined processes for tasks such as building a DCF, refreshing a monthly reporting model or preparing a variance analysis. There’s a sample library, and custom skills are written as an open-standard markdown file (SKILL.md) saved in OneDrive.
- Workbook rules: structure, naming and formula conventions are stored as a sheet in the workbook, so they travel with the file.
- Plan with Copilot: before making changes, Copilot lays out the ranges, sheets, formulas and assumptions it plans to touch, and it may ask clarifying questions.
- Traceability: Copilot’s edits link back to the affected cells and are attributed to Copilot in the Show Changes pane.
- Financial data connectors: LSEG and Moody’s (released in May), plus CB Insights, Daloopa, FactSet, Morningstar, PitchBook and S&P Global.
Availability and licensing
According to Microsoft’s post, prebuilt skills, workbook rules, Plan with Copilot and the connectors became generally available to Microsoft 365 Copilot customers on Excel for the web, Windows and Mac. Custom skills started in the Insiders channel, with general availability planned for July 2026. Partner-built skills (the first wave named LSEG, Ramp, Rogo, Samaya AI, Velixo and Vena) were planned for Q3 2026.
Two caveats from Microsoft itself: these features need a Microsoft 365 Copilot license, and third-party connectors may need separate subscriptions from each data provider. Microsoft also says availability, regions and licensing can vary while features roll out. Secondary reports describe further accounting capabilities (reconciliations, journal entries) reaching Excel later in 2026, but timelines have shifted before. Check your Microsoft 365 admin center for what’s actually enabled in your tenant as of November 2026, especially with Microsoft Ignite running November 17–20, where more announcements may come.
Practical advice for finance models in Excel
- Separate inputs from calculations. Keep rates, terms and assumptions in clearly labeled input cells so PMT, NPV and XIRR reference cells rather than hard-coded numbers.
- Match your periods. Most wrong answers come from mixing annual rates with monthly periods, or from putting the upfront investment inside NPV.
- Default to dated functions (XNPV, XIRR) whenever real-world timing matters.
- Review AI edits like a colleague’s. Copilot’s plan step and Show Changes attribution exist so you can check what changed. Use them before anything goes to a board pack.
- Document data sources. If a model depends on the Stocks data type, STOCKHISTORY or a third-party connector, note the source and refresh date in the workbook so others know how current the numbers are.
The built-in functions haven’t changed much in years, and they’re still what a sound Excel finance model rests on. The Copilot features are new and still rolling out, so check current availability before you build a team process around them.
Free apps worth trying
SponsoredSponsored links. Installing through them can earn us a commission, at no cost to you. Apps are free to download; some offer optional in-app purchases.
Frequently asked questions
Should I use NPV or XNPV in Excel? +
Use NPV when your cash flows are evenly spaced, such as one per year or per month. Use XNPV when the cash flows happen on specific, irregular dates, because it takes a list of dates alongside the values.
Why does my Excel PMT result show as a negative number? +
PMT follows a cash-flow sign convention: money you pay out is negative. A loan payment is an outflow, so Excel returns it as a negative value. Wrap the formula in a minus sign or ABS if you want to display it as positive.
Do I need Microsoft 365 Copilot for finance work in Excel? +
No. All the core financial functions, such as PMT, NPV, IRR and XIRR, are built into Excel. Copilot features like finance skills and data connectors need a Microsoft 365 Copilot license, and some third-party data connectors require their own subscriptions.
Is the stock data in Excel real time? +
Microsoft does not present it as a real-time trading feed. Stocks data type values refresh when you use Refresh All on the Data tab, and the data can be delayed, so check Microsoft's current disclaimer before relying on it for trading decisions.
Sources
- Financial functions reference (Microsoft Support) (support.microsoft.com)
- PMT function (Microsoft Support) (support.microsoft.com)
- XIRR function (Microsoft Support) (support.microsoft.com)
- NPV function (Microsoft Support) (support.microsoft.com)
- STOCKHISTORY function (Microsoft Support) (support.microsoft.com)
- Announcing STOCKHISTORY (Microsoft Excel Blog) (techcommunity.microsoft.com)
- Get a stock quote (Microsoft Support) (support.microsoft.com)
- Copilot in Excel: Built for the era of Frontier Finance (Microsoft 365 Blog) (microsoft.com)