Excel中函数计算文本字符串长度的操作方法
2017-06-17
相关话题
在Excel的使用中,有时需要统计文本字符串中字符的数目,即计算文本字符串的长度,那么该如何去操作呢?今天,小编就教大家在Excel中函数计算文本字符串长度的操作方法。
Excel中函数计算文本字符串长度的操作步骤:
Excel中计算文本字符串的长度需要用到Len函数。

Len函数的使用格式为:=LEN(text)。

其中,参数text表示要统计的文本字符串。

LEN函数要统计时,无论中全角字符,还是半角字符,每个字符均计为“1”;与之相对应的一个函数——LENB,在统计时半角字符计为“1”,全角字符计为“2”。

在如图所示的案例中,我们输入公式:=len(C11) 来计算C11单元格文本的字符串长度。

确认函数后,我们按下enter键,如图所示,结果显示为”5“,即样例单元格C11文本的字符串长度为5。
