Time zero is discounted by accident
NPV begins with the first future period. Keep B2 outside NPV; include B2 inside IRR and include the complete date/value pairs inside XNPV and XIRR.
Step-by-step guide · read-only ·
Loading your interactive spreadsheet…
Preparing the worksheet and formulas…
Enter separate formulas in E6 and E7 using all aligned pairs A2:B9, including the initial negative flow at the earliest date A2. E2 is an annual effective discount expressed per 365 days. E6 is the dated present value at A2; E7 is the unrounded XIRR per 365 days. Discount each flow by its actual whole-day difference from A2 divided by 365. Use XNPV for nonnegative discount rates; for negative discount rates the pinned browser engine requires explicit per-flow discounting with SUMPRODUCT. Keep duplicate-date receipts and reorder later rows only as complete date-value pairs.
Inputs stay numeric. Keep signed cents, real zero periods and full-precision results. Rates are decimals such as 0.08. Dates use YYYY-MM-DD and are stored as numeric dates. Applying one input validates the complete schedule first.
Applied value:
Follow the highlighted cells. Switch to Your turn to edit. Answer cells: E6, E7. Browser calculations may differ from your Excel version.
Practice stays on this device. No worksheet data is uploaded.
Keep date-value pairs aligned and use 365-day discounting for an irregular cash-flow schedule.
Enter separate formulas in E6 and E7 using all aligned pairs A2:B9, including the initial negative flow at the earliest date A2. E2 is an annual effective discount expressed per 365 days. E6 is the dated present value at A2; E7 is the unrounded XIRR per 365 days. Discount each flow by its actual whole-day difference from A2 divided by 365. Use XNPV for nonnegative discount rates; for negative discount rates the pinned browser engine requires explicit per-flow discounting with SUMPRODUCT. Keep duplicate-date receipts and reorder later rows only as complete date-value pairs.
=IF($E$2<0,SUMPRODUCT(B2:B9/(1+$E$2)^((A2:A9-$A$2)/365)),XNPV($E$2,B2:B9,A2:A9))=XIRR(B2:B9,A2:A9)Enter each formula in its labeled answer cell. These report formulas perform different jobs; do not fill the first formula down.
Each date remains a whole Excel serial. This course excludes time fractions, text dates and the 1900 leap-year compatibility boundary. A leap day changes elapsed days, not the fixed 365-day exponent denominator.
Reordering later date-value pairs preserves XNPV and XIRR. Sorting only dates or substituting NPV/IRR changes the model. Keep the first, earliest date as the valuation anchor.
The nonnegative branch uses the real XNPV function. The negative branch computes the declared mathematical discount equation explicitly because the pinned browser XNPV returns #NUM!. The task still includes the original negative-discount source. Native Excel/Sheets behavior for this boundary has not been measured.
Dates in A are actual numeric serials formatted yyyy-mm-dd. B2 is the earliest cost; later pairs may be out of order, and same-day receipts remain distinct.
XNPV includes all flows, including B2 at day zero. Leap-day intervals still divide by 365; equal row positions do not imply equal time.
XIRR uses the same pairs and returns a rate per 365 days. The discount E2 is not a cash flow or a required solution guess.
The pinned browser XNPV rejects negative rates. The solution branches to the stated sum of signed flows divided by (1 + rate) raised to elapsed days / 365. This is a transparent mathematical fallback, not a claim that native Excel rejects the same input.
The retained unsorted source rearranges later pairs while keeping the earliest first pair fixed. Both dated outputs stay the same. Sorting only A2:A9 would associate different dates with the amounts and change the model.
NPV begins with the first future period. Keep B2 outside NPV; include B2 inside IRR and include the complete date/value pairs inside XNPV and XIRR.
Rates are decimal fractions: 0.08 means eight percent per declared period, or per 365 days in the dated task. Keep full precision; number formatting does not change the calculation.
These are original cash-flow models with supplied assumptions. A computed yield is not a ranking of projects with different timing, scale or risk. Taxes, fees and changing discount curves are outside the model.
Use eight numeric cent flows from -1,000,000 through 1,000,000. The first flow is a cost of at least 100. Periodic and dated IRR tasks require nonnegative later flows and at least one positive receipt, with their unique yield between -0.8 and 2. Discount is -0.25 through 0.5. MIRR admits later costs and uses finance/reinvestment rates from zero through 0.5. Dates are whole numeric serials from 2000 through 2099, the first is earliest, every later date is at least 30 days later and the schedule spans 365 through 3650 days. Arbitrary sign-changing IRR roots and invalid source types require separate rules.
Original retained cash-flow sources checked with real browser calculations and independent arithmetic. The dated task has an explicit mathematical fallback for the pinned browser XNPV negative-rate boundary. Native Excel/Sheets recalculation, editing and saving remain separate and unverified.
Content version 1. Practice checks compare calculated results across different datasets; they do not certify every possible formula.