SCAN function - Zoho Sheet - Help Guide

SCAN

Returns an array as a result of scanning all the given values by applying LAMBDA to each value. The result array will be the same size as the source array.
 
Syntax
 
SCAN([initial_value]; array; lambda(accumulator; value; calculation))
initial_value: The start value for the accumulator. Eg., 0
array: The array to evaluate. Eg., A2:A8
lambda: The function to be applied to each value in the given array.
accumulator: The total value returned as result. Eg., a
value: A variable indicating the values to be used in calculation. Eg., b
calculation: The calculation applied to each value in the input. Eg., a+b
 
Examples
 
Formula
=SCAN(0;A2:A8;LAMBDA(a;b;a+b))
=SCAN(1;{1;3;5;7;9};LAMBDA(a;b;a*b))

Get a hands-on experience of the function in the embedded range below.

 

Possible Errors

Errors
Meaning
#NAME!
  • The function name is incorrect or invalid.
  • The given defined name (if any) is invalid.
  • There is a typo in the defined name used in the function.
  • Double quotes are missing for text values in the function.
  • Colon missing in a cell range reference.
#VALUE!
  • The given argument's data type is incorrect or invalid.
#REF!
  • The given cell reference is incorrect or invalid. This error may occur when a cell/range has been deleted, moved, or pasted over.
#NUM!
  • The given array is too large.
 
Similar Functions
  • BYCOL
  • BYROW
  • ISOMITTED
  • LAMBDA
  • MAKEARRAY
  • MAP
  • REDUCE