#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Datedif formula

I am trying to figure out the number of months between a start date and the
current month. I am using the formula =DATEDIF(MONTH(TODAY()),G4,"m") but it
is giving me the wrong answer. Ex. the start date is Sep-07 and it is
returning 1291 as an answer and the column is formatted as number. Can you
please help me. Thanks

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 258
Default Datedif formula

Marci --

I think you have the arguments backwards. Using A1 as my start date, I typed

=DATEDIF(A1,TODAY(),"M")

and got a result of 7, which I think is right.

HTH

"Marci" wrote:

I am trying to figure out the number of months between a start date and the
current month. I am using the formula =DATEDIF(MONTH(TODAY()),G4,"m") but it
is giving me the wrong answer. Ex. the start date is Sep-07 and it is
returning 1291 as an answer and the column is formatted as number. Can you
please help me. Thanks


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,345
Default Datedif formula

Assuming that the start date is in G4, try:

=DATEDIF(G4,TODAY(),"m")

However, as you say the Start date is Sep-07, if you mean 1st September 2007
then use:

=DATEDIF(DATE(YEAR(G4),MONTH(G4),1),TODAY(),"m")

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"Marci" <u43020@uwe wrote in message news:82e04247ddd20@uwe...
I am trying to figure out the number of months between a start date and the
current month. I am using the formula =DATEDIF(MONTH(TODAY()),G4,"m") but
it
is giving me the wrong answer. Ex. the start date is Sep-07 and it is
returning 1291 as an answer and the column is formatted as number. Can you
please help me. Thanks




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Datedif formula

That worked...Thanks!

pdberger wrote:
Marci --

I think you have the arguments backwards. Using A1 as my start date, I typed

=DATEDIF(A1,TODAY(),"M")

and got a result of 7, which I think is right.

HTH

I am trying to figure out the number of months between a start date and the
current month. I am using the formula =DATEDIF(MONTH(TODAY()),G4,"m") but it
is giving me the wrong answer. Ex. the start date is Sep-07 and it is
returning 1291 as an answer and the column is formatted as number. Can you
please help me. Thanks


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
about this formula =DATEDIF(J5,H5,"d") insting Excel Discussion (Misc queries) 4 September 25th 07 01:46 PM
DATEDIF Deborah Excel Worksheet Functions 11 September 12th 07 04:06 PM
DATEDIF formula enhancement Santa-D Excel Worksheet Functions 10 November 9th 06 01:14 PM
DateDif Average? Damn DateDif UTCHELP Excel Worksheet Functions 14 November 17th 05 10:30 AM
=DATEDIF(B14,B4,"m") teeb Excel Discussion (Misc queries) 1 July 20th 05 11:52 PM


All times are GMT +1. The time now is 11:41 PM.

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"