View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Claus Busch Claus Busch is offline
external usenet poster
 
Posts: 3,872
Default date mismatching

Hi,

Am Thu, 1 Aug 2013 08:20:54 +0100 schrieb
:

when i just set the equation in b column as
=DATE(YEAR(A1)+1,MONTH(A1)-1,DAY(A1)-1)

but the date in a column is 01/02/2013 .after putting the equation the
date comes in b column as 31/12/2014. actually it should come as
31/01/2014. how can i solve this


try:
=DATE(YEAR(A1)+1,MONTH(A1),0)


Regards
Claus B.
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2