Excel REPT function🔤 Repeat text

The REPT function: Repeat text. Simple in-cell bars, star ratings. This page shows the syntax, a worked example with its result and how the formula reads.

What does REPT do?

Repeat text. Simple in-cell bars, star ratings

REPT syntax

=REPT(text, number_times)

Arguments in square brackets [ ] are optional · argument names follow Microsoft's documentation

REPT example with the result

=********

👑 Ready-to-use example formula for VIP supporters only · Become VIP

Formula in cell C2 Yellow cells = result

ABC
1ShopRatingStars
2Shop A4★★★★

How it reads: Repeats ★ as many times as B2

Frequently asked questions about REPT

What does REPT do?

Repeat text. Simple in-cell bars, star ratings

What does the REPT example return?

The example formula in cell C2 gives ★★★★.

Which Excel versions have REPT?

It has been in Excel for many versions and works in the versions in common use today, including Excel for Microsoft 365.

Source: support.microsoft.com

Checked 17 November 2026 · by Black Sheep Barn · example results are calculated by the app's example engine, for learning

🤖
Posting...
Please wait a moment
Social VIP Classroom
Home
Thai Smiles Profile