[Libreoffice] append function result to string

Regina Henschel rb.henschel at t-online.de
Tue Jan 4 10:53:26 PST 2011


Hi James,

James schrieb:
> I want to prepend the result of the AVERAGE function with the string
> 'average '.

Where did you try this? AVERAGE and Concat are Calc functions and CStr 
is a BASIC function. You cannot mix that.

> I tried this:
> =concat('average ',cstr(AVERAGE(C3:C200)))

In Calc
="average " & AVERAGE(C3:C200)

Du not use a pair of single quotes for text literals in Calc, because 
they are used for labels.

Kind regards
Regina


More information about the LibreOffice mailing list