How we can build a custom thermometer visual to display a current value against a goal in Excel - KING OF EXCEL

Tuesday, September 29, 2020

How we can build a custom thermometer visual to display a current value against a goal in Excel


How we can build a custom thermometer visual to display a current value against a goal in Excel
In this post, we’re going to take a look at how we can build a custom thermometer visual to display a current value against a goal.
This is a pretty popular way to display a fundraising campaign’s current raised amount versus their goal or target amount.
Thermometer-Chart Create A Thermometer Visual To Display Actual Versus Target
Let’s look at how we can build this thermometer visual from scratch in Excel (and PowerPoint).

Video Tutorial

Creating A Thermometer Template In PowerPoint

We’ll need to head over to PowerPoint to create our thermometer template. As I explained in my traffic light dashboard visual post, PowerPoint has some extra merge shape commands we need to use to combine and cut out our thermometer template.
Create-Thermometer-Template-with-Shapes-in-PowerPoint Create A Thermometer Visual To Display Actual Versus Target
Creating our thermometer template in PowerPoint will require quite a few steps using shapes, merge commands, alignment and grouping. But once it’s created, we’ll be able to save it and use it over and over again.
  1. Add a tall skinny rectangle shape with rounded corners. Go to the Insert tab ➜ select the Shapes command ➜ select the Rectangle: Rounded Corners shape ➜ draw the shape in a blank PowerPoint slide.
  2. Add a small circle shape. Go to the Insert tab ➜ select the Shapes command ➜ select the Oval shape ➜ hold the Shift key and draw the shape to create a circle.
  3. Place the small circle at the bottom of the rectangle and merge the two shapes with the union command. Hold Ctrl and select both shapes ➜ go to the Format tab ➜ select Merge Shapes ➜ select Union from the menu.
  4. Create a larger rectangle and place the thermometer shape inside it.
  5. Select all the shapes ➜ go to the Format tab ➜ select Merge Shapes ➜ select Combine from the menu. We will also change the colour from the default.
    1. Select the shape ➜ go to the Format tab ➜ select Shape Outline ➜ select black from the menu.
    2. Select the shape ➜ go to the Format tab ➜ select Shape Fill ➜ select white from the menu.
  6. Add markers for key points on the thermometer using a line shape. Go to the Insert tab ➜ select the Shapes command ➜ select the Line shape ➜ draw the line horizontally.
    1. To change the thickness of the line go to the Format tab ➜ select Shape Outline ➜ select Weight from the menu.
    2. Make 5 lines and place two at the top and bottom of the thermometer. These need to be placed exactly where we want our thermometer bar to start and stop.
    3. Place the other 3 lines between the top and bottom line. Don’t worry about getting the position exact as we’ll be using the alignment tools for this.
  7. Select all 5 lines ➜ go to the Format tab ➜ select Align and then Align Left ➜ select Align and then Distribute Vertically.
  8. Add labels for the key points (0%, 25%, 50%, 75% and 100%). Go to the Insert tab ➜ select the Shapes command ➜ select the Text Box and make 5 of these in total.
    1. Align the text for these boxes in the center using the Paragraph tools found in the Home tab.
    2. Place these text boxes next to the line markers.
  9. Add a Rectangle shape and change the Fill and Outline to red then place it over the circle part of the thermometer just below the 0% marking.
  10. Send the rectangle behind the thermometer template. Select the rectangle shape ➜ go to the Format tab ➜ select Send Backward ➜ choose Send to Back from the options.
  11. Select one of the shapes then press Ctrl + A on the keyboard to select everything.
  12. Group everything together. Go to the Format tab ➜ Select Group.
This is our basic thermometer template finished. We can save this PowerPoint file and use the thermometer template again and again.
We’re done with PowerPoint and can head over to Excel. Copy and paste this template into your Excel Workbook to add the dynamic parts and finish creating the thermometer visual.

The Setup In Excel

Setup-in-Excel Create A Thermometer Visual To Display Actual Versus Target
The setup in Excel is pretty simple. We’ll need a current value and a goal value (shown in cells C2 and C3).
We can set the current value based off a formula or pivot table that references the current data and sums it up. The goal value can be hard coded since it won’t usually be changing.
Now, we’re going to add some conditional formatting data bars to these cells. Select cells C2:C3 ➜ go to the Home tab ➜ select Conditional Formatting ➜ Data Bars ➜ More Rule.
New-Formatting-Rule Create A Thermometer Visual To Display Actual Versus Target
This will open up the New Formatting Rule menu. Most of the settings will already be set to what we need by default.
  1. Set the rule type to Format all cells based on their values.
  2. Set the format style to Data Bar.
  3. Check the box to Show Bar Only. This will make the numbers in the cells invisible.
  4. Set the fill to Solid Fill.
  5. Set the colour to the same Red colour as used in the thermometer template.
Setup-in-Excel-with-Data-Bars Create A Thermometer Visual To Display Actual Versus Target
We will now have something that looks like above. The numbers don’t appear visible in the worksheet, but they are still there and can be seen in the formula bar if the active cell is on either C2 or C3.

Create A Linked Picture

The data bar on C2 is what will drive our dynamic thermometer visual. But we won’t be using it directly. We will be creating a linked picture to this cell.
Linked pictures are dynamic. When the values and data bars change, so will the picture.
Paste-as-Linked-Picture Create A Thermometer Visual To Display Actual Versus Target
Copy the data bar for the current value. Then go to the Home tab ➜ select Paste from the clipboard section ➜ choose Linked Picture from the menu.
Rotate-and-Resize Create A Thermometer Visual To Display Actual Versus Target
Now we can resize and rotate the picture to a vertical orientation with the filled part of the bar at the bottom.

Add The Linked Picture To The Thermometer Template

Now we just need to incorporate this linked picture of the data bar into our thermometer template.
Temporarily set the current value to the goal value so we have a full data bar in our linked picture. This will allow for us to easily line up the linked picture to the 0% and 100% position of the thermometer.
Group-Template-and-Linked-Picture Create A Thermometer Visual To Display Actual Versus Target
Place the data bar linked picture over the template and line up the linked picture to the 0% and 100% position of the thermometer.
We will need to place the linked picture behind the template. Select the linked picture and go to the Format tab ➜ select Send Backward ➜ choose Send to Back from the menu.
When the linked picture is in the right place and behind the template, then we can group them together. Select both the linked picture and template then go to the Format tab ➜ and Group the objects together.

Conclusions

With a little help from PowerPoint, we now have a thermometer visual we can use to show a current value against a goal.
This thermometer is dynamic and will change based on the current and goal inputs, so it’s perfect for interactive dashboards.
#evba #etipfree #eama #kingexcel 

Popular Posts