π Create In-Cell Bar Charts with the REPT Function in Google Sheets
Need a quick visual representation of numbers in your sheet without using charts?
The REPT function in Google Sheets lets you repeat a character or symbol multiple times β perfect for in-cell bar charts, star ratings, or progress indicators.
Use it when you want to:
- Display ratings as stars (β )
- Show stock levels or sales visually
- Represent survey results with repeated symbols
Letβs dive into how this simple yet powerful function works.
β Function Overview
Function Name | REPT |
Purpose | Repeats a given text or character a specified number of times |
Syntax | =REPT(text, number) |
Return | Repeated text string |
β Example 1: Show Ratings with Stars
=REPT("β
", A1)
A | B | |
1 | 4 | |
2 | =REPT(“β ”, A1) |
π Result: β β β β β Display star ratings based on numerical values.
β Example 2: Stock Visualization
=REPT("β ", B1)
B | C | |
1 | 7 | |
2 | =REPT(“β ”, B1) |
π Result: β β β β β β β β Visually represent quantities in your spreadsheet.
β Example 3: Progress Bar by Percentage
=REPT("β", ROUND(C1/10))
C | D | |
1 | 80 | |
2 | =REPT(“β”, ROUND(C1/10)) |
π Result: ββββββββ β Converts a 0β100% value into a 10-step visual bar.
π‘ Practical Use Cases
- Quick visual summaries in reports
- In-sheet visual feedback for survey data
- Product ratings in catalogs or dashboards
- Lightweight alternative to full charts
β οΈ Notes
- Max repeat limit is 32,767 characters
- Strings longer than the cell width may appear clipped
- Zero or negative repeat values return an empty string
β Conclusion
The REPT function is a hidden gem for quick, intuitive visualizations directly in your spreadsheet cells. Whether youβre showing scores, status, or quantities, this lightweight function helps you add clarity and polish to your data.
Next up: Weβll explore the ROUND function to handle rounding, precision control, and numeric formatting in reports.