
SCAN function
The SCAN function is used to search an array (range) and return the calculated value based on a formula specified using the LAMBDA function. The first, optional argument, is the initial value. It is often left out. Then we specify an array (range) and at the end we state the mentioned expression by which the calculation is performed. The result of this function is not one value but a range whose dimensions correspond to a given sequence.