WRrDE‖

jUtWq‖LENB

m3LKz‖For double-byte character set (DBCS) languages, returns the number of bytes used to represent the characters in a text string.

tip

2cFVC‖This function is available since LibreOfficeDev 4.2.


GSbiK‖Syntax

B7ap3‖LENB("Text")

eHsA5‖Text is the text whose length is to be determined.

MiUAf‖Example

Hb7MJ‖LENB("中") returns 2 (1 DBCS character consisting of 2 bytes).

LGCLu‖LENB("中国") returns 4 (2 DBCS characters each consisting of 2 bytes).

oEBva‖LENB("office") returns 6 (6 non-DBCS characters each consisting of 1 byte).

tM5TD‖ =LENB("Good Afternoon") returns 14.

EGC9t‖ =LENB(12345.67) returns 8.