Harvey Balls Excel Tutorial: Create Custom Rating Icons

Excel is a powerful tool for data presentation, and one of its most versatile features is shape rendering. The Harvey ball, also known as a progress bar or smileyometer, is a visual representation that can be quite useful in displaying progress, success rates, or any value between 0 and 1. Let's explore how to create Harvey balls in Excel based on text input.

an info graphic showing the number and percentage of people
an info graphic showing the number and percentage of people

Before we delve into the steps, remember that Excel doesn't natively support Harvey balls. We'll need to use a combination of shapes, lines, and a bit of creative formatting. Here's how to create a simple Harvey ball based on text input:

📊 10 Excel Formulas Everyone Should Know
📊 10 Excel Formulas Everyone Should Know

Setting Up Your Worksheet

First, let's set up our worksheet for input and output. In Column A, from A2 to A10, input your data or text that will determine the Harvey ball's progress. In Column B, starting from B2, we'll create our Harvey balls. For demonstration, let's assume A2:A10 holds numbers from 0 to 1.

four different times and numbers are shown in this screenshoter's screen shot
four different times and numbers are shown in this screenshoter's screen shot

Now, let's create a simple Harvey ball for each data point.

Creating the Basic Harvey Ball Shape

Excel Cheat Codes for Everyday Business Invoicing | Boost Productivity Now
Excel Cheat Codes for Everyday Business Invoicing | Boost Productivity Now

We'll start by drawing a semicircle over a rectangle. In cell B2, draw a square of your desired size (e.g., a 50x50 pixel square). Then, in cell C2, draw a semicircle with the same radius (use the intersection of the square's top-left corner and bottom-right corner as the center).

Format both shapes to have no line color and fill them with a dark single-color gradient. The semicircle should be the same color as your desired full ball (e.g., green), and the square should be the background color of your choice (e.g., light grey).

Adding the Progress Indicator

Excel Trick: Custom Sort How To do it!
Excel Trick: Custom Sort How To do it!

Now, let's add the line that indicates the progress. Starting from cell D2, draw a line from the center of the semicircle to the bottom-right corner of the square. Format this line with a black border and 1.5pt width.

To make this line dynamic and based on the text input, we need to apply conditional formatting. Select the line (from cell D2), then go to the 'Home' tab, click on 'Conditional Formatting', and choose 'New Rule...'. In the 'New Formatting Rule' dialog, select 'Use a formula to determine which cells to format'.

In the 'Format values where this formula is true:' box, input the following formula: B2 / 1. If the text input is a percentage, use the formula B2 / 100 instead. Click 'Format...', choose 'No Fill', and adjust the line color as needed. Click 'OK', then 'OK' again to close the dialog.

🚀 Master Excel: 15 Essential Ctrl+ Keyboard Shortcuts | Productivity Hack
🚀 Master Excel: 15 Essential Ctrl+ Keyboard Shortcuts | Productivity Hack

Copy the range B2:D2 and paste it into the range B3:B10, adjusting the line length for each cell. Now, you should have a simple Harvey ball that changes its appearance based on the text input.

Advanced Customizations

Excel formulas
Excel formulas
How to highlight your rows in excel
How to highlight your rows in excel
Microsoft Excel Cheat Sheet | Essential Formulas, Shortcuts & Productivity Tips
Microsoft Excel Cheat Sheet | Essential Formulas, Shortcuts & Productivity Tips
a table that has different types of text on it, including the words excel formulas
a table that has different types of text on it, including the words excel formulas
Excel Conditional Formatting Tutorial | Highlight What Matters | Excel Tips for Beginners (part 11)
Excel Conditional Formatting Tutorial | Highlight What Matters | Excel Tips for Beginners (part 11)
Make Excel do your boring tasks 🤓
Make Excel do your boring tasks 🤓
Excel shortcut keys
Excel shortcut keys
Excel lessons made easy
Excel lessons made easy
ms excel formula
ms excel formula
Top 27 Excel Formulas ✅
Top 27 Excel Formulas ✅

Depending on your needs, you might want to customize your Harvey balls further. Here are some ideas:

Changing the Background Color Based on Progress

Repeat the steps above to draw another line below the progress line. Apply the same conditional formatting but use a different color for this line. This can help emphasize the difference between the current progress and the halfway point, for example.

Adding Labels and Text

You can use the 'Add Text Box' function to add labels or extra information to your Harvey balls. To make the text dynamic, use the 'Text from Cells' option in the text box's '[ Size ]' tab.

Finally, remember to adjust your text input's formatting (number, percentage, etc.) to match your Harvey ball design. This will ensure consistent and comprehensible visual data representation.