LEN & REPT Text Length Formulas
LEN & REPT Text Length Formulas

LEN & REPT Text Length Formulas

Learn how to use LEN and REPT in Excel to audit SMS character limits, repeat text symbols, and build visual in-cell star ratings without charts.

M. Ichsanul Fadhil
Published

Marketing teams managing SMS campaigns or push notifications must monitor character counts closely to prevent messages from spilling into two paid message segments (exceeding 160 characters). At the same time, operations managers want quick in-cell visualizations like customer star ratings (★★★★★) without creating cluttered external charts.

Excel provides two simple yet powerful text utility formulas: LEN and REPT.

Quick Comparison: LEN vs REPT

Formula Input Output Common Practical Purpose
LEN(text) A single text string Whole number character count Verifying SMS character limits, phone number lengths, and postal codes.
REPT(text, number_times) A character symbol + repetition count Repeated text string Building in-cell star ratings (★), progress bars (|), and repeated padding.

The LEN Space Counting Rule

LEN counts every single character, including spaces, tabs, and punctuation. If your text contains accidental spaces at the end, LEN counts them. To measure only visible text, pair it with TRIM: =LEN(TRIM(A2)).

Hands-on Practice Playground

Measure promotional message lengths and construct star rating indicators using the campaign tracker below. Follow each objective to complete the exercise.

In cell B2, count the characters in marketing message A2 using LEN.

Check answer
Challenge #1
Target: Sheet1!B2
Objective 1: Measure Character Count with LEN

In cell B2, measure the total character count (including spaces) of the promotional message in A2 using the LEN formula.

In cell D2, build a star rating bar by repeating the star symbol ("★") based on score C2 using REPT.

Check answer
Challenge #2
Target: Sheet1!D2
Objective 2: Build In-Cell Star Rating with REPT

In cell D2, build a visual rating bar by repeating the star symbol ("★") based on the satisfaction score in C2 using the REPT formula.

In cell D3, generate the star rating for the score in C3.

Check answer
Challenge #3
Target: Sheet1!D3
Objective 3: Repeat Stars for Score in Row 3

In cell D3, create the star rating display for campaign message A3 using the score in C3 with REPT.

Applicant Tracking System (ATS)
HR & Operations
Applied Project Exercise

Ready to apply LEN & REPT Text Length Formulas in a real workbook?

Clean and format applicant names, email strings, and internal tracking codes with text formulas.

Open Applicant Tracking System (ATS)
Tactical Arena
Loading Spreadsheet Playground...Initializing calculation engine

Share This Lesson

Spread the word with your peers and challenge your friends

Discussion
0 Comments
No comments yet. Be the first to share your thoughts!