Microsoft Excel introduces TRIMRANGE and trim references, allowing users to clean spreadsheets of unnecessary columns in just a few seconds

The feature is gradually rolling out to users.

Reading time icon 2 min. read


Readers help support Windows Report. We may get a commission if you buy through our links. Tooltip Icon

Read our disclosure page to find out how can you help Windows Report sustain the editorial team Read more

Microsoft Excel TRIMRANGE

Microsoft is rolling out a new preview function called TRIMRANGE for its Excel platform and a set of nifty trim references designed to simplify data and spreadsheet work. This capability will help users clean their files faster and more easily.

In a blog post, Microsoft says TRIMRANGE is all about efficiency. Imagine you’re working with dynamic array formulas or trying to boost the performance of lambda functions. This function removes those pesky empty rows from the edges of a range. That means no more unnecessary calculations running on every cell and trailing zeros messing up your data.

But how does it work? Let’s say you’re calculating the length of text entered into column A. Without TRIMRANGE, you’d get a result for every cell, including a bunch of zeros you didn’t ask for. With TRIMRANGE, it zeroes in on just the cells with text, making your formula more efficient and your spreadsheet cleaner.

TRIMRANGE is based on trim references similar to shortcuts or cheat codes. By tweaking the classic colon range operator (the A1:E5 thing), you can specify whether you want to trim blanks from the start, end, or both sides of a range. There are three types: trailing trim ref (:.), leading trim ref (.:), and full trim ref (.:.).

Trim refs are a game-changer for those who love diving into full-column references but hate how sluggish they can be. They let you focus on just the part of the column that has values, making your formulas faster and more efficient.

This shiny new function and its companions are now available to Beta Channel users running Version 2409 (Build 18020.2000) or later. If you’re not seeing it yet, don’t worry. The Redmond-based tech giant is gradually rolling them out.

TRIMRANGE and trim references in Microsoft Excel are poised to be a big deal. Like the recently announced Python editor, they promise to make our data cleaner, our formulas faster, and our lives easier. And who couldn’t use a bit more of that?

More about the topics: Microsoft 365, Microsoft Excel

User forum

0 messages