Hi
if you change the A2 in the formula to the address of the cell with your first label, then copy the formula, it should work.
Another simple way to do this would be to add major gridlines to the x axis, and set the increment between them to 4.
If for some reason this doesn't work for you, and you want to use a macro instead, here is one which should insert a vertical line at every fourth point in your chart:
if you want to change the increment between lines, change the XInc = 4 to the increment you want
If you want to change the colour or line width, adjust the RGB or weight
Because this inserts shapes into your graph, the lines will not adjust if you do something that changes the chart's dimensions (resizing, adding a title etc). If you do this, you will have to delete the lines and run the macro again.
To delete the shapes you could use this macro - but beware, it will delete all shapes including textboxes etc:
to use the macros, copy them from here and in excel press Alt+F11 to enter the visual basic area, select insert > module if you don't already have modules in the workbook, then paste the code from here
Bookmarks