Accruals and prepayments in Excel: spreading a bill over the months
To spread a bill over the months it covers, count its days in each month and multiply by the cost per day: =MAX(0,MIN($B$3,EOMONTH(A7,0))-MAX($B$2,A7)+1)*$B$4, with the bill's dates in B2 and B3 and the cost per day in B4. What's paid for after the year end is a prepayment, and a bill that hasn't arrived yet, for something already used, is an accrual. EOMONTH, MIN and MAX work the same in every version of Excel on Windows and Mac, in Excel for the web and in Google Sheets.
Accruals and prepayments at a glance
| You want | Formula | What you get |
|---|---|---|
| A year's bill spread in whole months | =$B$1/12 | £150 a month from £1,800 of insurance |
| The cost per day | =B1/(B3-B2+1) | £6 a day from £2,190 for 365 days |
| A bill's days in one month | =MAX(0,MIN($B$3,EOMONTH(A7,0))-MAX($B$2,A7)+1) | 16 for 15 to 30 November, 0 outside the bill |
| The prepayment at the year end | =B5*F5/E5 | The cost × the days after the year end ÷ the days in the bill |
| The accrual at the year end | =B1*B6/B7 | The estimated bill × the days used by the year end ÷ the days it covers |
The examples use a 31 March year end. Each one is worked through below, with a sheet.
Whole months first
A firm with a 31 March year end pays £1,800 for a year's insurance from 1 October 2026.
- £1,800 ÷ 12 = £150 a month.
- October to March is 6 months, so £900 belongs to this year.
- The other £900 pays for April to September, next year. At 31 March it's a prepayment: paid, but not used yet.
| A | B | |
|---|---|---|
| 1 | Insurance | £1,800.00 |
| 2 | ||
| 3 | Month | Cost |
| 4 | 01/10/2026 | £150.00 |
| 5 | 01/11/2026 | £150.00 |
| 6 | 01/12/2026 | £150.00 |
| 7 | 01/01/2027 | £150.00 |
| 8 | 01/02/2027 | £150.00 |
| 9 | 01/03/2027 | £150.00 |
| 10 | This year | £900.00 |
| 11 | Prepayment | £900.00 |
Spread like this, each month carries £150 of insurance, so October doesn't look £1,650 over in a budget vs actual sheet.
Part months: count the days
Most bills don't start on the 1st. A storage unit costs £2,190 for 15 November 2026 to 14 November 2027. That's 365 days, so £2,190 ÷ 365 = £6 a day.
- November: the 15th to the 30th is 16 days (count both ends), so 16 × £6 = £96.
- December: all 31 days, so £186.
- November to March: 16 + 31 + 31 + 28 + 31 = 137 days, so £822 belongs to this year.
- The prepayment at 31 March is £2,190 − £822 = £1,368.
The formula
For each month, find the first and last day that are in both the month and the bill's period, then count the days between them.
=MAX(0,MIN($B$3,EOMONTH(A7,0))-MAX($B$2,A7)+1)
EOMONTH(A7,0)is the last day of the month that starts in A7.MIN($B$3,EOMONTH(A7,0))is the earlier of the bill's end and the month's end.MAX($B$2,A7)is the later of the bill's start and the month's start.+1counts both ends: the 15th to the 30th is 16 days.MAX(0, …)gives 0 for a month outside the period, which would otherwise come out as a minus number.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Cost | £2,190.00 | ||
| 2 | From | 15/11/2026 | ||
| 3 | To | 14/11/2027 | ||
| 4 | Per day | £6.00 | ||
| 5 | ||||
| 6 | Month | Month end | Days | Amount |
| 7 | 01/11/2026 | 30/11/2026 | 16 | £96.00 |
| 8 | 01/12/2026 | 31/12/2026 | 31 | £186.00 |
| 9 | 01/01/2027 | 31/01/2027 | 31 | £186.00 |
| 10 | 01/02/2027 | 28/02/2027 | 28 | £168.00 |
| 11 | 01/03/2027 | 31/03/2027 | 31 | £186.00 |
| 12 | This year | 137 | £822.00 | |
| 13 | Prepayment | £1,368.00 |
Copy the rows on to November 2027 and the amounts add up to £2,190, the whole bill. That's a good check. There's more on counting the days between two dates in days between dates.
A prepayments schedule at the year end
At the year end, what you need is the prepayment on every bill, one figure each. Put one bill on each row and work out the days after the year end. The insurance from 1 October to 30 September has 183 of its 365 days after 31 March, so its prepayment is £1,800 × 183 ÷ 365 = £902.47.
=MAX(0,D5-MAX($B$2,C5-1))
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | Prepayments schedule | ||||||
| 2 | Year end | 31/03/2027 | |||||
| 3 | |||||||
| 4 | Bill | Cost | From | To | Days | After year end | Prepayment |
| 5 | Insurance | £1,800.00 | 01/10/2026 | 30/09/2027 | 365 | 183 | £902.47 |
| 6 | Storage | £2,190.00 | 15/11/2026 | 14/11/2027 | 365 | 228 | £1,368.00 |
| 7 | Software | £960.00 | 01/01/2027 | 31/12/2027 | 365 | 275 | £723.29 |
| 8 | Rent | £3,000.00 | 01/03/2027 | 31/05/2027 | 92 | 61 | £1,989.13 |
| 9 | Website | £240.00 | 01/04/2026 | 31/03/2027 | 365 | 0 | £0.00 |
| 10 | Total | £4,982.88 |
D5is the last day of the bill.MAX($B$2,C5-1)is the later of the year end and the day before the bill starts, so a bill that starts after the year end has all its days counted.MAX(0, …)gives 0 for a bill that ends by the year end.
Counted by days, the insurance prepayment is £902.47, where whole months gave £900. Either way is fine, as long as you use the same way every year. The total on this schedule is the figure that goes in the year-end accounts.
Accruals: the bill that hasn't arrived
Electricity is billed every three months, after it's used. The bill for 1 February to 30 April 2027 won't arrive until May, but February and March are this year's costs. Last year's bill for the same months was £890, so use that as the estimate.
- 1 February to 30 April is 28 + 31 + 30 = 89 days, so £890 ÷ 89 = £10 a day.
- 1 February to 31 March is 28 + 31 = 59 days, so the accrual is 59 × £10 = £590.
| A | B | |
|---|---|---|
| 1 | Estimated bill | £890.00 |
| 2 | Period starts | 01/02/2027 |
| 3 | Period ends | 30/04/2027 |
| 4 | Year end | 31/03/2027 |
| 5 | ||
| 6 | Days to year end | 59 |
| 7 | Days in period | 89 |
| 8 | Accrual | £590.00 |
In the year-end accounts, a prepayment is a current asset and an accrual is a current liability. When the real bill arrives, any difference from the estimate goes into next year's costs. Bank charges and direct debits that turn up in a bank reconciliation are entered in the month they happen, so they don't need spreading.
Common mistakes
Leaving off the +1
30 minus 15 is 15, but the 15th to the 30th is 16 days. Without +1, every month is a day short and the amounts don't add up to the bill.
Twelfths for a part month
Dividing by 12 only works when the period starts on the 1st. From the 15th, November only has half a month in it.
EOMONTH(A7,1)
The second part counts months on: 0 is the end of this month, 1 the end of next month.
Dates that are really text
If a date sits on the left of its cell, Excel is treating it as text and the subtraction gives #VALUE!. See #VALUE!.
Try it now
A cleaning contract runs from B2 to B3. In B7, work out the part of its cost that belongs to the month starting in A7: the days of the contract in that month × the cost per day in B4. Your formula will be copied down to B18.
| A | B | |
|---|---|---|
| 1 | Cost | £2,730.00 |
| 2 | Starts | 15/11/2026 |
| 3 | Ends | 14/08/2027 |
| 4 | Cost per day | £10.00 |
| 5 | ||
| 6 | Month starting | Amount |
| 7 | 01/10/2026 | |
| 8 | 01/11/2026 | |
| 9 | 01/12/2026 | |
| 10 | 01/01/2027 | |
| 11 | 01/02/2027 | |
| 12 | 01/03/2027 | |
| 13 | 01/04/2027 | |
| 14 | 01/05/2027 | |
| 15 | 01/06/2027 | |
| 16 | 01/07/2027 | |
| 17 | 01/08/2027 | |
| 18 | 01/09/2027 |
Open this in Try a formula: the same sheet with the answer filled in, to change or share by link.
Part of Excel for finance and bookkeeping: every lesson on the topic, with a project in Excel.
Where it works
EOMONTH, MIN and MAX are in every version of Excel on Windows and Mac, in Excel for the web, and in Google Sheets. Accruals and prepayments come up in AAT's management accounting unit too: see Excel for AAT.
Questions
What is the difference between an accrual and a prepayment?
A prepayment is paid but not used yet, such as a year's insurance paid in October with six months still to run at a March year end. An accrual is used but not billed yet, such as electricity for February and March when the bill comes in May. At the year end, a prepayment is a current asset and an accrual is a current liability. Both move a cost into the year it belongs to.
How do I calculate a prepayment in Excel?
Work out how many of the bill's days fall after the year end, then take that share of the cost. For £1,800 of insurance running from 1 October to 30 September, 183 of the 365 days are after 31 March, so the prepayment is 1,800 × 183 ÷ 365 = £902.47. In Excel: =B5*F5/E5, with the days in the bill in E5 and the days after the year end in F5.
How do I set up a prepayments schedule in Excel?
Give each bill a row with its cost, start date and end date. Then add three columns: the days in the bill, =D5-C5+1; the days after the year end, =MAX(0,D5-MAX($B$2,C5-1)); and the prepayment, =B5*F5/E5. Keep the year end in one cell, B2, so next year you change one date. A SUM at the bottom gives the total for the accounts.
How do I count the days of a date range in each month in Excel?
Put the 1st of each month in a column. For each month, take the earlier of the range's end and the month's end, minus the later of the range's start and the month's start, plus 1: =MAX(0,MIN($B$3,EOMONTH(A7,0))-MAX($B$2,A7)+1). The MAX(0, …) gives 0 for months outside the range. The days across all the months add up to the whole range.