=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.
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.
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.
Imagine you are managing a project budget, and you have the following data in an Excel spreadsheet:
| Item | Cost |
|---|---|
| Supplies | 150 |
| Equipment | 300 |
| Labor | 500 |
| Miscellaneous | 100 |
You want to find the total cost of all items in the budget.
To calculate the total cost, you would use the REDUCE formula as follows:
=REDUCE(0, B2:B5, LAMBDA(total, cost, total + cost))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.
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.
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!
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.
Create a free account for formula help, explanations, and spreadsheet analysis. Usage limits depend on your plan.
Browse our complete library of Excel formula guides
Compare your options
Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.
AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.