Allocate a Contract Across Months by Days in Excel

A 96,000 software contract runs from 15 October 2026 to 14 October 2027. Sales booked it in October. Accounting recognizes it daily. The forecast spreads it at 8,000 a month starting in October. Three numbers for the same month, and the October variance review starts with a ten-minute conversation about which one is right.

Contracts, subscriptions, prepaid insurance, maintenance agreements and grants all have the same three facts: a start date, an end date and an amount. Allocating them across months is one formula once you see it as an overlap between two date ranges. This post builds that formula in Excel 2021 or 365, adds rounding that ties back to the contract value, and covers the conventions finance teams argue about.

Store the contract, not the spread

Each contract gets one row with four inputs: name, start date, end date and amount. Month-end dates run across the top. Every monthly cell is calculated from those inputs and nothing else.

This matters more than the formula. When the contract is extended or the start date slips, someone changes one date and every month updates. A forecast built by typing monthly amounts can only be fixed by retyping them, and the twelfth copy of the spreadsheet will have it wrong.

Days in each month: the overlap formula

The days a contract covers in a given month are the overlap between two ranges: the contract (start to end) and the month (first day to month-end). The overlap starts at the later of the two starts and ends at the earlier of the two ends:

=MAX(0, MIN($C10, E$4) - MAX($B10, EOMONTH(E$4,-1)+1) + 1)

B10 is the start date, C10 the end date, E4 the month-end header. EOMONTH(E$4,-1)+1 is the first of the month. The +1 counts both the first and last day, so a contract starting on the 15th of a 31-day month gets 17 days. The MAX(0, ...) returns zero when the ranges do not overlap at all, because the subtraction goes negative.

For the 96,000 contract, the row reads 17 days in October, then a full month for each month to September, then 14 days in October 2027. Total: 365 days. Fill the formula down for every contract and across for every month, and the day grid is done with no IF statements.

Days to amounts, with rounding that ties

Divide the contract value by its total days and multiply. To keep every row summing exactly to the contract value, round the running total and take the difference:

=ROUND($D10*SUM($E10:E10)/$S10,0) - ROUND($D10*(SUM($E10:E10)-E10)/$S10,0)

D10 is the amount, row 10 here is the day grid, and S10 is total days. For the example that gives:

MonthDaysDaily methodEven 12 months
Oct 2026174,4718,000
Nov 2026307,8918,000
Dec 2026318,1538,000
Feb 2027287,3658,000
Oct 2027143,6820
Total36596,00096,000

The even method puts a full month in October and nothing in October 2027. Over the life of the contract it nets out. Within a fiscal year, it does not.

Fiscal-year splits

With a July fiscal year, FY27 ends 30 June 2027. The daily method puts 259 days and 68,121 of this contract in FY27. The even method puts nine months and 72,000 there. That 3,879 is a timing difference in the budget for one contract; across a few hundred contracts, it is the reason the revenue forecast never matches what accounting books.

To total any period, sum the monthly cells by header date:

=SUMIFS($E10:$R10, $E$4:$R$4, ">"&FYStart-1, $E$4:$R$4, "<="&FYEnd)

Because the windows run on dates, the same formula covers quarters and year to date. It is the same approach as the YTD, MTD and QTD post.

Which convention to use

There are three common conventions, and the right one is whatever your accounting team uses. The forecast should match the general ledger, because the variance report compares the two every month.

  • Daily. Amount over total days. Matches most revenue recognition for subscriptions and most prepaid amortization done in an ERP. This is the default.
  • Full month. Each month gets amount over number of months, starting in the month of the start date. Simple, but overstates the first month and drops the last partial one.
  • Half month. A contract starting on or before the 15th gets the full first month; after the 15th, the first month gets nothing and the last month picks it up. Common in fixed asset systems.

Ask the controller which one the GL uses for each contract type, write it on the inputs tab, and build the formula to match. If you spread revenue by month and accounting recognizes it by day, every month with a mid-month start will show a variance that is purely method.

Leap years and YEARFRAC

A contract that spans 29 February 2028 has 366 days. The overlap formula handles it, because it counts actual days. Shortcuts that assume 365 days a year, or that use YEARFRAC to measure contract length, do not. YEARFRAC with basis 1 (actual/actual) returns 0.99726 for this 365-day contract, not 1, because the span crosses two calendar years and averages their lengths. The YEARFRAC page covers the five basis options. For allocation, count days.

Where it breaks

End date as the day after. Some systems store a one-year contract as 15 October to 15 October. Counted inclusively, that is 366 days and the last day gets one day of value. Decide whether end dates are inclusive and apply it to the whole contract list.

Contracts with no end date. Evergreen or month-to-month agreements need a forecast end date, usually the end of the forecast horizon. Leave it blank and MIN ignores the empty cell, so the contract runs to the last column on the sheet and its monthly amount changes every time someone adds a month.

Text dates from a CRM export. A date that arrives as text compares as text and the overlap returns zero or a nonsense number. Test one cell with =ISNUMBER(B10).

Changes mid-contract. An upsell or a price change is a new row from its effective date, not an edit to the original amount. Editing the original restates the months already closed.

The same overlap formula drives prepaid amortization and straight-line depreciation; only the inputs change.

Similar Posts