Formula to calculate date of last day of current month based on previous month

I have a column of dates which gives the date of the last day of each month. How can I calculate this date based on the previous end-of-month date (in the cell directly above it)?
Ideally it should be good for multiple years.

Hallo

=EOMONTH(A1;1)
1 Like