When using line/column charts Excel only cares about the number of data points for the x-axis (not their x-values). The reason you're having difficulty is because your two series have different numbers of points (i.e. 365 vs 12)
To get around this you need to make them match by spanning Series 2 across 365 data points.
You can do this by creating a second column for Series 2 with the same date values as series 1. I'll call this "modified Series 2".
You can populate this column by doing a VLOOKUP
of the month of the original Series 2 data.
I made a dummy example below. The dataset on the right (E:G) is the original Series 2 data. The formula is column F is =MONTH(F2)
filled down.
Once this is done, the modified series 2 dataset can be populated. The formula in column C is =VLOOKUP(MONTH(A2),$F$2:$G$13,2,FALSE)
. This returns the corresponding Series 2 value for every date based on the month.
Once your modified Series 2 dataset is prepared:
- Insert a Line chart (or Column chart)
- In Select data:
- Add series 1 (colB in my example) and modified series 2 (colC in my example).
- Edit Horizontal Axis labels to be the date column (colA in my example)
- Change Chart Type:
- Select Combo
- Make Series 1 Line, Series 2 Column
- Check off Secondary Axis for Series 2
- For Series 2, go to Format Data Series:
- Under Series Options, change Gap Width to 0%
That will produce something like the following. Hope this helps!