Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,574
Default =DATEDIF(3/31/2006,4/30/2006,"m") equals 0?

How does that work?

=DATEDIF(3/31/2006,5/31/2006,"m") = 2

How can I get Excel to count exactly one month between the dates 3/31/2006
and 4/30/2006, or between 4/30/2006 and 5/31/2006, etc.?

Dave


--
Brevity is the soul of wit.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 27,285
Default =DATEDIF(3/31/2006,4/30/2006,"m") equals 0?

=DATEDIF(DATEVALUE("3/31/2006"),DATEVALUE("5/31/2006"),"m")

What you have is equivalent to

=DATEDIF(0.000048242369665198,0.000080403949441996 6,"m")

--
Regards,
Tom Ogilvy


"Dave F" wrote in message
...
How does that work?

=DATEDIF(3/31/2006,5/31/2006,"m") = 2

How can I get Excel to count exactly one month between the dates 3/31/2006
and 4/30/2006, or between 4/30/2006 and 5/31/2006, etc.?

Dave


--
Brevity is the soul of wit.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,886
Default =DATEDIF(3/31/2006,4/30/2006,"m") equals 0?

Hi Dave

Slightly easier when dates are in cells
=DATEDIF(A1,B1,"m")+(DAY(A1)DAY(B1))

--
Regards

Roger Govier


"Dave F" wrote in message
...
How does that work?

=DATEDIF(3/31/2006,5/31/2006,"m") = 2

How can I get Excel to count exactly one month between the dates
3/31/2006
and 4/30/2006, or between 4/30/2006 and 5/31/2006, etc.?

Dave


--
Brevity is the soul of wit.



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,688
Default =DATEDIF(3/31/2006,4/30/2006,"m") equals 0?

=DATEDIF(DATEVALUE("3/31/2006"),DATEVALUE("5/31/2006"),"m")

No need for Datevalue:

=DATEDIF("3/31/2006","5/31/2006","m")

Biff

"Tom Ogilvy" wrote in message
...
=DATEDIF(DATEVALUE("3/31/2006"),DATEVALUE("5/31/2006"),"m")

What you have is equivalent to

=DATEDIF(0.000048242369665198,0.000080403949441996 6,"m")

--
Regards,
Tom Ogilvy


"Dave F" wrote in message
...
How does that work?

=DATEDIF(3/31/2006,5/31/2006,"m") = 2

How can I get Excel to count exactly one month between the dates
3/31/2006
and 4/30/2006, or between 4/30/2006 and 5/31/2006, etc.?

Dave


--
Brevity is the soul of wit.





  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 37
Default =DATEDIF(3/31/2006,4/30/2006,"m") equals 0?

If someone said to me on March 31st "I'll see you in a months time." I would
not know for sure what they meant. Why should Excel be any different?


"Dave F" wrote in message
...
How does that work?

=DATEDIF(3/31/2006,5/31/2006,"m") = 2

How can I get Excel to count exactly one month between the dates 3/31/2006
and 4/30/2006, or between 4/30/2006 and 5/31/2006, etc.?

Dave


--
Brevity is the soul of wit.



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
equals something Mike Excel Discussion (Misc queries) 5 August 25th 06 06:09 AM
add one cell with no equals operator reggie26t Excel Discussion (Misc queries) 1 January 24th 06 02:57 PM
how to run a macro when a calculation equals a certin number Kevin Jones Excel Worksheet Functions 0 October 25th 05 09:23 PM
Apostrophes instead of equals in Excel ARH Excel Worksheet Functions 3 August 20th 05 12:18 AM
custom filter does not work when selecting 'equals' X AND 'equals' plindman Excel Discussion (Misc queries) 1 June 1st 05 11:29 PM


All times are GMT +1. The time now is 06:34 AM.

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

About Us

"It's about Microsoft Excel"