Home › Functions › Lookup & Reference › TRIMRANGE
fx
TRIMRANGE
Lookup & Reference  ·  Since: Microsoft 365  ·  9 languages

The TRIMRANGE function excludes all empty rows and/or columns from the outer edges of a range or array.

🌐 Translations

English TRIMRANGE
Deutsch TRIMRANGE
Français TRIMRANGE
Español RECORTAR.RANGO
Italiano ANNULLA.SPAZI
Português TRIMRANGE
Nederlands TRIMRANGE
Polski USUŃ.ODSTĘPY
Русский TRIMRANGE

📦 Availability

Excel versionAvailable
Excel 2007 ✗
Excel 2013 ✗
Excel 2019 ✗
Excel 2021 ✗
Microsoft 365 ✓
Translate a formula with this function
fx EN
fx DE

⌨ Syntax

TRIMRANGE(range,[trim_rows],[trim_cols])

Arguments

range (required) — The range (or array) to be trimmed
trim_rows (required) — Determines which rows should be trimmed 0 - None 1 - Trims leading blank rows 2 - Trims trailing blank rows 3 - Trims both leading and trailing blank rows (default)
trim_columns (required) — Determines which columns should be trimmed 0 - None 1 - Trims leading blank columns 2 - Trims trailing blank columns 3 - Trims both leading and trailing blank columns (default)

▶ Examples

=TRIMRANGE(range,[trim_rows],[trim_cols])

Related functions

Copied to clipboard