Logical
Excel 365
◉ 11 views
=REDUCE()
Reduces an array to an accumulated value by applying a LAMBDA function to each value and returning the total value in the accumulator
Applies To:
Excel for Microsoft 365Excel for Microsoft 365 for Mac
=REDUCE([initial_value], array, lambda(accumulator, value, body))
Hover argument names in the table for details.
Output typeMixed
Popularity20 / 100
VolatileNo
Dynamic ArrayNo
📥 Download sample .xlsx — Coming soon
▦ Try in Playground
Dedicated file for this function — safe & lightweight · sample data + live formulas
⬇ Download Sample Workbook
A dedicated .xlsx for =REDUCE() 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)
🧠 🧠 Quiz this function
%d questions — syntax, example & errors — test yourself!
◧ Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
initial_value |
Any type | Optional | Sets the starting value for the accumulator. |
array |
Array | Optional | An array to be reduced. |
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
Example 1
=REDUCE(, A1:C2, LAMBDA(a,b,a+b^2))
§ Remarks
- Use the initial_value argument to set the starting value for the accumulator parameter. In Example 2, where you multiply the accumulator, set the value to 1 to avoid multiplying by 0.
- NOTE: If no value is supplied for the initial_value, the first value in the array will be used as the starting value.
✦ Tips
- Use the initial_value argument to set the starting value for the accumulator parameter. In Example 2, where you multiply the accumulator, set the value to 1 to avoid multiplying by 0.
- NOTE: If no value is supplied for the initial_value, the first value in the array will be used as the starting value.
⚠ 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!