How-to recipes · Charts

How to create a progress bar in Excel cells

Show progress inside cells with data bars from conditional formatting, or a text bar built with REPT, for task lists, targets and dashboards.

Beginner REPT ROUND TEXT MIN MAX UNICHAR

A column of percentages is precise but hard to scan. A small bar inside each cell shows at a glance which tasks are almost finished and which have barely started, or how far each salesperson is towards a target. Excel offers two ways to draw progress bars without building a chart: data bars, a conditional formatting option, and text bars built from repeated characters with the REPT function. Both work in every current version, including Microsoft 365, Excel 2016 and Excel for the web.

The example data

Four project tasks in A2:A5 with the share completed in B2:B5, stored as percentages (0.7 displayed as 70%).

Method 1: data bars

  1. Select the percentages, B2:B5.
  2. Home > Conditional Formatting > Data Bars, and pick a Solid Fill colour.
  3. Open Conditional Formatting > Manage Rules, select the data bar rule and click Edit Rule.
  4. Set Minimum to Number 0 and Maximum to Number 1. Click OK.

Step 4 is important. By default, data bars scale between the smallest and largest value in the range, so if the best task is at 70%, its bar fills the whole cell and looks complete. Fixing the scale at 0 to 1 (0% to 100%) makes a 70% bar fill 70% of the cell. Tick Show Bar Only in the same dialog if you want the bar without the number, for example in a second column that refers to B with =B2.

Method 2: a text bar with REPT

REPT repeats a character a given number of times. Ten full blocks represent 100%, so multiply the percentage by 10 and round:

C3fx=REPT("█",ROUND(B3*10,0))&REPT("░",10-ROUND(B3*10,0))
ABC
1TaskDoneProgress
2Design100%
3Build70%███████░░░
4Testing40%
5Launch0%

70% gives 7 full blocks and 3 light blocks.

Result: ███████░░░

  1. ROUND(B3*10,0) turns 70% into 7 blocks. ROUND avoids partial blocks.
  2. REPT("█",7) draws the filled part.
  3. REPT("░",10-7) draws the empty part, so every bar has the same length.
  4. Use a monospaced font such as Consolas for the column so all bars line up.

For finer bars use 20 blocks (B3*20). If you cannot type the block characters, generate them with UNICHAR: UNICHAR(9608) is the full block and UNICHAR(9617) the light shade.

Bar and percentage together

Join the percentage as text with TEXT. In Microsoft 365 one formula fills the whole column:

C2fx=REPT("█",ROUND(B2:B5*10,0))&REPT("░",10-ROUND(B2:B5*10,0))&" "&TEXT(B2:B5,"0%")
ABC
1TaskDoneProgress
2Design100%██████████ 100%
3Build70%███████░░░ 70%
4Testing40%████░░░░░░ 40%
5Launch0%░░░░░░░░░░ 0%

A compact status column. In Excel 2016 and 2019, write the formula for row 2 and copy it down.

Progress towards a target

For sales against a target, calculate the share first: =MIN(1,C2/D2) caps it at 100%, so a rep who exceeded the target does not get a bar longer than the cell. Use MIN for the cap and MAX to prevent negative values from breaking REPT: =REPT("█",ROUND(MAX(0,MIN(1,C2/D2))*10,0)). With data bars, the same cap can be applied by setting the maximum to 1.

Colour the bar by status

Text bars take the font colour of the cell, so you can add a conditional formatting rule to the bar column: red font when $B2<0.25, green when $B2=1 (How to use conditional formatting with a formula in Excel). Data bars have one colour per rule, but you can stack rules with different colours by using formula conditions.

Which method to choose

Data barsREPT text bar
LooksSmooth, gradient or solidBlocky, retro
Shows numberYes, optionalOnly if you join it
Copies to email/CSVNoYes, it is text
Exact scaleSet min/max to 0 and 1Built in
Works in chartsNoNo

Pitfalls

  • Automatic scale on data bars is the most common mistake; always set the minimum and maximum explicitly for percentages.
  • Values above 100% make REPT bars too long and data bars full. Cap them with MIN.
  • Negative values make REPT return #VALUE!. Wrap with MAX(0, ...).
  • Fonts. Some fonts draw the block characters with gaps; switch to Consolas, Segoe UI Symbol or Arial if the bar looks dashed.
Tip. For a timeline view of tasks rather than a percentage, see How to make a Gantt chart with conditional formatting in Excel. Conditional formatting options are explained in Conditional formatting, including formula-based rules, and dashboards that combine such elements in Project: build a sales dashboard from scratch.
⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 14 KB

More how-to recipes