How to get the previous month in OpenOffice

If you need to derive the previous month from a known date, use this formula:

=DATE(YEAR(A1);MONTH(A1)-1;1)

This works in OpenOffice (and LibreOffice), which do not seem to have a native function to do the job, and should work in MS Office Excel as well.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.