Skip to content

TRIMRANGE

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

Syntax

=TRIMRANGE(, , )

Lookup and referenceNot in our practice sheet yet

Excel for Microsoft 365 only

A full guide with worked examples for TRIMRANGE is still being written.

Arguments

range
The range.
trim_rowsoptional
Which rows to trim.
trim_colsoptional
Which columns to trim.

Our practice sheet doesn't calculate TRIMRANGE: it shows #NAME?, as versions of Excel without the function do.

All functions