Returns the largest value in a set of values. Ignores logical values and text.
Name | Type | Description |
args | number | string | array | ApiRange | Up to 255 numeric values for which the largest number will be returned. The first argument is required, subsequent arguments are optional. |
builder.CreateFile("xlsx"); const oWorksheet = Api.GetActiveSheet(); var oFunction = Api.GetWorksheetFunction(); var max = oFunction.MAX(123, 197, 46, 354, 67, 456); oWorksheet.GetRange("C1").SetValue(max); builder.SaveFile("xlsx", "MAX.xlsx"); builder.CloseFile();