Hello All,
I'm sorry to start my posing in these forums by picking your brains. I've been trying to get this to work for a day and a half and, as of yet, cannot figure out a solution.
My problem is this: In a Line chart in Excel 2007, I need to center my years between the applicable tick marks on the X axis.
I followed the example here:
http://peltiertech.com/WordPress/dat...entered-years/
and got close but could never seem to get it to work quite right. I think the formatting in the example might be different from mine for some strange reason.
Does anyone have a straightforward way of doing this that I could (eventually) build into a VBA macro to reproduce these charts every month? Attached is a sample of the data and charts where I would need the labels centered.
Test.xlsx
Again, I'm sorry to barge in here with questions but this is making me feel like an idiot. How could Microsoft look over something so obvious? Or am I the one overlooking the simple solution? :D
Thank you,
Michael
Looks like you did not follow the instructions completely.
First the Label series needs to be on the secondary axis. The you need to adjust the data points for the series to 1 for each year.
You will need to enable the secondary horizontal axis and the apply data labels to the series and position them below.
finally remove the labels from the primary horizontal axis.
Andy,
Thanks for weighing in. I really appreciate the help. Just two questions:
- If the goal is to create text boxes and locate them under the series tick marks, Why not just do so directly?
- How did you get the years centered on the second horizontal axis between the ticks? That's exactly the effect I am going for.
Thanks again,
Michael
If you use textboxes, rather than data labels, then they will not be linked to the chart. If you add more periods you will need to add another textbox and reposition all existing ones.
With a data series all you need do is extend the data range and adjust the scale.
As both original website and I described. You need to move the data series to the secondary axis. Then format the secondary axis to display data labels in the Low position rather than Next to axis.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks