Examples for the lenb formula
Copy these examples into a spreadsheet and adjust the ranges for your own data.
LENB syntax pattern
=LENB(s)Use this LENB pattern as the starting point for your spreadsheet formula.
LENB in a worksheet
=LENB("Text")Returns the length of the string in bytes using UTF-8 encoding.
When to use LENB
Use LENB when you need to return the length of the string in bytes using UTF-8 encoding.
- Clean, reshape, and compare text values.
- Prepare labels, IDs, and imported text for analysis.
How LENB works in Quadratic
In Quadratic, LENB follows the syntax LENB(s). The function works inside Quadratic formulas and can be combined with spreadsheet ranges, tables, and other formulas.
Common LENB mistakes
Most LENB issues come from mismatched argument types, ranges that do not cover the intended data, or optional parameters being omitted when the default behavior is not what you expected.
- Check each required parameter before copying the formula across a sheet.
- Confirm that ranges line up with the rows or columns you intend to analyze.
- Use Quadratic AI to explain or debug the formula when the result looks wrong.