Confident CellsExcel practice Start free

Accruals and prepayments in Excel: spreading a bill over the months

Updated 26 November 2026 · 5 min read

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 wantFormulaWhat 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/E5The cost × the days after the year end ÷ the days in the bill
The accrual at the year end=B1*B6/B7The 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.

AB
1Insurance£1,800.00
2
3MonthCost
401/10/2026£150.00
501/11/2026£150.00
601/12/2026£150.00
701/01/2027£150.00
801/02/2027£150.00
901/03/2027£150.00
10This year£900.00
11Prepayment£900.00
B4 holds =$B$1/12, copied down. B10 adds up October to March, £900.00, and B11 is the prepayment at 31 March: £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.

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)
ABCD
1Cost£2,190.00
2From15/11/2026
3To14/11/2027
4Per day£6.00
5
6MonthMonth endDaysAmount
701/11/202630/11/202616£96.00
801/12/202631/12/202631£186.00
901/01/202731/01/202731£186.00
1001/02/202728/02/202728£168.00
1101/03/202731/03/202731£186.00
12This year137£822.00
13Prepayment£1,368.00
B7 holds =EOMONTH(A7,0) and C7 holds =MAX(0,MIN($B$3,B7)-MAX($B$2,A7)+1), both copied down. D7 is the days × £6. B4 works out the cost per day from the dates, so a leap year is counted right.

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))
ABCDEFG
1Prepayments schedule
2Year end31/03/2027
3
4BillCostFromToDaysAfter year endPrepayment
5Insurance£1,800.0001/10/202630/09/2027365183£902.47
6Storage£2,190.0015/11/202614/11/2027365228£1,368.00
7Software£960.0001/01/202731/12/2027365275£723.29
8Rent£3,000.0001/03/202731/05/20279261£1,989.13
9Website£240.0001/04/202631/03/20273650£0.00
10Total£4,982.88
E5 holds =D5-C5+1, F5 =MAX(0,D5-MAX($B$2,C5-1)) and G5 =B5*F5/E5, all copied down. The website bill ends on the year end, so nothing is prepaid. G10 is the prepayments total: £4,982.88.

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.

AB
1Estimated bill£890.00
2Period starts01/02/2027
3Period ends30/04/2027
4Year end31/03/2027
5
6Days to year end59
7Days in period89
8Accrual£590.00
B6 holds =MIN(B3,B4)-B2+1, B7 holds =B3-B2+1 and B8 holds =B1*B6/B7.

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

Your turn

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.

AB
1Cost£2,730.00
2Starts15/11/2026
3Ends14/08/2027
4Cost per day£10.00
5
6Month startingAmount
701/10/2026
801/11/2026
901/12/2026
1001/01/2027
1101/02/2027
1201/03/2027
1301/04/2027
1401/05/2027
1501/06/2027
1601/07/2027
1701/08/2027
1801/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.