SYD

function SYD(
  arg1: number = null,
  arg2: number = null,
  arg3: number = null,
  arg4: number = null,
): number | string | boolean

Description

Returns the sum-of-years' digits depreciation of an asset for a specified period.

Parameters

arg1numberdefault: null

Is the initial cost of the asset.

arg2numberdefault: null

Is the salvage value at the end of the life of the asset.

arg3numberdefault: null

Is the number of periods over which the asset is being depreciated (sometimes called the useful life of the asset).

arg4numberdefault: null

Is the period and must use the same units as Life.

Returns

number | string | boolean

Try It

var oWorksheet = Api.GetActiveSheet();
var oFunction = Api.GetWorksheetFunction();
oWorksheet.GetRange("A1").SetValue(oFunction.SYD(3500, 500, 5, 3));

Get Help

  • If you have any questions about ONLYOFFICE Docs, try the FAQ section first.
  • You can request a feature or report a bug by posting an issue on GitHub.
  • You can also ask our developers on ONLYOFFICE forum (registration required).