Skip to main content

LOWER

Converts all letters in a text string to lowercase.

Syntax

expression.LOWER(arg1);

expression - A variable that represents a ApiWorksheetFunction class.

Parameters

NameRequired/OptionalData typeDefaultDescription
arg1RequiredApiRange | ApiName | stringThe text to convert to lowercase. The text characters that are not letters are not changed.

Returns

string

Example

Convert text to all lowercase letters in a spreadsheet.

// How do I change "HELLO" to "hello" in a spreadsheet?

// Transform mixed case text into lowercase in a spreadsheet.

let worksheet = Api.GetActiveSheet();
let func = Api.WorksheetFunction;
worksheet.GetRange("A1").SetValue(func.LOWER("Day"));