Microsoft KB Archive/52131

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 17:57, 18 July 2020 by 3155ffGd (talk | contribs) (importing KB archive)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Excel: Adding Years to a Date While Keeping Same Month and Day

Last reviewed: November 2, 1994
Article ID: Q52131

SUMMARY

To add a number of years to a date in Microsoft Excel so that the month and day stay the same, use the following formula

   =DATE(YEAR(ref)+var,MONTH(ref),DAY(ref))

where "ref" gives the location of the cell where the date is to be changed, and "var" is the number of years to add to the date in "ref". For example, to add 5 years to 4/1/90 (located in cell A1) so that 4/1/95 is the resulting date, the formula is as follows:

   =DATE(YEAR(A1)+5,MONTH(A1),DAY(A1))

KBCategory: kbother

KBSubcategory:

Additional reference words: 1.00 1.03 1.04 1.06 1.50 2.20 3.00


Last reviewed: November 2, 1994
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.