When calculating the depreciation of an asset, it is common to use an accelerated depreciation calculation, in which the calculated value of an asset is reduced by a larger amount during the first period of its lifetime, and smaller amounts during subsequent periods.
One of the most popular accelerated depreciation methods is the Double DecliningBalance Method, in which the straightline depreciation rate is doubled. A useful example of this is provided on the Wikipedia depreciation page
The Excel VDB function allows you to specify a factor to multiply the straight line depreciation by, although the function uses the Double DecliningBalance Method by default.
The Excel VDB function calculates the depreciation of an asset, using the Double Declining Balance Method, or another specified depreciation rate, for a specified period (including partial periods).
The syntax of the function is:
where the arguments are as follows:
cost    The initial cost of the asset.  
salvage    The value of the asset at the end of the depreciation.  
life    The number of periods over which the asset is to be depreciated.  
start_period    The starting period for which you want to calculate the depreciation.  
end_period    The ending period for which you want to calculate the depreciation.  
[factor]   
An optional argument that is used to specify the rate of depreciation. If the [factor] argument is omitted from the function it takes on the default value of 2 (specifying the double declining depreciation method) 

[no_switch]   
An optional logical argument that specifies whether the method should switch to straight line depreciation when depreciation is greater than the declining balance calculation. Possible values are:

Formulas:


Results:

In the above spreadsheet on the right, the VDB function uses the double declining depreciation method to calculate the depreciation during different periods, of an asset that costs $10,000 at the start of year 1, and has a salvage value of $1,000 after 5 years.
Note that the sum of the depreciations from year 1, years 2 & 3, and years 4 & 5 add up to $9,000, so the asset value at the end of year 5 is,
which, as expected, is the specified salvage value.
Note also, that, as the [factor] and [no_switch] arguments are omitted from the examples, these arguments take the default values of 2 and FALSE respectively.
Formulas:


Results:

If you wish to use the VDB function to find the depreciation for a partial period, you can supply the life, start_period and end_period arguments as a number of months.
This is shown in the above spreadsheet on the right. The life argument of 5 years is equal to 60 months.
In order to the calculate depreciation during the first month, the start_period and end_period are set to 0 and 1 respectively.
Similarly, if you want to calculate depreciation during the first six months, this can be done by setting the start_period and end_period to 0 and 6 respectively.
See the Microsoft Office website for further information and examples of the Excel VDB function.
If you get an error from the Excel VDB Function, this is likely to be one of the following:
#NUM!   
Occurs if either:

#VALUE!    Occurs if any of the supplied arguments are nonnumeric. 