View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
FangYR FangYR is offline
external usenet poster
 
Posts: 16
Default Date fomula not working

I have use this last year, it's fine until now. the formula is now new to Ron,
=DATE(YEAR(A2)-1,MONTH(A2),DAY(A2))-(MONTH(DATE(YEAR(A2)-1,MONTH(A2),DAY(A2)))<MONTH(A2))
That is, I enter a month and day in A2 and it will appear as last year's
date, but now nothing changes, still in default year 2009.
Please advise.
--
Regards
FangYR
Malaysia