Partners,,,, russianxnxx

Highlight Points in a Line Chart

I recently came across an interesting chart idea from Charley Kyd’s website about economic warning. I thought of tweaking it a bit especially to highlight points in a line chart.

This chart can work very well for highlighting upward or downward trends


Let’s start with this weekly Sales Data

Highlight Points in a Line Chart 2

Nothing complicated here.. just weeks and their sales.

Quick Question – For how many weeks the sales fell by more than 15% as compared to the previous week?

Gotcha!! Yes a simple line chart won’t answer that question easily, therefore I need a mechanism to highlight points where the sales fell by more than 15% in the line chart. I hope now you would get the essence of this chart


The Charting Logic

There are 3 main parts of the chart

  1. The simple line chart (with markers) of course
  2. Dummy bars to highlight the points
  3. Labels for only the highlighted points
  4. And we also need a spin button (not in this image) to dynamically change the target


Highlight Points in a Line Chart 3


The line chart is pretty straight forward so I’ll assume that you have already made (and formatted) a line chart (with markers) with the weekly sales data


Let’s Start with the Spin Button

Highlight Points in a Line Chart 1

Pretty straight forward

  1. Insert a Spin Button (Form Controls) from the Developer Tab, Insert Drop Down
  2. Right Click, choose Format Control and link the spin button to a cell. In my case I have linked it to D32
  3. The max and min values to be 0 and 100
  4. Now since the values are not in % and are not negative. I’ll create another dummy (in D33) which will have the following formula =-D32/100 and I’ll keep using this cell (D33 and not D32) in all my formulas


The Dummy Bars

We’ll be needing a dummy calculation (column) for creating the highlighted bars

Highlight Points in a Line Chart 4

A few things about the formula

  1. It starts from the second cell (and not the first) because we are comparing a decrease of 15% compared to last year
  2. If the current week’s value has dropped by more than 15% then I take a MAX value of the range and add 50 to it. Why?? Just want the bar height to be a little taller than the line chart 😉
  3. Else #N/A


Need another Dummy for Labels

Another column for creating a calculation for adding labels to the line chart (with markers)

Highlight Points in a Line Chart 5


Setting up the Chart

Assuming that you already have the weekly sales line chart. Let’s add Dummy Bars as a Column Chart

Highlight Points in a Line Chart 6


Next add the Label Dummy as a Data Labels 

Highlight Points in a Line Chart 7

  1. Add the data labels
  2. Select the data labels and press Ctrl + 1 to open the Format Data Labels box
  3. Instead of the actual values, choose value from cells and select the range
  4. Select the Dummy Labels range from the Spreadsheet. Done!


To add dynamic chart titles I have added dynamic text boxes which are linked back to formulas in the spreadsheets


Yeah I know this was a tricky one.. If you have stuck around till here you definitely need this chart in your work and there is nothing better than a video to explain it

Enjoy the Video


    ⬇️ Pop in your Name & Email to get the file!


    Other Dynamic Line Chart Examples

    1. Add a Total Bubble at the end of the Line Chart
    2. Select Parts of the Line Chart
    3. Encircle Points in a Line Chart
    4. Plot Multiple Projections in a Line Chart
    5. Creating Phases in a Line Chart
    6. Vertical Line Chart in Excel


    Topics that I write about...