Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan Now×
Skip to content
World desk2 min

What Is Excel’s SCAN Function, and How Does It Work?

Excel’s SCAN function applies a LAMBDA across an array and returns each intermediate result, making it useful for running totals, products, and text.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Excel’s SCAN function applies a LAMBDA calculation to each item in an array and returns every intermediate result. Use it when you need to see an accumulation develop—such as a running total—rather than just its final value.

How SCAN processes an array

SCAN keeps an accumulator: a value that changes as the function moves through the array. For each item, its LAMBDA receives the current accumulator and the item, calculates a new accumulator, and returns that result as part of the output array.

Microsoft documents the syntax as:

=SCAN([initial_value], array, LAMBDA(accumulator, value, body))

  • initial_value sets the accumulator’s starting state.
  • array is the data SCAN processes.
  • The LAMBDA names the accumulator and current value, then uses its body to calculate the next state.

Example: calculate a running total

If cells A1:A3 contain 2, 3, and 4, enter:

=SCAN(0,A1:A3,LAMBDA(a,v,a+v))

The results are 2, 5, and 9. The first result is 0 + 2; the next adds 3 to the prior total; the last adds 4. Each output is the accumulator after processing that input. Microsoft documents the same accumulator pattern in its SCAN function examples.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Sale
The Microsoft Office 365 Bible: The Most Updated and Complete Guide to Excel, Word, PowerPoint, Outlook, OneNote, OneDrive, Teams, Access, and Publisher from Beginners to Advanced
  • The Microsoft Office 365 Bible: The Most Updated and Complete Guide to Excel, Word, PowerPoint, Outlook, OneNote, OneDrive, Teams, Access, and Publisher from Beginners to Advanced
  • ABIS BOOK

Other calculations SCAN can build

Intermediate products

To multiply each value by the accumulated product so far, Microsoft gives this example:

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

With an initial value of 1, each returned item is the product accumulated through that point in the array.

Progressively concatenated text

To build text one value at a time, Microsoft’s example is:

=SCAN("",A1:C2,LAMBDA(a,b,a&b))

The empty string is the starting accumulator for this text calculation. Microsoft advises using "" as the initial value when working with text.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

SCAN or REDUCE: which should you use?

Function What it returns Use it when
SCAN Each intermediate accumulator value You need to see the progression, such as every running total.
REDUCE The final accumulated value You need only the result after the whole array has been processed.

Both functions apply a LAMBDA across an array, but expose different results. Microsoft’s REDUCE documentation describes its final-result behavior.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Availability and errors

Microsoft’s detailed English SCAN support page lists Excel for Microsoft 365, Microsoft 365 for Mac, Excel 2024, and Excel 2024 for Mac. Microsoft’s Australian SCAN page also lists Excel for the web, while its alphabetical function reference marks SCAN with “(2024).” These references differ in scope, so check the documentation or function availability for your own Excel edition rather than assuming every version includes it.

Microsoft says an invalid LAMBDA or an incorrect number of parameters produces #VALUE! (“Incorrect Parameters”). Check that the formula supplies the expected arguments and that the LAMBDA calculation is valid. A separate, general LAMBDA issue can produce #CALC! if a LAMBDA is entered in a cell without being called; Microsoft explains this in its LAMBDA function documentation.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. Shenzhen desk3 min
    HONOR Expands Beyond Smartphones With Humanoid Robot RevealHONOR said it unveiled its first humanoid robot at MWC 2026 and named shopping assistance, workplace inspections, and supportive companionship as intended uses. Later Robotics D1 claims and a reported…
  2. Cupertino desk5 min
    Apple Unveils AirPods Max 2: The Upgrade That Should Have Happened Years AgoAirPods Max 2 adds H2-powered audio features and Apple claims up to 1.5× more effective ANC, but its design, Smart Case, and 20-hour battery rating are unchanged. Wired lossless audio…
  3. Cupertino desk4 min
    Apple’s OLED Touch MacBooks Are Coming—but the Dynamic Island Is the Real GambleApple has not announced an OLED touchscreen MacBook, but reports point to high-end models arriving in late 2026 or early 2027. The reported Mac Dynamic Island could be useful, but…
Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.