In-Cell Percent Bar with REPT

Excel Formulas › Dashboards & Reporting

All versionsREPT

Draw a horizontal bar right inside a cell — no chart needed. REPT repeats a block character in proportion to a percentage, giving each row a tiny progress or share-of-total bar for a compact dashboard.


Quick formula: a bar scaled to a percentage:
=REPT("█", ROUND(percent * 20, 0))
Repeat a block character a number of times proportional to the percent (×20 here for a 20-wide bar).

Functions used (tap for the full reference guide):

The example

75% → a 15-block bar.

AB
1%Bar
275%███████████████

The formula

The formula:

=REPT("█", ROUND(percent * 20, 0)) // blocks ∝ percentage

How it works

How it works:

  1. REPT(char, n) repeats a character n times; scale n to the percentage.
  2. Multiply the percent by a max width (e.g. 20) and ROUND for whole blocks.
  3. Use a full + empty character pair for a framed bar: REPT("█",n) & REPT("░",20-n).
  4. Set the cell font to a monospace font so bars align across rows.

It scales to a whole column instantly. Drop the REPT formula beside a percentage column and every row gets a proportional bar — a lightweight alternative to conditional-formatting data bars that copies, prints, and pastes anywhere. Append the number (& " " & TEXT(percent,"0%")) so the bar and its value sit together.

Try it: interactive demo

Live demo

Percentage.

%

Variations

Framed bar

Full + empty:

=REPT("█",n) & REPT("░",20-n)

Bar plus value

Label it:

=REPT("█", ROUND(p*20,0)) & " " & TEXT(p,"0%")

Share of total

From a value:

=REPT("█", ROUND(value/SUM(range)*20, 0))

Pitfalls & errors

Round the count. REPT needs a whole number of repeats.

Monospace font. Use Consolas so bars line up across rows.

Cap at the width. Clamp n to the max so over-100% doesn’t overflow.

Practice workbook

📊
Download the free In-Cell Percent Bar with REPT practice workbook
An in-cell-bar sheet with the framed, labeled, and share-of-total variants, plus 4 challenges with answers. No sign-up required.

Frequently asked questions

How do I make an in-cell bar in Excel?
Use =REPT("█", ROUND(percent * 20, 0)) to repeat a block character proportional to the percentage.
How do I frame the bar with an empty part?
Combine full and empty blocks: =REPT("█",n) & REPT("░",20-n).
Why don't my bars line up?
Set the cell font to a monospace font like Consolas so every block is the same width.

Stop fighting formulas. Learn them in a day.

This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.

See the Formulas & Functions Class

Related formulas: Repeat text bars · Data bars · Percent of total

Function references: REPTROUND