FormulaCraft

How to build an in-cell bar chart with REPT in Excel and Google Sheets

Excel & Google Sheets
=REPT("█", A2/10)

Verified example

Computed by a real spreadsheet engine on the sample data below.

Value
50
75
100
25
0

=REPT("█", A2/10)█████

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1Enter your data in a column or row.
  2. 2In an adjacent cell, enter the REPT formula referencing your data cell.
  3. 3Adjust the divisor in the formula to scale the bar length to fit your data range.

Tips

Working on a sheet you inherited? Run the Auditor on the whole file first — it flags every #REF!, #N/A, broken column pattern, and inconsistent formula in seconds, free, no signup.

Frequently asked

What characters can I use for the bar?

You can use any character, but solid blocks like "█" or "▓" work well for visibility.

How do I handle negative values?

You may need to adjust your formula to handle negatives separately, as REPT does not support negative repetitions.

Can I change the color of the bars?

Yes, use conditional formatting to change the text color of the cells containing the bars.

Formulas used

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: