Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,670
Default How to determine the number of months between 2 periods?

Does anyone have any suggestions on how to determine the number of months
between 2 periods? the default day is always 1 for both periods.
such as
1997-10-1 [A1] and 1996-10-1[A2]
then return 12 in cell B1
Does anyone have any suggestions?
Thank in advance for any suggestions?
Eric
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default How to determine the number of months between 2 periods?

try:

=DATEDIF(A2,A1,"m")

"Eric" wrote:

Does anyone have any suggestions on how to determine the number of months
between 2 periods? the default day is always 1 for both periods.
such as
1997-10-1 [A1] and 1996-10-1[A2]
then return 12 in cell B1
Does anyone have any suggestions?
Thank in advance for any suggestions?
Eric

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,345
Default How to determine the number of months between 2 periods?

Use DATEDIF()

=DATEDIF(A1,B1,"m")

--
HTH

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


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


"Eric" wrote in message
...
Does anyone have any suggestions on how to determine the number of months
between 2 periods? the default day is always 1 for both periods.
such as
1997-10-1 [A1] and 1996-10-1[A2]
then return 12 in cell B1
Does anyone have any suggestions?
Thank in advance for any suggestions?
Eric



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
How to determine the number of month between 2 periods? Eric Excel Discussion (Misc queries) 5 March 8th 07 12:04 AM
How to determine the number of month between 2 periods? Eric Excel Worksheet Functions 1 March 7th 07 04:00 PM
How to determine the number of workday between two periods? Eric Excel Worksheet Functions 1 February 12th 07 07:17 AM
How to determine the number of workday between two periods? Eric Excel Discussion (Misc queries) 1 February 12th 07 07:12 AM
Calculating an Activities During Periods Of Natural Months and/or Dates Rayco Excel Worksheet Functions 1 October 10th 05 01:30 PM


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