Used JOIN and SUBSTITUTE to combine data in a row. Now line spacing issue

KoreyG
KoreyG ✭✭
edited 01/05/24 in Formulas and Functions

Hello,

I have used JOIN and SUBSTITUTE to see which formula works better to combine data from a a row to a single cell. I inserted a HELPER command so that each data is on it's own line. The data is pulled correctly, however there are massive spaces between each line (see screenshot).


Does anyone have/know a way to get rid of those spaces? I'm assuming they are there to represent the columns that do not have data entered between each piece of data.


Best Answer

  • Paul Newcome
    Paul Newcome ✭✭✭✭✭✭
    Answer ✓

    Try a JOIN/COLLECT to exclude blank cells. You can also use CHAR(10) as the delimiter to create the line break without the need for the helper cell.

    =JOIN(COLLECT([MTS-3060A]@row:Camo@row, [MTS-3060A]@row:Camo@row, @cell <> ""), CHAR(10))

    Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!

    CERTIFIED SMARTSHEET PLATINUM PARTNER

    10xViz.com

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!