# MODE in Google Sheets: syntax and examples

URL: https://goingstellar.ro/reference/sheets/mode/

MODE finds the number that appears most often in a range. If two numbers tie, it returns the one that shows up first. It reads numbers only, so text needs a workaround with MATCH.

## Syntax

```
MODE(value1, [value2, ...])
```

## Arguments

- `value1` (any, required: yes): The first number or range to analyse.
- `value2, ...` (any, required: no): More numbers or ranges.

## Examples

The examples use this table, starting in A1:

| Size | Color |
|---|---|
| 38 | red |
| 40 | blue |
| 40 | red |
| 42 | red |
| 42 | blue |
| 40 | red |

```
=MODE(A2:A7)
```

Result: `40`

The most frequent shoe size: 40 appears three times. Run in a Google Sheet (English US locale) on 2026-11-29.

```
=MODE(1, 2, 2, 3, 3, 3)
```

Result: `3`

Plain numbers work too. Run in a Google Sheet (English US locale) on 2026-11-29.

```
=MODE(A2:A4, A5:A7)
```

Result: `40`

Several ranges are pooled before counting. Run in a Google Sheet (English US locale) on 2026-11-29.

```
=INDEX(B2:B7, MODE(ARRAYFORMULA(MATCH(B2:B7, B2:B7, 0))))
```

Result: `red`

MODE only reads numbers, so for text it works on MATCH positions. This returns the most frequent color. Run in a Google Sheet (English US locale) on 2026-11-29.

```
=COUNTIF(A2:A7, MODE(A2:A7))
```

Result: `3`

How many times the mode occurs. Run in a Google Sheet (English US locale) on 2026-11-29.

## Common errors

- If no value repeats, MODE returns #N/A, not the smallest value.
- On a tie, MODE returns a single value: the one met first in the data. Use MODE.MULT to see all of them.
- A range that holds only text returns #N/A. MODE ignores text, so it cannot find the most frequent word directly.

## Compared with Excel

Same syntax in Excel. Excel also has MODE.SNGL and MODE.MULT, and so does Google Sheets.

## Related functions

- [MEDIAN](https://goingstellar.ro/reference/sheets/median/)
- [AVERAGE](https://goingstellar.ro/reference/sheets/average/)
- [COUNTIF](https://goingstellar.ro/reference/sheets/countif/)
- [MATCH](https://goingstellar.ro/reference/sheets/match/)

## Sources

- [MODE (Docs Editors Help)](https://support.google.com/docs/answer/3094029)

