Hi All,
I am using Excel 2003, and found that Conditional Formatting does not accept Analysis toolpak formulae such as EOMONTH.
As such these need to be reverse engineered using standard Excel formulae.
I came across Andrew Engwirda's fantastic solution here:
Basically to put it in this post, i will re-write it here:
[vba]=DATE(YEAR(A1),MONTH(A1)+B1+1,0)[/vba] B1 = Months to add (and A1 = date that you are applying the formula to).
I am confused why this works?
e.g. it uses DATE(YEAR(A1),...), does the YEAR(A1) part not fix the year to be the year for the current date, even if you add add 1000 months to it?
Any help appreciated,