Add a vertical line on a chart at specific month, with x axis in years

reacon84

New Member
Joined
Sep 13, 2016
Messages
38
Office Version
  1. 2016
Platform
  1. Windows
Hi, I'm looking to add a vertical line into this chart at December of the 1st year as per the picture example below (I just inserted a line but I need it to be dynamic).

I've found some useful tutorials that show how to do this, but their examples have the x-axis in months.

However, I need the x-axis to be in years, rather than months, and I'm a bit stuck! Is this even possible? Thanks in advance.

1658918159340.png
1658918401367.png


YearMonthValue
Jan-213
Feb-214
Mar-215
Apr-215
May-216
1​
Jun-216
Jul-217
Aug-217
Sep-218
Oct-218
Nov-219
Dec-219
Jan-223
Feb-223
Mar-223
Apr-224
May-224
2Jun-225
Jul-225
Aug-226
Sep-226
Oct-227
Nov-228
Dec-228
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.

Forum statistics

Threads
1,223,885
Messages
6,175,187
Members
452,616
Latest member
intern444

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