Excel REDUCE Function: Syntax, Examples & Tips

The =REDUCE function aggregates data using a custom initial value and a lambda function for efficient calculations in Excel.
Excel
=REDUCE(initial_value, array, lambda)

One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.

Need more than a single REDUCE formula? Try our free AI for Excel — it reads your entire spreadsheet, answers questions in plain English, and builds charts and analysis in the same chat.

On this page
  1. Parameters
  2. What is a REDUCE Formula in Excel?
  3. A Practical Example
  4. REDUCE Formula
  5. Result of the Formula
  6. Why Use REDUCE?
  7. Key Takeaways:
  8. Example use case

Parameters

initial_value:
The starting value for the reduction process. This can be a number, text, or any data type that matches the type of values in the array.

array:
The array or range of values that you want to reduce. This can be a single row, single column, or a two-dimensional array.

lambda:
A custom function defined using the LAMBDA function that takes two parameters: the accumulator (the current reduced value) and the current value from the array. This function specifies how to combine these two values during the reduction process.

What is a REDUCE Formula in Excel?

The REDUCE function in Excel is a powerful tool that allows you to apply a specific operation across a range of values, reducing them to a single value. It takes an array and a function as arguments, applying the function iteratively to the elements of the array to produce a cumulative result.

In simpler terms, the REDUCE function helps you perform calculations across a set of values, making it easier to condense data into a single summary value.

A Practical Example

Imagine you are managing a project budget, and you have the following data in an Excel spreadsheet:

Budget Data Table:

ItemCost
Supplies150
Equipment300
Labor500
Miscellaneous100

You want to find the total cost of all items in the budget.

REDUCE Formula

To calculate the total cost, you would use the REDUCE formula as follows:

Excel
=REDUCE(0, B2:B5, LAMBDA(total, cost, total + cost))

Breakdown of the Formula:

  • 0: This is the initial value for the reduction (starting point).
  • B2:B5: This is the range of values that will be processed.
  • LAMBDA(total, cost, total + cost): This is the function that defines how to combine the values. It takes two arguments: the current total and the current cost, and returns their sum.

Result of the Formula

When you apply the formula, it sums the costs for Supplies, Equipment, Labor, and Miscellaneous. The output would be:

Total Cost
1050

Here, the total cost is calculated as 150 (Supplies) + 300 (Equipment) + 500 (Labor) + 100 (Miscellaneous) = 1050.

Why Use REDUCE?

The REDUCE function is particularly useful when you need to perform cumulative calculations across a range of values without manually iterating through each item. It allows you to quickly derive a single summary value from a dataset.

Key Takeaways:

  • REDUCE: Applies a function across a range of values to produce a single result.
  • Efficient Data Processing: Helps you condense data into summary values without complex formulas.
  • Common Use Cases: Ideal for aggregating costs, calculating totals, and any scenario where you need to summarize data.

Understanding how to use the REDUCE function can significantly enhance your data processing capabilities in Excel, enabling you to extract meaningful insights from your datasets.

Happy calculating!

Example use case

You have a table where Column A contains different product categories and Column B contains their corresponding sales figures for the month. You can use the REDUCE function to calculate the cumulative total sales across all categories, allowing you to quickly assess overall performance and make strategic decisions regarding inventory and marketing efforts without the need for complex manual calculations.

Beyond the REDUCE function: Better Analyst is a full Excel AI that goes well past individual formulas. Upload any spreadsheet and ask questions in plain English — you'll get formulas, data analysis, and charts back in seconds. It's a free AI Excel assistant that works with any .xlsx, .xls, or .csv file — no plugins, no Microsoft 365 required.

Don't have a spreadsheet yet? Use our free AI spreadsheet generator to turn a text prompt into a downloadable Excel file — a full AI Excel sheet maker that builds headers, columns, and formulas from your description.

Need more help with Excel formulas?

Create a free account for formula help, explanations, and spreadsheet analysis. Usage limits depend on your plan.

Explore all Excel formulas

Browse our complete library of Excel formula guides

Compare your options

Decide with evidence, not a sales pitch.

Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.

  1. 01ChatGPTOpen a balanced comparison prompt in ChatGPT.
  2. 02ClaudeOpen the same research prompt in Claude.
  3. 03PerplexityResearch the comparison with linked web sources.

AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.