🔤 Google Sheets text examples

Len Examples in Google Sheets

Count characters in a text value. This page gives a clear pattern, five practical examples and common mistakes to avoid.

Updated 2026-06-125 practical examplesCopy-ready formulas

Syntax or pattern

Count characters in a text value.

=LEN(text)
✍️

5 practical examples

1

Clean names with LEN

Standardize names imported from forms or CSV files.

=PROPER(TRIM(A2))

Adjust the ranges, criteria and sheet names to match your workbook.

2

Create an ID label

Build a readable code from text and row numbers.

=UPPER(LEFT(A2,3)&"-"&TEXT(ROW(A2),"0000"))

Adjust the ranges, criteria and sheet names to match your workbook.

3

Join address fields

Join address parts while skipping blank cells.

=TEXTJOIN(", ", TRUE, B2:E2)

Adjust the ranges, criteria and sheet names to match your workbook.

4

Remove unwanted characters

Clean copied IDs or imported codes.

=SUBSTITUTE(A2, "#", "")

Adjust the ranges, criteria and sheet names to match your workbook.

5

Split names into parts

Separate text values into columns for later analysis.

=SPLIT(A2, " ")

Adjust the ranges, criteria and sheet names to match your workbook.

Common mistakes to avoid

  • Not cleaning imported data before splitting or joining it.
  • Forgetting that text functions are case-sensitive in some regex patterns.
  • Leaving invisible spaces that make lookups fail.

FAQ

What is this Google Sheets page for?

This page gives copy-ready examples for len examples so you can understand the pattern and adapt it to real spreadsheet work.

Can I copy these formulas directly?

Yes. Use the copy buttons, then adjust sheet names, ranges, criteria and column references for your own file.

Why does my formula return an error?

The most common causes are mismatched ranges, missing quotes around text criteria, blank source data, or references that do not match your sheet layout.

💡 Useful resources

Here are some ideas for you

Optional resources that may help if you are learning Google Sheets, building trackers, creating dashboards or improving spreadsheet workflows.

  • 📘
    Google Sheets books

    Learn formulas, workflows and dashboards with structured examples.

    See ideas
  • 📊
    Spreadsheet dashboard books

    Improve how you design trackers, summaries and reporting sheets.

    See ideas
  • ⌨️
    Keyboard shortcut guides

    Build speed with navigation, editing and formatting shortcuts.

    See ideas
  • 🔢
    Numeric keypads

    Useful if you enter numbers often on a laptop or compact keyboard.

    See ideas
  • 🖥️
    External monitors

    Helpful for viewing data, formulas and dashboards side by side.

    See ideas
  • 📒
    Desk notebooks

    Sketch formulas, tracker layouts and reporting ideas before building.

    See ideas

Some links in this section may be affiliate links. Choose only what is useful for your own work.