# How to Use a MULTIPLY IF Function in Google Sheets

To use a MULTIPLY IF function in Google Sheets, you can combine the IF function with the ARRAYFORMULA and multiplication operation. Google Sheets doesn't have a specific "MULTIPLY IF" function, but you can achieve the same results using these functions together.

Here's how to use a MULTIPLY IF function in Google Sheets:

- Open your Google Sheets document or create a new one.
- Identify the range of data you want to evaluate, and the condition for multiplication.
- Use the ARRAYFORMULA function to apply the multiplication and the IF function to test the condition.

Here's the generic formula to use:

`=ARRAYFORMULA(SUM(IF(condition, value_to_multiply1 * value_to_multiply2, 0)))`

Replace `condition`

, `value_to_multiply1`

, and `value_to_multiply2`

with the appropriate cell references or conditions.

## Example

Let's suppose you have a list of products, their quantities, and prices in a Google Sheet, and you want to calculate the total value of products that are of a specific category.

Here's a sample data set:

A | B | C | D |
---|---|---|---|

ID | Category | Price | Qty |

1 | A | 10 | 5 |

2 | B | 20 | 7 |

3 | A | 15 | 3 |

4 | C | 30 | 2 |

5 | A | 25 | 4 |

To calculate the total value of category A products, you can use the following formula:

`=ARRAYFORMULA(SUM(IF(B2:B6="A", C2:C6 * D2:D6, 0)))`

This formula checks if the category in column B is "A", and if true, multiplies the corresponding price (column C) by the quantity (column D). If the condition is not met, it returns 0. The ARRAYFORMULA then sums these values, giving you the total value of category A products.

In this example, the result would be 170.