Merge Cells without leading SPACE?

Discuss the spreadsheet application
Post Reply
FunKPunK
Posts: 1
Joined: Fri Mar 14, 2008 12:33 pm

Merge Cells without leading SPACE?

Post by FunKPunK »

Hi all

I have data within a CSV and require to merge the last 4 cells of each line. This I can do fine at the moment, however, Calc merges them with a leading SPACE for each cell and i need this removed. Does anyone know if this is possible?

The CSV is for importing into Joomla/Virtuemart and the SPACE is breaking the download reference :(

Thanks

Stephen
User avatar
keme
Volunteer
Posts: 3705
Joined: Wed Nov 28, 2007 10:27 am
Location: Egersund, Norway

Re: Merge Cells without leading SPACE?

Post by keme »

The TRIM() function wil remove leading and trailing spaces, but that will remove excess whitespace within the data too, which in some cases may be undesirable. If it's for URLs it should not be a problem, though.
Apache OO 4.1.12 and LibreOffice 7.5, mostly on Ms Windows 10
User avatar
acknak
Moderator
Posts: 22756
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Re: Merge Cells without leading SPACE?

Post by acknak »

Just use a formula* to concatenate them in a new column, then copy/paste special and paste only text (not formulas). It's not automatic, but it's not hard either.

*
=M1 & N1 & O1 & P1, or =CONCATENATE(M1; N1; O1; P1)
AOO4/LO5 • Linux • Fedora 23
Dave
Posts: 1011
Joined: Sun Dec 23, 2007 6:53 pm

Re: Merge Cells without leading SPACE?

Post by Dave »

FunKPunK wrote:I have data within a CSV and require to merge the last 4 cells of each line.
Windows? Consider using freeware CSVed.

David.
Post Reply