To create a dynamic progress bar in Google Sheets that updates with a percentage, you use conditional formatting with a bar chart or a custom formula-based bar built from a stacked bar chart or cell background fill. This provides a visual indicator of task completion, project status, or goal achievement directly in your spreadsheet.

What You'll Need

  • A Google Sheets spreadsheet (free with a Google account)
  • Two adjacent columns: one for the raw value (e.g., tasks completed), and one for the total (e.g., total tasks)
  • Basic understanding of cell references and formulas

Step-by-Step

  1. Set up your data: In column A, list task names or item labels. In column B, enter the current value (e.g., 3 completed tasks). In column C, enter the total or target value (e.g., 10 tasks). Leave column D blank for the progress bar.
  2. Calculate the percentage: In column D, enter =B2/C2 in cell D2 (adjust row numbers as needed), then drag the fill handle down to apply to all rows. Format this column as a percentage: select column D > Format > Number > Percent. This gives you the raw percentage (e.g., 30%).
  3. Prepare the bar chart column: Insert a new column before column D (so your columns are now: A = label, B = current, C = total, D = %, E = progress bar). This keeps the bar visually separate and easier to format.
  4. Create a helper column for bar length: In column E, enter =REPT("█",ROUND(D2*20)) in E2. This repeats the block character "█" proportional to the percentage (20 characters max for readability). Drag down. Adjust 20 to scale the bar width (e.g., 30 for longer bars).
  5. Apply conditional formatting for the bar color: Select column E > Format > Conditional formatting. In the sidebar, set "Format cells if" to "Text contains", enter "█", then choose a fill color (e.g., green for success). Click "Done". This colors the block characters.
  6. Refine appearance: Select column E > Format > Number > Custom number format > enter "" (two quotes). This hides any text if the bar is empty, but keeps the bar visible when filled. Set column E font to a monospaced type like "Roboto Mono" or "Courier New" for consistent block alignment.
  7. Optional: Add the percentage text: In column F, enter =D2 & "%" to display the percentage next to the bar. Alternatively, use a single cell with =TEXT(D2,"0%") and drag down.

Common Mistakes

  • Dividing by zero: If column C contains 0, the formula =B2/C2 returns an error. Fix this by using =IF(C2=0,0,B2/C2) to return 0% when the total is zero.
  • Using the wrong REPT character: The block character "█" (U+2588) may display as a square in some fonts. Ensure your font supports Unicode block elements. If not, use "■" (U+25A0) or "●" (U+25CF) as alternatives.
  • Formatting errors: If the bar doesn’t scale correctly, double-check that D2 is truly a decimal (e.g., 0.75 for 75%) and not stored as text. Re-enter the percentage formula and reformat as Percent.
  • Ignoring negative or over-100% values: If B2 > C2, the bar may exceed the intended length. Use =MIN(1,B2/C2) to cap at 100% and prevent overflow.

Tips

  • Use named ranges: For large sheets, name B2:B100 as "Current", C2:C100 as "Total", and D2:D100 as "Percent". Then use =IF(Total=0,0,Current/Total) for cleaner formulas.
  • Color-code progress levels: Add multiple conditional formatting rules: Green for ≥80%, yellow for 50–79%, red for <50%. Set rules in order of priority (e.g., highest % first) to avoid overlap.
  • Automate with Apps Script: For dynamic updates, create a simple script to refresh bars on edit. Go to Extensions > Apps Script, paste function onEdit(e) { SpreadsheetApp.getActive().getRange("E2:E").activate(); }, and save. This ensures bars update immediately after value changes.
  • Hide raw numbers: Right-click column D > Hide column to keep the sheet clean. The progress bar and percentage (in F) remain visible.
  • Scale for mobile view: If sharing via mobile, reduce bar width (e.g., use *10 instead of *20 in REPT) to prevent horizontal scrolling.

Troubleshooting

If your progress bar doesn’t appear or behaves unexpectedly:

  • No bar shows at all: Verify column E contains the REPT formula and isn’t blank. Check that column D has valid percentages. Ensure the font supports Unicode blocks—switch to "Roboto Mono" temporarily to test.
  • Bar is always full or empty: Confirm the percentage in column D is correct. If D2 shows 100% but the bar is empty, the REPT formula may reference the wrong cell (e.g., D1 instead of D2). Check for relative vs. absolute references (use $B$2 only if needed).
  • Bar length is inconsistent: Monospace fonts ensure uniform character width. If using a proportional font, characters stretch unevenly, making bars look jagged. Switch to a monospaced font in Format > Text formatting.
  • Conditional formatting not applying: Re-check the rule: "Text contains" must match exactly "█" (copy-paste the character into the field). If you used a different symbol, update the condition to match.
  • Formula shows as text: If you see =REPT("█",ROUND(D2*20)) literally, the cell is formatted as plain text. Select the cell > Format > Number > Automatic, then re-enter the formula.

Frequently Asked Questions

Can I use a real chart instead of block characters?

Yes. Insert > Chart > Setup > Chart type > Combo chart > Bar. Set your range to include labels, current, and total. Use a custom series to show only the current value as a bar, then hide the axis and legend. However, this takes more space and won’t fit inside a single cell like the REPT method.

Why does my bar disappear when I hide the percentage column?

Hiding a column doesn’t delete formulas. The bar remains in column E. If it disappears, you likely hid column E itself. Right-click the column header > Unhide columns to restore it.

Can I add this to a mobile sheet view?

Yes. The REPT bar displays correctly on Google Sheets for iOS and Android. However, font rendering may vary—test with "Roboto Mono" and reduce bar width (e.g., *15 instead of *20) if characters wrap or overflow.

How do I make the bar auto-update when I change B or C?

Google Sheets recalculates formulas automatically on edit. Ensure calculation settings are set to Automatic: File > Settings > Calculation > Calculation settings > Automatic. If not, change it and save.

Is there a limit to how many rows this works with?

No hard limit. REPT works efficiently up to ~10,000 rows. For very large sheets (>50,000 rows), consider using Apps Script to limit bar updates to visible ranges only.

Can I add a tooltip or hover text showing the exact percentage?

Yes. Use the built-in comment feature: right-click a bar cell > Insert comment > type =D2 & "%" (it will auto-fill the value). When hovering over the cell, the comment appears as a tooltip.