EXCEL SCAN FUNCTION

Scans an array by applying a LAMBDA to each item, returning an array containing each intermediate value.

Syntax :

=SCAN ([initial_value], array, lambda(accumulator, value))

Parameters :

  • [initial value] – Defines the accumulator’s starting value.
  • array – An array that will be examined.
  • lambda – A LAMBDA function that is used to scan the array. The LAMBDA considers two variables:
  • accumulator – A value that is totalled and returned as the final result.
  • value – The computation performed on each array element.

Step By Step Guide of SCAN Function

Example :

To create a list of factorials insert the sample data into cells A1:C2, and then copy the formula into cell D4:

=SCAN(1, A1:C2, LAMBDA(a,b,a*b))

Scan Function
  • To set the initial value for the accumulator parameter, use the initial value argument. Set the starting value to “” if you’re working with text.
  • If you supply an improper LAMBDA function or a wrong amount of arguments, you will receive a #VALUE! error named “Incorrect Parameters.”

Related Functions

HLOOKUP Function

HLOOKUP Function

Explore Now

VLOOKUP Function

VLOOKUP Function

Explore Now

INDEX Function

INDEX Function

Explore Now

MATCH Function

MATCH Function

Explore Now

DATE Function

DATE Function

Explore Now

IF Function

IF Function

Explore Now

OR Function

OR Function

Explore Now

AND Function

AND Function

Explore Now

RANK Function

RANK Function

Explore Now

SUMIF Function

SUMIF Function

Explore Now

XIRR Function

XIRR Function

Explore Now

WORKDAYS Function

WORKDAYS Function

Explore Now