FormulaCamp
Completed
← All functions
Dynamic arrays

SCAN

All the intermediate totals.

Syntax

SCAN(initial_value, array, LAMBDA(total, x))

Example: =SCAN(0,A2:A6,LAMBDA(a,x,a+x))

Available in: Excel 2024, Microsoft 365

Try it

A tiny spreadsheet with example data. Edit the formula or any number and see the result.

Formula in F2: =SCAN(0,C2:C7,LAMBDA(a,x,a+x))

Example spreadsheet for SCAN
ABCDEF
1RegionProductUnitsPriceResult
2EastPen1202.5120
3WestPen802.5200
4EastBook4512245
5NorthBook6012305
6WestLamp3025335
7EastLamp1525350
Result in F2: 120

More in Dynamic arrays