![]() |
Function to reduce date by 3 months
Hello, I need a reasonably simple function that will look at a date (which
will always be the 1st of a month) and return the equivalent date a specified number of months earlier. e.g we give it the 1st of Feb 03, and it returns the 1st of November 02. Ideally I wouldn't have to use a user-defined VBA function, but find a way to do it using the existing date functions. VBA is a last resort for this spreadsheet. Thanks |
Function to reduce date by 3 months
=EDATE(A1,-3)
requires the Analysis Toolpak (ATP) add-in. Or... =DATE(YEAR(A1),MONTH(A1)-3,DAY(A1)) without ATP. "mike h" wrote in message ... Hello, I need a reasonably simple function that will look at a date (which will always be the 1st of a month) and return the equivalent date a specified number of months earlier. e.g we give it the 1st of Feb 03, and it returns the 1st of November 02. Ideally I wouldn't have to use a user-defined VBA function, but find a way to do it using the existing date functions. VBA is a last resort for this spreadsheet. Thanks |
All times are GMT +1. The time now is 11:35 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com