ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Function to calculate the number of years, months and days between (https://www.excelbanter.com/excel-worksheet-functions/35472-function-calculate-number-years-months-days-between.html)

Vicky

Function to calculate the number of years, months and days between
 
Hi,
Hope you can help. I am trying to find a Function to calculate the number
of years, months and days between 2 dates. Such as to calculate how old
someone is down to the day.

I have played with the YEARFRAC fx and the following:
=(YEAR(A4)-YEAR(A3))*12+MONTH(A4)-MONTH(A3)

I know I am missing something. Can you help?

Thanks so much!


Biff

Take a look at this:

http://www.cpearson.com/excel/datedif.htm

Biff

"Vicky" wrote in message
...
Hi,
Hope you can help. I am trying to find a Function to calculate the number
of years, months and days between 2 dates. Such as to calculate how old
someone is down to the day.

I have played with the YEARFRAC fx and the following:
=(YEAR(A4)-YEAR(A3))*12+MONTH(A4)-MONTH(A3)

I know I am missing something. Can you help?

Thanks so much!




Vicky

Thank you so much. I think that will do it.

"Biff" wrote:

Take a look at this:

http://www.cpearson.com/excel/datedif.htm

Biff

"Vicky" wrote in message
...
Hi,
Hope you can help. I am trying to find a Function to calculate the number
of years, months and days between 2 dates. Such as to calculate how old
someone is down to the day.

I have played with the YEARFRAC fx and the following:
=(YEAR(A4)-YEAR(A3))*12+MONTH(A4)-MONTH(A3)

I know I am missing something. Can you help?

Thanks so much!






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

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