Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Date calculation in Excel 2003

Is it possible to calculate the difference between two dates and return the
answer as yy-ddd. Thus, the difference between 1 Jan 2006 and 1 Feb 2007
would be 1-031.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 510
Default Date calculation in Excel 2003

Hi,

If your dates are in cell A1 and B1 :
=DATEDIF(A1,B1,"Y")&" "&DATEDIF(A1,B1,"D")-365

HTH
Cheers
Carim

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,345
Default Date calculation in Excel 2003

Carim,

Your formula returns errors, as examples:

A1: 31/01/2006
B1: 01/03/2008
(British style dates dd/mm/yy)
Returns 2 395

A1: 31/06/2006
B1 01/03/2006
Returns 0 -366


I would suggest:

=DATEDIF(A1,B1,"y")&"Years "&DATEDIF(A1,B1,"yd")& " Days"

although DATEDIF() does have its own idiosyncrasies.

--
Regards,

Sandy
In Perth, the ancient capital of Scotland


with @tiscali.co.uk


"Carim" wrote in message
oups.com...
Hi,

If your dates are in cell A1 and B1 :
=DATEDIF(A1,B1,"Y")&" "&DATEDIF(A1,B1,"D")-365

HTH
Cheers
Carim



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 510
Default Date calculation in Excel 2003

Sandy,

You are right ...
Thanks a lot for your comments

Carim

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
default manual calculation instead of auto in options excel 2003 Lost in Excel Excel Discussion (Misc queries) 1 October 9th 05 06:55 PM
Excel 2003 date format bug? ChrisCPS Excel Discussion (Misc queries) 2 July 7th 05 06:03 AM
Excel 2003: can I insert a "last edited" date function? KTK Excel Worksheet Functions 1 June 27th 05 11:59 PM
Date Value Funtion in Excel 2003 returns an error, but not in Exce olearyd Excel Worksheet Functions 1 April 13th 05 04:59 PM
How do I report a Date Format bug in Excel 2003 to Microsoft ? KymY Excel Discussion (Misc queries) 1 April 6th 05 12:45 PM


All times are GMT +1. The time now is 01:24 PM.

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"