The len and lenb functions are both used to count the number of characters in a cell, so what is the difference between them? This article will explain in detail the meaning, syntax and examples of these two functions.
The difference between excel functions lenb and len is used:
1.LEN function means return The number of characters in the text string, and the syntax is relatively simple, which is LEN(text)
2.LENB function# The meaning of ## is to return the number of characters contained in the text, and the syntax is relatively simple, that is, LENB(text)
LEN is counted by the number of characters. Whether it is Chinese characters or numbers, it is counted by 1. LENB is counted by the number of bytes. of. Numbers, letters, English, and punctuation marks entered in half-width state are calculated as 1, and punctuation marks entered in Chinese characters and full-width state are calculated as 2.
The following will give an example to explain in detailAs shown in the figure, the main difference between Example 1 and Example 2 is that the comma in Example 1 is entered in the full-width state, while the comma in Example 2 is The comma is entered in the half-width state (that is, in the English state)http://www.php.cn/topic/excel/
The above is the detailed content of The difference between excel functions lenb and len. For more information, please follow other related articles on the PHP Chinese website!