1 min readfrom Microsoft Excel | Help & Support with your Formula, Macro, and VBA problems | A Reddit Community

TRIMRANGE, dot operator, or other?

Our take

If you're looking for an efficient way to concatenate data from columns A and B in your spreadsheet while ensuring that your formulas automatically adjust to new data, consider using the dot operator with dynamic ranges. Instead of relying on lengthy formulas like =DROP(TRIMRANGE(A:A)&TRIMRANGE(B:B),1), a more streamlined approach is to utilize the formula =ARRAYFORMULA(A2:A & B2:B). This method not only simplifies your formula but also automatically expands as you add new rows, keeping your data management seamless and intuitive.

What is the best way to apply formulas in column C that simply concatenates all of the data in columns A and B, but expands if columns A and B go from 50 rows to say 60 rows with new data so you don’t have to drag down formulas? I have headers in row 1. I’ve been using in C2: =DROP((A:.A&B:.B),1). Now with TRIMRANGE, I can do =DROP(TRIMRANGE(A:A)&TRIMRANGE(B:B),1). However that seems no better with this newer function, and if anything a lengthier formula. What’s the best way to do this?

submitted by /u/Gfunk27
[link] [comments]

Read on the original site

Open the publisher's page for the full experience

View original article

Related Articles

Tagged with