#1   Report Post  
sam sam is offline
Junior Member
 
Posts: 2
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default 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



  #3   Report Post  
Posted to microsoft.public.excel.misc
bj
 
Posts: n/a
Default 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

  #4   Report Post  
Posted to microsoft.public.excel.misc
Gary Brown
 
Posts: n/a
Default 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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
subtracting dates Brian Excel Discussion (Misc queries) 3 October 27th 05 07:54 PM
Subtracting dates to get hours... but I want to skip weekends shadestreet Excel Discussion (Misc queries) 2 October 5th 05 06:20 PM
Subtracting dates? Bill R Excel Worksheet Functions 1 August 15th 05 05:37 AM
subtracting dates to get a age Lori Excel Discussion (Misc queries) 1 February 4th 05 03:49 PM
Dates Subtracting dates. help me Excel Discussion (Misc queries) 4 December 17th 04 03:48 AM


All times are GMT +1. The time now is 11:19 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"