Accruals and prepayments: practice exercises
Days of cover in each month with EOMONTH, MIN and MAX, spreading a yearly bill, the prepayment at the year end, accruing bills not yet invoiced, what's left prepaid each month. 5 exercises on real-looking data, each marked the moment you press Check. The first exercise is below to try now; the full lesson is part of Pro.
A cleaning contract runs from the date in H1 to the date in H2, both days included. In B2, work out how many days of it fall in each month: 0 for a month before it starts or after it ends, and only part of the month where it starts or ends.
| A | B | C | D | E | F | G | H | |
|---|---|---|---|---|---|---|---|---|
| 1 | Month | Days covered | Cover starts | 11/04/2026 | ||||
| 2 | Jan 2026 | Cover ends | 24/10/2026 | |||||
| 3 | Feb 2026 | |||||||
| 4 | Mar 2026 | |||||||
| 5 | Apr 2026 | |||||||
| 6 | May 2026 | |||||||
| 7 | Jun 2026 | |||||||
| 8 | Jul 2026 | |||||||
| 9 | Aug 2026 | |||||||
| 10 | Sep 2026 | |||||||
| 11 | Oct 2026 | |||||||
| 12 | Nov 2026 | |||||||
| 13 | Dec 2026 |
How it works
The accounts for a month or a year show the costs of that period, whenever the bill is paid. Insurance paid in October for a year's cover is mostly a cost of next year: the part not used by the year end is a prepayment, money paid in advance. Electricity used in March but billed in April is a cost of March: you put it in as an accrual, a cost you owe but haven't been invoiced for yet.
Both come down to counting days: how many days of the cover, or of the bill, fall inside the period. Keep the dates in cells, and EOMONTH, MIN and MAX do the counting for any month.
=MAX(0,MIN(EOMONTH(A2,0),$E$2)-MAX(A2,$E$1)+1) =$H$1*B2/SUM($B$2:$B$40) =E4*(E2-E3)/(E2-E1+1) =MAX(0,$F$1-B2)*C2 =$F$1-SUM($C$2:C2)
Prepayments and accruals
The accounts for a period show the costs of that period, whenever the money goes out. Two adjustments make that happen at a month end or a year end:
- A prepayment is paid but not used yet: a year's insurance paid in October is mostly next year's cost. The unused part is an asset at the year end.
- An accrual is used but not billed yet: March's electricity, billed in April. You put the cost in March, and owe it at the year end.
Both are worked out by counting days, so keep every date in a cell.
Worked example: days in each month
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Month | Days covered | Cover starts | 15/10/2026 | |
| 2 | Sep 2026 | Cover ends | 10/12/2026 | ||
| 3 | Oct 2026 | ||||
| 4 | Nov 2026 | ||||
| 5 | Dec 2026 | ||||
| 6 | Jan 2027 |
=MAX(0,MIN(EOMONTH(A2,0),$E$2)-MAX(A2,$E$1)+1)in B2. The days run from the later of the 1st and the start date, to the earlier of the month end and the end date, plus 1 because both days count. October is 15 to 31 October: 17 days. November is all 30, and December runs to the 10th. September and January are outside the cover, where the sum is a minus number, and MAX(0, …) makes it 0.
Spreading a bill, and the prepayment
A premium of £1,825 buys cover from 1 October 2026 to 30 September 2027: 365 days, or £5 a day. Each month's cost is the premium × its days ÷ all the days: October's 31 days cost £155. Use the total of the days column, =$H$1*B2/SUM($B$2:$B$14), so the months add up to the premium exactly.
At a year end of 31 March 2027, the days still to come are 30/09/2027 − 31/03/2027 = 183, so the prepayment is 183 × £5 = £915: =B4*(B2-B3)/(B2-B1+1). Count the days rather than typing 365, because cover that includes 29 February 2028 has 366. DAYS(end, start) gives the same as end − start.
What's still prepaid at each month end is the premium take away the cost used so far, with a running total: =$H$1-SUM($B$2:B2).
Accruals
Electricity is billed in arrears. The last bill was £1,150 for 92 days, so it costs about £1,150 ÷ 92 = £12.50 a day. The bills run up to 28 February, and the year end is 31 March: 31 days not billed yet, so accrue 31 × £12.50 = £387.50.
With the billed-up-to dates in column B and the cost per day in C, =MAX(0,$H$1-B2)*C2 does every supplier. A supplier who has billed past the year end gives a minus number of days, and MAX makes it 0. Next month, when the real bill comes in, the accrual is reversed.
What you'll practise
- A cleaning contract runs from the date in H1 to the date in H2, both days included. In B2, work out how many days of it fall in each month: 0 for a month before it starts or after it ends, and only part of the month where it starts or ends.
- The insurance premium in H1 pays for a year's cover, and column B has the days of cover in each month it touches. In C2, work out each month's share of the cost: the premium × that month's days ÷ all the days of cover.
- The premium in B4 was paid up front for the cover from B1 to B2, both days included. In B6, work out the prepayment at the year end in B3: the part of the premium for the days after the year end.
- These suppliers bill in arrears. Column B shows the date each one has billed up to, and column C what the service costs a day. In D2, work out the accrual at the year end in H1: the cost per day × the days after the billed-up-to date, up to the year end. A supplier billed past the year end needs no accrual, so show 0.
- The premium in H1 was paid on the 1st of the first month, and column B shows the cost used up each month. In C2, work out how much is still prepaid at the end of each month: the premium take away the cost used up so far. Your formula will be copied down.
Guide with worked examples: Accruals and prepayments in Excel: spreading a bill over the months