Dashboards & Reporting: Budget Used As A Text Bar

Excel Formulas › Dashboards & Reporting

All versions

A quick in-cell bar needs no chart. REPT repeats a character in proportion to percent used, and MIN caps the bar at full when spend exceeds budget.


Quick formula: Spend divided by budget:
=B2/C2

$4,300 of $10,000 is 43% and draws 4 bars.

Functions used (tap for the full reference guide):

The example

Three budget lines. Supplies is over budget and the bar caps at full.

ABCDE
1CaseSpentBudgetPct usedBar
2Marketing$4,300$10,00043.0%####------
3Travel$9,200$10,00092.0%#########-
4Supplies$11,800$10,000118.0%##########

The formula

The bar is filled characters then empty ones, capped at 10:

=B2/C2 // percent used; bar = REPT("#",MIN(10,ROUND(Pct*10,0)))&REPT("-",10-MIN(10,ROUND(Pct*10,0)))

How it works

Here is the logic, one piece at a time:

  1. B2/C2 is the percent used.
  2. ROUND(pct*10,0) gives filled characters out of 10.
  3. MIN(10,...) caps at 10.
  4. REPT repeats filled and empty characters.

Use a monospaced font so bars line up.

Try it: interactive demo

Interactive

Enter spend and budget.

Variations

Block characters

Use a block character.

=REPT("|",MIN(20,ROUND(E2*20,0)))

Color flag

Add a status.

=IF(E2>1,"OVER","OK")

Pitfalls & errors

Percent over 100% still shows a full bar; show the percent next to it.

Zero budget causes #DIV/0!; guard with IF.

Right-align the bar column.

Practice workbook

📊
Download the free Dashboards & Reporting: Budget Used As A Text Bar practice workbook
Edit the yellow spend and budget cells; percent and bar recalculate.

Frequently asked questions

Why #?
It renders in every font.
Longer bars?
Change 10 to 20.

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: In-Cell Percent Bar with REPT · KPI vs Target Status Indicator · RAG (Red/Amber/Green) Status

Function references: REPTMINROUND