Skip to main content

CONCATENATE

Combines multiple text strings into one text string.

Syntax

expression.CONCATENATE(arg_n);

expression - A variable that represents a ApiWorksheetFunction class.

Parameters

NameRequired/OptionalData typeDefaultDescription
arg_nRequiredApiRange | ApiName | stringUp to 255 data values that will be combined.

Returns

string

Example

This example shows how to combine multiple text strings into one text string.

// How to add multiple text strings into one text string.

// Use function to create one text string from multiple ones.

let worksheet = Api.GetActiveSheet();
let func = Api.GetWorksheetFunction();
worksheet.GetRange("A1").SetValue(func.CONCATENATE("John", " ", "Adams"));