deepcalc
DocsTRIMRANGE

TRIMRANGE

Trims empty rows and columns from the edges of a range.

  • Excel: Verified match
  • Google Sheets: No equivalent
  • Returns: Array

Examples

=TRIMRANGE(A1:C10)
ABC
1 102alpha
2 204beta
3 306gamma
4 408delta
5 5010epsilon
Result 10

Syntax

TRIMRANGE(range, [trim_rows], [trim_cols])
range
range required
trim_rows
number optional
trim_cols
number optional