πŸ“Œ 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 NameREPT
PurposeRepeats a given text or character a specified number of times
Syntax=REPT(text, number)
ReturnRepeated text string

βœ… Example 1: Show Ratings with Stars

=REPT("β˜…", A1)
AB
14
2=REPT(“β˜…”, A1)

πŸ“Œ Result: β˜…β˜…β˜…β˜… β€” Display star ratings based on numerical values.


βœ… Example 2: Stock Visualization

=REPT("β– ", B1)
BC
17
2=REPT(“β– ”, B1)

πŸ“Œ Result: β– β– β– β– β– β– β–  β€” Visually represent quantities in your spreadsheet.


βœ… Example 3: Progress Bar by Percentage

=REPT("β–ˆ", ROUND(C1/10))
CD
180
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.

Similar Posts

λ‹΅κΈ€ 남기기

이메일 μ£Όμ†ŒλŠ” κ³΅κ°œλ˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€. ν•„μˆ˜ ν•„λ“œλŠ” *둜 ν‘œμ‹œλ©λ‹ˆλ‹€