# SUMIF Function

> Add the values whose cells meet a condition with SUMIF in TX Sheet Control: comparison criteria, wildcards, case-insensitive text and an example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Function
- **Path:** TX Sheet Control > API Reference > Formula Functions > SUMIF Function
- **244 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/sumif/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/sumif/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/sumif/llms-full.txt

---

Add values whose corresponding cells meet a condition. `range` is tested against `criteria`, such as `">15000"`, `"Product*"` or a number; the wildcards `*` and `?` match any text and any single character, and the comparison of text is not case-sensitive. SUMIF adds the cells of `sum_range` whose cell in `range` matches, or the matching cells of `range` itself when `sum_range` is omitted.

### Syntax

```text
SUMIF(range, criteria, sum_range)
```

Category: Conditional. Minimum arguments: 2. Maximum arguments: 3.

Available for supported offline calculation.

### Examples

```text
=SUMIF(A4:A6,"Product*",B4:B6)
```

The formula adds the values of B4:B6 whose cell in A4:A6 starts with Product.

Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.

### See Also

- [Formulas](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/formulas/llms-full.txt)
- [Custom Functions and Formula Data](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/custom-functions/llms-full.txt)

---

## Nearby

- **Previous:** [SUM Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/sum/llms-full.txt)
- **Next:** [SUMIFS Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/sumifs/llms-full.txt)
