Summary and explanation of Excel's new "Trim Refs" (dot syntax and TRIMRANGE function) for managing dynamic ranges without including empty cells, plus practical examples and advantages over older approaches.
=Sheet1!A:A
) to bring data to another sheet and ensure new entries are updated automatically.=Sheet1!A:.A
) to automatically trim leading/trailing empty cells in the result.=TRIMRANGE(range)
- trims leading and trailing empty cells.UNIQUE
function: =UNIQUE(Sheet1!A:.A)
VSTACK
, using dot syntax or TRIMRANGE
to exclude blank rows:
=VSTACK(Staff!A2:.A30, Management!A2:.A15)
SEQUENCE
and COUNTA
to create dynamic, numbered lists that adjust as data grows.FILTER
, TAKE
, etc., to grab recent data and filter blanks.=TAKE(Sheet1!A:.A, -12)
TRIMRANGE
acts as a flexible alternative.' Dot annotation for trimming empty cells:
=Sheet1!A:.A
' TRIMRANGE function alternative:
=TRIMRANGE(Sheet1!A:A)
' Unique list with trim:
=UNIQUE(Sheet1!A:.A)
' Combine and trim ranges:
=VSTACK(TRIMRANGE(Staff!A2:A30), TRIMRANGE(Management!A2:A15))
' Last N items (e.g., last 12 months):
=TAKE(Sheet1!A:.A, -12)
For more features and in-depth tips, visit XelPlus.com.