To make "Harvey Balls" in Excel—that classic traffic-light-style visual summary of data variability—you only need basic cell references, conditional formatting, and a few clever formulas. These three simple balls (⚫⚪⚪⚪, ⚫⚪⚪, ⚫⚪) show low/medium/high data ranges, and are widely used in finance, project management, and quality control. It requires no extra software, just built-in Excel functions.
What You'll Need
- A spreadsheet in Excel (2010+ or Excel Online)
- Basic cell references (e.g., A1:A10) where your data lives
- Knowledge of Excel's SUMIFS and COUNTIFS functions
- A reference value (e.g., average) to define thresholds
- Conditional formatting (Settings > Format > Conditional Formatting)
Step-by-Step
- Define your data range Choose the column(s) containing your values (e.g., select cells A1:A10). If you have multiple columns, note their labels (A = "Values," B = "Percentile," etc.) for clarity. Note: Excel Online and desktop versions use the same functions, but menu paths may differ slightly by version.
- Calculate percentiles for each ball
In a new column (e.g., C), use these formulas to find the cutoff points for each ball:
- Lowest ball (⚫⚪⚪⚪): =PERCENTILE.INC(A:A, 0.00) (always 0% of data)
- Second ball (⚫⚪⚪): =PERCENTILE.INC(A:A, 0.20) or =SUMIFS(A:A, A:A, "<=" & MAX(A:A), "A:A", "<" & PERCENTILE.INC(A:A, 0.20))
- Third ball (⚫⚪): =PERCENTILE.INC(A:A, 0.40) or =SUMIFS(A:A, A:A, "<=" & MAX(A:A), "A:A", "<" & PERCENTILE.INC(A:A, 0.40))
- Highest ball (⚫): =PERCENTILE.INC(A:A, 1.00) (always 100% of data)
- Create the visual indicators
In another column (e.g., D), create a helper array that maps values to balls:
- Enter this formula in D1 (drag to match your data):
=IF(A1
- Enter this formula in D1 (drag to match your data):
=IF(A1
- Enter `=A1` in a new column (e.g., E1) to copy your data
- Apply conditional formatting to E1:E10 to match the ball colors above
Common Mistakes
- Percentile calculations fail If your percentiles are incorrect, double-check: - Your data range is correct (A1:A10, not A1:B10) - No empty cells are included in your calculations (use filter if needed) - Excel Online sometimes has rounding issues—use INT() to force whole numbers
- Conditional formatting glitches If colors don’t apply, ensure: - You selected the exact string (⚫) and not a range (A1="⚫") - The helper array (D1) is correct (try entering `=CHAR(942)` instead of ⚫ to debug)
- Data doesn’t update If your Harvey Balls don’t change when data moves, add a formula like: `=IFERROR(INDIRECT("D1"), "")` in your display cell to force refresh
Tips
- For dynamic percentiles Use Excel’s Data Table feature (Insert > Data Table) to test thresholds interactively
- Add percentage labels Overlay text like "≥90%" above each column using fonts (e.g., `=TEXT(C3, "0.00%")`)
- Batch create for multiple columns Copy your formulas vertically for each column—Excel will auto-adjust references
- Alternative for older Excel Replace PERCENTILE.INC with this workaround for Excel 2003–2012: `=IF(A1=MAX(A:A), 1, IF(A1=MIN(A:A), 0, INT(100*(A1-MIN(A:A))/(MAX(A:A)-MIN(A:A)))))`
- Visual polish Add border cells (`=IF(D1="", "", "")`) to create clean columns between balls
Troubleshooting
- If percentiles show zero percent Check for duplicate min/max values in your data. Add this helper column: `=IF(COUNTIF(A:A,A1)>1, "(Duplicate)", A1)`
- If balls appear blank 1. Verify your formula reference matches the data range (e.g., C2 for 2nd percentile) 2. Test with hardcoded values (e.g., C2=0.2) instead of the formula 3. Enable "Display formulas" temporarily to check intermediate results
- If Excel freezes Break the formula into steps: 1. Calculate percentiles in column C only 2. Create helper array in D1 3. Apply conditional formatting to D1:D10 Worksheet protection may block updates—disable it temporarily
- For Excel Online Use this simplified formula for percentiles: `=PERCENTILE.INC($A$1:$A$100, 0.1)` (replace 0.1 with 0.2, 0.4, etc.)
Frequently Asked Questions
How do I adjust Harvey Balls for specific threshold percentages?
Replace the default 0.20/0.40 in your PERCENTILE.INC formulas with your target decimals—for example, 0.15/0.30 for stricter control. Example:
=PERCENTILE.INC(A:A, 0.15) for the second ball.
My data has negative values—will that affect the percentiles?
Yes, but you can fix it by adding an offset:
=PERCENTILE.INC(A:A, 0.20)-MIN(A:A)
then adjust your formulas to account for this shift.
How can I share Harvey Balls with others in Excel?
Save your workbook as a "Template.xltx" and include a legend. For online sharing:
- Click Share > Copy link
- Include your data ranges and formulas in comments
- Ask recipients to enter their own values in the same cells
What’s the fastest way to create Harvey Balls for a large dataset?
Use Power Query:
- Select data > Data > Get & Transform > From Table/Range
- Add calculated columns for percentiles (e.g., "P20" = PERCENTILE.INC([Values], 0.20))
- Load to a new table and apply conditional formatting
Can I use Harvey Balls in Google Sheets?
Yes, replace PERCENTILE.INC with QUARTILE.INC() and adjust thresholds (0.25, 0.5, 0.75). Example:
=IF(QUARTILE.INC(A:A, 0.25)
Why are my Harvey Balls inconsistent across rows?
This happens when your data references don’t update. Use relative references:
=PERCENTILE.INC(A:A, 0.20)
or force static:
=PERCENTILE.INC($A$1:$A$10, 0.20) (with the $ signs)