Google Sheets Accrued Revenue Formula
In this article
To calculate accrued revenue in Google Sheets, use a formula that multiplies the portion of a service or subscription period that has elapsed by the total contract value. For example, if a $1,200 annual contract started on January 1 and you are reporting as of March 31, the formula =(DATE(2025,3,31)-DATE(2025,1,1))/365*1200 returns approximately $295.89 of revenue earned but not yet billed. The exact formula depends on whether you accrue daily, monthly, or by milestone, but the structure is always: earned portion × total value. This guide shows you how to build a reusable accrued revenue calculator in Google Sheets, step by step.
What You'll Need
- A Google account with access to Google Sheets (free with any account).
- Your contract or subscription data: start date, end date (or term length), total contract value, and the reporting date for which you want to accrue revenue.
- Basic familiarity with entering dates and formulas in Sheets. No add-ons or paid tools are required.
Step-by-Step
- Set up your columns. Open a new Google Sheet. In row 1, enter these headers: Contract ID, Start Date, End Date, Total Value, Reporting Date, Days Elapsed, Total Days, Accrued Revenue. Keep dates in separate columns so formulas can reference them cleanly.
- Enter your data. In row 2, type a sample contract: ID
C-001, Start Date2025-01-01, End Date2025-12-31, Total Value1200, Reporting Date2025-03-31. Use the date format your sheet recognizes (YYYY-MM-DD is safest). If your sheet uses a different locale, enter dates as they appear in your region. - Calculate days elapsed. In cell F2 (Days Elapsed), enter
=MAX(0, MIN(E2, C2) - B2). This formula counts only the days between the start date and the earlier of the reporting date or the end date, so it never goes negative or exceeds the contract term. If the reporting date is before the start date, it returns 0. - Calculate total days. In cell G2 (Total Days), enter
=C2 - B2. This gives the full length of the contract in days. For a one-year contract starting January 1 and ending December 31, this returns 364 (because the end date is exclusive). If you prefer to include both start and end dates, use=C2 - B2 + 1; just be consistent across all rows. - Calculate accrued revenue. In cell H2, enter
=IFERROR((F2 / G2) * D2, 0). This divides days elapsed by total days to get the earned percentage, then multiplies by the total value. The IFERROR wrapper returns 0 if total days is zero (for example, if start and end dates are the same), preventing a division error. - Format the result. Select column H and apply currency formatting (Format > Number > Currency). You can also round to two decimals with
=ROUND(IFERROR((F2/G2)*D2,0), 2)if you prefer clean values. - Copy the formulas down. Drag the fill handle from F2:H2 down to cover all your contract rows. Each row will calculate independently based on its own dates and value.
- Test edge cases. Change the Reporting Date to a date before the Start Date; Days Elapsed should be 0 and Accrued Revenue should be 0. Change it to a date after the End Date; Days Elapsed should equal Total Days and Accrued Revenue should equal Total Value. This confirms the formula behaves correctly at boundaries.
- Optional: add a monthly accrual view. If you need to accrue revenue month by month, add a column for Month End and replace the Reporting Date reference with that month-end date. Then create one row per month per contract. The same formula works because it always compares the reporting date to the contract period.
- Lock the sheet and share. Use Data > Protect sheets and ranges to prevent accidental edits to formulas. Share the sheet with your accounting team using the Share button. Note that menu labels can differ slightly by Google Sheets version, device, or region.
Common Mistakes
- Using inclusive vs. exclusive end dates inconsistently. If one row counts the end date and another does not, accrued revenue will be off by one day's worth. Pick a convention and apply it everywhere.
- Forgetting to cap days elapsed at the contract end. Without the MIN function, a reporting date after the end date would over-accrue revenue beyond the total contract value.
- Dividing by zero. If start and end dates are identical, total days is zero. Always wrap the division in IFERROR or check for zero.
- Mixing date formats. Sheets may interpret
03/04/2025as March 4 or April 3 depending on locale. Use unambiguous formats like YYYY-MM-DD or set the column format explicitly. - Hardcoding the reporting date inside the formula. Put the reporting date in its own cell so you can update it once and recalculate all rows.
- Applying the formula to text values. If Total Value contains a currency symbol or spaces, Sheets may treat it as text. Keep numeric columns as plain numbers and format them afterward.
Tips
- Use named ranges (Data > Named ranges) for your reporting date cell so formulas read like
=(MIN(ReportingDate, C2)-B2)/(C2-B2)*D2. - Add a check column that flags rows where Accrued Revenue exceeds Total Value or is negative; both indicate a data entry error.
- For contracts billed in advance, accrued revenue represents the earned portion; for contracts billed in arrears, it represents revenue earned but not yet invoiced. The formula is the same; the accounting treatment differs.
- If your contracts have a ramp period or variable pricing, split the contract into phases and calculate each phase separately, then sum the accrued amounts.
- Keep a separate tab with a list of reporting dates (month-ends) and use a SUMIFS or SUMPRODUCT to aggregate accrued revenue by period for your journal entries.
Troubleshooting
- Formula returns a date instead of a number. The cell is formatted as a date. Change the format to Number or Currency.
- #VALUE! error. One of the referenced cells contains text instead of a date or number. Check that Start Date, End Date, Total Value, and Reporting Date are all entered as dates or numbers, not as text with extra spaces.
- #DIV/0! error. Total Days is zero. Confirm that End Date is after Start Date. If they are the same, the contract has no duration and accrued revenue is zero.
- Accrued revenue is higher than total value. Days Elapsed is exceeding Total Days. Make sure you used the MIN function to cap at the end date.
- Results look off by a day. Check whether your Total Days formula includes or excludes the end date, and whether your Days Elapsed formula does the same. Align both conventions.
- Formulas break when you add rows. If you inserted rows above your data, relative references may shift. Use absolute references (with $) for fixed cells like the reporting date, or convert your range to a table-like structure with consistent formulas.
Frequently Asked Questions
Can I calculate accrued revenue without exact end dates?
Yes. If you only know the term length in months, use EDATE(StartDate, Months) to generate an end date, then apply the same formula. For example, =EDATE(B2, 12) gives a date 12 months after the start.
Does this formula work for monthly subscriptions?
Yes. For a monthly subscription, set Start Date to the billing period start and End Date to the period end. The formula will accrue revenue proportionally across the days in that period. For multiple months, create one row per month.
How do I handle contracts with a free trial period?
Exclude the trial period from the revenue-earning term. Set Start Date to the first day after the trial ends, or add a separate column for trial end and use that as the start for accrual purposes.
Can I use this for deferred revenue instead?
Yes. Deferred revenue is the unearned portion: Total Value - Accrued Revenue. Add a column with that formula to track both sides of the entry.
What if my reporting date is in the middle of a month?
The formula handles any date. Just enter the exact reporting date in the Reporting Date column. Days Elapsed will count partial months correctly.
Do I need to adjust for leap years?
The formula uses actual days, so leap years are automatically accounted for. A 366-day year will produce slightly different daily rates than a 365-day year, which is correct for daily accrual.