VDB Function in Microsoft Excel: Syntax, Examples & Troubleshooting
Use Excel VDB for full or partial depreciation intervals. Compare automatic straight-line switching with no_switch, zero-based interval boundaries and fractional periods.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Quick answer: VDB calculates depreciation over an interval, including part of a period. By default it starts with double-declining balance and switches to straight-line when straight-line depreciation becomes larger. Set no_switch to TRUE to prevent that switch.
Syntax and arguments
=VDB(cost, salvage, life, start_period, end_period, [factor], [no_switch])
The first five arguments are required. cost is initial cost, salvage is the intended ending value, and life is the depreciation lifetime. start_period and end_period define interval boundaries in the same units as life. The first full period is the interval 0 to 1, not 1 to 1.
factor defaults to 2. no_switch defaults to FALSE: Excel may change from declining balance to straight-line when the latter is larger. TRUE preserves declining balance. This negative argument name is easy to invert; TRUE means “do not switch.”
Microsoft explicitly permits salvage 0 and demonstrates a start boundary of 0, despite a broad positive-numbers warning on the page. Keep cost, life and factor positive, salvage nonnegative, and boundaries ordered within the asset’s life. The individual reference does not provide a complete invalid-input error table.
Worked example: depreciation over two years
Put 1000 in B2 (cost), 0 in B3 (salvage) and 5 in B4 (life in years).
- Enter
=VDB(B2,B3,B4,0,1)in D2. Expected result: 400. - Enter
=VDB(B2,B3,B4,1,2)in D3. Expected result: 240. - Enter
=VDB(B2,B3,B4,0,2)in D4. Expected result: 640.
The first interval uses 1000 × 2/5 = 400. The second uses the remaining 600 × 2/5 = 240. The two-year interval aggregates both. Unlike a single-period function, VDB’s start/end pair defines how much of the schedule to include.
Second example: a fractional interval
=VDB(1000,0,5,0,0.5,2,TRUE)
Expected result: 200, half of the first period’s 400 declining-balance depreciation. The life is still expressed in years; end_period 0.5 means half a year. It is not “month 5” and does not require a calendar date input.
For =VDB(1000,0,5,0.5,1.5,2,TRUE), the expected result is 320, comprising half of period 1 (200) plus half of period 2 (120). This deliberately simple no-switch fixture isolates fractional-period allocation.
Advanced application: see exactly when switching matters
For the full five-year asset, the default schedule has expected depreciation 400, 240, 144, 108, 108. After year 3, the book value is 216 with two years remaining. Declining balance would give 86.4 for year 4; straight-line gives 216/2 = 108, so the default method switches.
=VDB(1000,0,5,0,5)
=VDB(1000,0,5,0,5,2,TRUE)
Expected totals are 1000 with switching and 922.24 without switching. In the no-switch schedule, the final two amounts are 86.4 and 51.84, leaving 77.76. This difference follows the method, not a display-format setting.
To audit a workbook, calculate adjacent intervals 0–1, 1–2, 2–3, 3–4 and 4–5, then sum them. Use consistent factor and no_switch settings for every row. Comparing a default interval with a no-switch total mixes two different schedules.
Troubleshooting and practical limits
- Zero or wrong period total: check interval boundaries; 0–1 represents the first full period.
- Unexpectedly high later depreciation: inspect no_switch. The default permits straight-line to exceed the declining amount.
- Unit mismatch: if life is 60 months, an interval 6–18 means month 6 to month 18, not years 6 to 18.
- Confusing partial ownership with tax rules: VDB accepts fractions but does not decide a jurisdiction’s depreciation convention or eligibility.
- Error inputs: validate ordered bounds, numeric asset amounts and a positive life/factor. Do not import undocumented coercion expectations from a different application.
Compatibility and verification
Microsoft’s reference checked on October 17, 2026 lists: Excel for Microsoft 365 Excel for Microsoft 365 for Mac Excel 2024 Excel 2024 for Mac Excel 2021 Excel 2021 for Mac Excel 2019 Excel 2016. This current support list does not establish the first release. The introduction version and last functioning version have not been established from the reviewed documentation. No retirement is asserted.
Example verification: Expected numerical results are independently calculated; text and shape expectations follow the documented contract. These examples have not been tested in Microsoft Excel. No screenshot or native execution is claimed.
Related guides and source
SLN in Excel | SYD in Excel | SUM in Excel | ROUND in Excel
- Microsoft VDB reference, retrieved October 17, 2026.