# Google Sheets REDUCE Function: Syntax, Examples & Tips

- URL: https://betteranalyst.com/google-sheets/reduce-function
- Author: Better Analyst

Formula Bot is now Better Analyst—same account, more powerful analysis.Formula Bot is now Better Analyst—same account and workflows, with more powerful analysis, dashboards, and automation.

[Learn what changed](https://betteranalyst.com/formula-bot-is-now-better-analyst)

The REDUCE function applies a specified operation across a range, accumulating a single result by iteratively processing each element.

```
REDUCE(initial_value, array_or_range, LAMBDA)
```

Generate FormulaExplain Formula

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

Describe the REDUCE you need in plain EnglishGenerate Formula

## Parameters

**`initial_value`**:\
The starting value for the reduction process. This can be a number, text, or any other data type that you want to begin with.

**`array_or_range`**:\
The array or range of cells that you want to process through the reduction operation. This is the collection of values that will be evaluated and combined.

**`LAMBDA`**:\
A custom function defined using the LAMBDA syntax that takes at least two parameters: the accumulator (the current value being reduced) and the current item from the array or range. This function specifies how to combine these two values during the reduction process.

## What is a REDUCE Function?

The *REDUCE* function in Google Sheets is a powerful tool used to apply a function across a range or array, aggregating the results into a single value. It is particularly useful for performing calculations that require combining multiple values, such as summing, multiplying, or concatenating.

In simpler terms, REDUCE allows you to take a list of values and apply a specific operation to them, ultimately producing a single output based on the defined function.

## A Practical Example

Imagine you are managing a list of sales data for different products:

### Sales Data Table:

| ProductID | Quantity | Price |
| - | - | - |
| 101 | 3 | 25.00 |
| 102 | 5 | 30.00 |
| 103 | 2 | 15.00 |

You want to calculate the total revenue generated from all products sold.

## REDUCE Formula

To achieve this, you would use the REDUCE function as follows:

```
=REDUCE(0, SalesData!B2:B4, LAMBDA(total, quantity, total + (quantity * INDEX(SalesData!C2:C4, ROW() - 1))))
```

In this formula:

- `0` is the initial value for the total revenue.
- `SalesData!B2:B4` is the range of quantities sold.
- `LAMBDA(total, quantity, total + (quantity * INDEX(SalesData!C2:C4, ROW() - 1)))` defines the operation to be performed: multiplying the quantity by the corresponding price and adding it to the total.

## Result of the Formula

When you apply the REDUCE formula to the Sales Data Table, the output would be the total revenue:

| Total Revenue |
| - |
| 195.00 |

This value represents the total revenue generated from all products sold based on the quantities and prices provided.

## Why Use REDUCE?

REDUCE is beneficial because it simplifies the process of aggregating data in Google Sheets. It allows for the application of custom functions to ranges, enabling complex calculations without the need for additional helper columns. This makes your spreadsheets cleaner and more efficient.

## Key Takeaways:

- **REDUCE**: A modern Google Sheets function that applies a function across a range and returns a single aggregated value.
- **Versatile**: Can be used for various calculations, including sums, products, and custom operations.
- **Custom Functions**: Allows for the use of LAMBDA functions to define specific operations, enhancing flexibility.
- **Common Use Cases**: Ideal for financial calculations, data analysis, and any scenario where aggregation of values is necessary.

REDUCE is an essential function for anyone working with data in Google Sheets, providing a powerful way to enhance data analysis and reporting capabilities.

Happy spreadsheeting!

## Example use case

You have a list of sales transactions in Column A and their corresponding amounts in Column B. Use the REDUCE function to calculate the total sales amount by summing up all values in Column B, providing a quick overview of total sales performance.

## Need more help with Google Sheets formulas?

Sign up for Better Analyst and get unlimited AI-powered formula generation, explanations, and advanced data analysis.

[Create Free Account](https://betteranalyst.com/signup)[Try Formula Generator](https://betteranalyst.com/excel-ai)

## Google Sheets how-to guides

- [How To Make A Pie Chart In Google Sheets](https://betteranalyst.com/google-sheets/how-to-make-a-pie-chart-in-google-sheets)
- [How To Make A Table In Google Sheets](https://betteranalyst.com/google-sheets/how-to-make-a-table-in-google-sheets)
- [How To Merge Cells In Google Sheets](https://betteranalyst.com/google-sheets/how-to-merge-cells-in-google-sheets)
- [How To Multiply In Google Sheets](https://betteranalyst.com/google-sheets/how-to-multiply-in-google-sheets)
- [How To Password Protect An Google Sheets File](https://betteranalyst.com/google-sheets/how-to-password-protect-an-google-sheets-file)
- [How To Remove Blank Rows In Google Sheets](https://betteranalyst.com/google-sheets/how-to-remove-blank-rows-in-google-sheets)
- [How To Remove Duplicates In Google Sheets](https://betteranalyst.com/google-sheets/how-to-remove-duplicates-in-google-sheets)
- [How To Separate Names In Google Sheets](https://betteranalyst.com/google-sheets/how-to-separate-names-in-google-sheets)

## Explore all Google Sheets formulas

Browse our complete library of Google Sheets 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.](https://chatgpt.com/?prompt=Compare%20Better%20Analyst%20with%20using%20a%20general-purpose%20AI%20assistant%20for%20data%20analysis.%20Evaluate%20spreadsheet%20and%20document%20analysis%2C%20dashboards%2C%20repeatable%20reports%2C%20code%20transparency%2C%20data%20connections%2C%20pricing%2C%20and%20limitations.%20Use%20current%20public%20sources%2C%20distinguish%20verified%20facts%20from%20assumptions%2C%20and%20explain%20which%20types%20of%20users%20each%20option%20fits%20best.)
2. [02ClaudeOpen the same research prompt in Claude.](https://claude.ai/new?q=Compare%20Better%20Analyst%20with%20using%20a%20general-purpose%20AI%20assistant%20for%20data%20analysis.%20Evaluate%20spreadsheet%20and%20document%20analysis%2C%20dashboards%2C%20repeatable%20reports%2C%20code%20transparency%2C%20data%20connections%2C%20pricing%2C%20and%20limitations.%20Use%20current%20public%20sources%2C%20distinguish%20verified%20facts%20from%20assumptions%2C%20and%20explain%20which%20types%20of%20users%20each%20option%20fits%20best.)
3. [03PerplexityResearch the comparison with linked web sources.](https://www.perplexity.ai/search?q=Compare%20Better%20Analyst%20with%20using%20a%20general-purpose%20AI%20assistant%20for%20data%20analysis.%20Evaluate%20spreadsheet%20and%20document%20analysis%2C%20dashboards%2C%20repeatable%20reports%2C%20code%20transparency%2C%20data%20connections%2C%20pricing%2C%20and%20limitations.%20Use%20current%20public%20sources%2C%20distinguish%20verified%20facts%20from%20assumptions%2C%20and%20explain%20which%20types%20of%20users%20each%20option%20fits%20best.)

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