LibreOfficeDev 27.2 žinynas
Applies a custom LAMBDA function to each element in a given array and accumulates results to a single value.
=REDUCE([Initial value]; Array; Formula)
Initial value: Optional initial value of the accumulator.
Array: The array to be reduced.
Formula: a LAMBDA function that will be called on each cell of the array.
The LAMBDA function requires two variables: an accumulator (e.g., a) and the array element value (v), and must be structured as follows:
where f(v) is a function of the individual cells of the array.
The formula =REDUCE(100000;A2:A13;LAMBDA(a;v; a + v*v)) returns 120715, which is 100000 added to the sum of the squares of the Math column.
COM.MICROSOFT.REDUCE