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.
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
- Select the percentages, B2:B5.
- Home > Conditional Formatting > Data Bars, and pick a Solid Fill colour.
- Open Conditional Formatting > Manage Rules, select the data bar rule and click Edit Rule.
- 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:
| A | B | C | |
|---|---|---|---|
| 1 | Task | Done | Progress |
| 2 | Design | 100% | |
| 3 | Build | 70% | ███████░░░ |
| 4 | Testing | 40% | |
| 5 | Launch | 0% |
70% gives 7 full blocks and 3 light blocks.
Result: ███████░░░
ROUND(B3*10,0)turns 70% into 7 blocks. ROUND avoids partial blocks.REPT("█",7)draws the filled part.REPT("░",10-7)draws the empty part, so every bar has the same length.- 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:
| A | B | C | |
|---|---|---|---|
| 1 | Task | Done | Progress |
| 2 | Design | 100% | ██████████ 100% |
| 3 | Build | 70% | ███████░░░ 70% |
| 4 | Testing | 40% | ████░░░░░░ 40% |
| 5 | Launch | 0% | ░░░░░░░░░░ 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 bars | REPT text bar | |
|---|---|---|
| Looks | Smooth, gradient or solid | Blocky, retro |
| Shows number | Yes, optional | Only if you join it |
| Copies to email/CSV | No | Yes, it is text |
| Exact scale | Set min/max to 0 and 1 | Built in |
| Works in charts | No | No |
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.