Custom Chart Data Lables Moving Incorrectly

abupu

New Member
Joined
Aug 17, 2011
Messages
17
Hey All,

I'm just stuck on a problem.

I have a line chart with units on the y axis and months on the x axis. On the x axis is currently 12 months, Jan 2012 to Dec 2012.

Above each point on the line drawn i've added custom labels with custom text to give a bit more detail about that particular point.

The problem i'm having is I need to updated this chart monthly with a new month being added and the first month in the chart removed. For example, the line chart is Jan 2012 to Dec 2012 in the next month it should be Feb 2012 to Jan 2013 and so on.

Is there a way to make this change but still keep the custom data labels matched up in the exact same corresponding points / months?

I've tried adding a month in the data table and then extending the chart data selection area and that works perfectly. But, when go to delete the first month which needs to be removed, all the chart labels shift forward for some reason making them incorrectly line up.

Thanks in advance!
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Hi Abupu,

You can use the offset function combined with a Count of the column to create your entire chart dynamically.

Using the count function you can find the last row of entered data for each part of your graph, then using the offset function you can look up from that last point to find the previous 12 entries. This way you can chart only the last year.

Here is an example:
http://www.exceldashboardtemplates.com/?p=688


Good luck!
 
Upvote 0

Forum statistics

Threads
1,226,493
Messages
6,191,360
Members
453,655
Latest member
lasvegasbuffet

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top