ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Help with date formulas in Excel (https://www.excelbanter.com/excel-worksheet-functions/55038-help-date-formulas-excel.html)

LLEW

Help with date formulas in Excel
 
I need to subtract 3 years from dates in a spreadsheet, i.e. 11/1/2005 minus
3 years. All of the help formulas show that you have to enter the month, day,
and year numbers into the formula for each date. I would like to use a
formula that allows me to use the date values in the cell references,
something like A1- three years.

Thank you!

Bob Phillips

Help with date formulas in Excel
 
=DATE(YEAR(A1)-3,MONTH(A1),DAY(A1))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"LLEW" wrote in message
...
I need to subtract 3 years from dates in a spreadsheet, i.e. 11/1/2005

minus
3 years. All of the help formulas show that you have to enter the month,

day,
and year numbers into the formula for each date. I would like to use a
formula that allows me to use the date values in the cell references,
something like A1- three years.

Thank you!





All times are GMT +1. The time now is 10:17 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com