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.

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:

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.

Now, let's create a simple Harvey ball for each data point.
Creating the Basic Harvey Ball Shape

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

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.

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










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.