Logical Excel 365 ◉ 7 views Dynamic Array

=SCAN()

Scans an array by applying a LAMBDA function to each value and returns an array that has each intermediate value

Applies To: Excel for Microsoft 365Excel for Microsoft 365 for MacExcel 2024Excel 2024 for Mac
=SCAN ([initial_value], array, lambda(accumulator, value, body))
Hover argument names in the table for details.
Output typeArray
Popularity25 / 100
VolatileNo
Dynamic ArrayYes
📥 Download sample .xlsx — Coming soon ▦ Try in Playground Dedicated file for this function — safe & lightweight · sample data + live formulas
Share:

⬇ Download Sample Workbook

A dedicated .xlsx for =SCAN() with Persian sample data & live formulas — open in Excel and practice.

  • Sheet “Sample” — data table + formula in place
  • Sheet “Guide” — syntax, arguments & tips from this page
  • Instant & secure (token + rate limit)
📥 Download SCAN.xlsx — Coming soon ~ 8–12 KB · No macros

⇪ Share

Send this function to friends

🧠 🧠 Quiz this function

%d questions — syntax, example & errors — test yourself!

◧ Arguments

ArgumentTypeRequiredDescription
initial_value Any type Optional Sets the starting value for the accumulator.
array Array Optional An array to be scanned.
lambda Any type Optional A LAMBDA that is called to reduce the array. The LAMBDA takes three parameters: accumulator The value totaled up and returned as the final result. value The current value from the array. body The calculation applied to each element in the array.

▣ Examples

پیمایش آرایه A1:C2 با ضرب تجمعی =SCAN(1, A1:C2, LAMBDA(a,b,a*b))
پیمایش آرایه A1:C2 با الحاق متنی =SCAN("",A1:C2,LAMBDA(a,b,a&b))

✦ Tips

  • Use the initial_value argument to set the starting value for the accumulator parameter. If you are working with text, set the initial value to "".

⚠ Common Errors

#VALUE! Providing an invalid LAMBDA function or an incorrect number of parameters returns a #VALUE! error called "Incorrect Parameters".
Fix: Check the number of LAMBDA parameters

💬 Comments & Q&A 0 approved

🔒 Your comment will be published after review.

Share your thoughts — visible after admin approval

No comments yet — be the first!

✍️ Add comment / question

captcha
🔒 Your comment will be published after review.