ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Add years NOT days (https://www.excelbanter.com/excel-worksheet-functions/136086-add-years-not-days.html)

Coza

Add years NOT days
 
In the following formula, J4 is (dddd dd mmmm yyyy) and H4 is (2)
[Representing Years].
=IF(J4<"",J4+H4,"")

Currently it ADD's Days, how can i convrt the formula to ADD years ?


Corey....




Max

Add years NOT days
 
Try:
=IF(J4<"",DATE(YEAR(J4)+H4,MONTH(J4),DAY(J4)),"")
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Coza" wrote:
In the following formula, J4 is (dddd dd mmmm yyyy) and H4 is (2)
[Representing Years].
=IF(J4<"",J4+H4,"")

Currently it ADD's Days, how can i convrt the formula to ADD years ?


Corey....





Coza

Add years NOT days
 
Thanks Max.
Perfect

"Max" wrote in message
...
Try:
=IF(J4<"",DATE(YEAR(J4)+H4,MONTH(J4),DAY(J4)),"")
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Coza" wrote:
In the following formula, J4 is (dddd dd mmmm yyyy) and H4 is (2)
[Representing Years].
=IF(J4<"",J4+H4,"")

Currently it ADD's Days, how can i convrt the formula to ADD years ?


Corey....







Max

Add years NOT days
 
Welcome, Coza
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Coza" wrote in message
...
Thanks Max.
Perfect





All times are GMT +1. The time now is 10:37 PM.

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