ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   date mismatching (https://www.excelbanter.com/excel-worksheet-functions/449082-date-mismatching.html)

[email protected]

date mismatching
 
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

Claus Busch

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

Claus Busch

date mismatching
 
Hi,

Am Thu, 1 Aug 2013 09:55:39 +0200 schrieb Claus Busch:

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


or try:
=EDATE(A1,12)-1


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


All times are GMT +1. The time now is 12:28 PM.

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