date mismatching

P

prejithapillai

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

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

Claus Busch

Hi,

Am Thu, 1 Aug 2013 08:20:54 +0100 schrieb
[email][email protected] said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top