![]() |
Subtracting Dates
Afternoon.
I am trying to subtract dates on an excel worksheet and find the term between the two. For example (english date format dd/mm/yy) 01/01/05 - 01/01/04 = 365 days or 1 year I would ideally like the output to be years then months then days but anything would do. Is this possible in excel? If not does anyone know of an online calculator that could do this? Thanks Sam |
Subtracting Dates
Hi
The easiest answer is to take one from the other: =A3-A2 and format the result as General. Andy. "sam" wrote in message ... Afternoon. I am trying to subtract dates on an excel worksheet and find the term between the two. For example (english date format dd/mm/yy) 01/01/05 - 01/01/04 = 365 days or 1 year I would ideally like the output to be years then months then days but anything would do. Is this possible in excel? If not does anyone know of an online calculator that could do this? Thanks Sam -- sam |
Subtracting Dates
there is an undocumented function called datedif() which can be used
see: http://www.cpearson.com/excel/datedif.htm for a description. "sam" wrote: Afternoon. I am trying to subtract dates on an excel worksheet and find the term between the two. For example (english date format dd/mm/yy) 01/01/05 - 01/01/04 = 365 days or 1 year I would ideally like the output to be years then months then days but anything would do. Is this possible in excel? If not does anyone know of an online calculator that could do this? Thanks Sam -- sam |
Subtracting Dates
There is a function called Datedif. It takes the format as follows:- DATEDIF(START DATE,END DATE,"[D,M,Y]") where D is quoted in days, M is quoted in months and Y is quoted in Years -- Gary Brown ------------------------------------------------------------------------ Gary Brown's Profile: http://www.excelforum.com/member.php...o&userid=17084 View this thread: http://www.excelforum.com/showthread...hreadid=518192 |
All times are GMT +1. The time now is 05:53 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com