Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1
Default difference in months

Hi there
I have 2 dates and i want to calculate the difference in months not years

Any help will be appreciated

Thanks

Londoner


  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 470
Default difference in months

Try theses out. I found them in the Excel HELP.

=MONTH(A3)-MONTH(A2)
Calculates difference in months within same year.

=(YEAR(A4)-YEAR(A3))*12+MONTH(A4)-MONTH(A3)
Calculates difference in months for dates occurring in different years.

Les



"Londoner" wrote:

Hi there
I have 2 dates and i want to calculate the difference in months not years

Any help will be appreciated

Thanks

Londoner


  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2,345
Default difference in months

With the first date in G1 and the 2nd date in G2 try:

=DATEDIF(G2,G1,"m")

If the dates will not always be witht he earliest date in G1 then use:

=DATEDIF(MIN(G2,G1),MAX(G2,G1),"m")

--
HTH

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


with @tiscali.co.uk


"Londoner" wrote in message
...
Hi there
I have 2 dates and i want to calculate the difference in months not years

Any help will be appreciated

Thanks

Londoner




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
Difference between two months leitek.com Excel Worksheet Functions 5 March 13th 06 09:10 PM
difference between two dates in years, months and days. ruby Excel Worksheet Functions 2 April 4th 05 04:51 PM
Difference between two dates in months with decimals effem Excel Worksheet Functions 1 November 8th 04 02:16 PM
Difference between two dates in months with decimals effem Excel Worksheet Functions 3 November 5th 04 05:23 PM
Difference between two dates in months with decimals effem Excel Worksheet Functions 0 November 5th 04 02:14 PM


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