Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Ron
 
Posts: n/a
Default =DATEDIF(A15,TODAY(),"m")

Hi

=DATEDIF(A15,TODAY(),"m") gives the number of months, from a date in the
past, in A15. How can I get the number of months from A15 to say 15/10/2011?

Thanks Ron



  #2   Report Post  
Roger Govier
 
Posts: n/a
Default

Hi Ron

try
=DATEDIF(A15,"15/10/2011","m")

Regards

Roger Govier


Ron wrote:
Hi

=DATEDIF(A15,TODAY(),"m") gives the number of months, from a date in the
past, in A15. How can I get the number of months from A15 to say 15/10/2011?

Thanks Ron



  #3   Report Post  
Ron
 
Posts: n/a
Default


"Roger Govier" wrote in message
...
Hi Ron

try
=DATEDIF(A15,"15/10/2011","m")

Regards

Roger Govier


Ron wrote:
Hi

=DATEDIF(A15,TODAY(),"m") gives the number of months, from a date in the
past, in A15. How can I get the number of months from A15 to say
15/10/2011?

Thanks Ron


Hi Thanks for that, I had tried that but never used "" around the date.
Ron


  #4   Report Post  
Chip Pearson
 
Posts: n/a
Default

The reason it doesn't work without the quote marks is that in
that case Excel is treating the '/' character as the division
operator rather than a date separator.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Ron" wrote in message
...

"Roger Govier" wrote in
message ...
Hi Ron

try
=DATEDIF(A15,"15/10/2011","m")

Regards

Roger Govier


Ron wrote:
Hi

=DATEDIF(A15,TODAY(),"m") gives the number of months, from a
date in the past, in A15. How can I get the number of months
from A15 to say 15/10/2011?

Thanks Ron


Hi Thanks for that, I had tried that but never used "" around
the date.
Ron




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



All times are GMT +1. The time now is 06:15 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"