Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
JK JK is offline
external usenet poster
 
Posts: 10
Default calculate number of months based on one date

In excel, how do you calculate the number of months that have passed between
the first of the year and the one date that is available on the worksheet? In
other words, if I enter today's date in a field on my worksheet, I want a
formula to automatically display the number of months that have passed since
the first of this year and the date I entered. Everything I see is based on
the number of months between two dates. I only have one.

I appreciate your help!

Jason
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default calculate number of months based on one date

Hi,

With your date in a1 try this

=DATEDIF(DATE(YEAR(A1),1,1),A1,"m")

datedif isn't documented in Excel, for help look here

http://www.cpearson.com/excel/datedif.htm

Mike



"JK" wrote:

In excel, how do you calculate the number of months that have passed between
the first of the year and the one date that is available on the worksheet? In
other words, if I enter today's date in a field on my worksheet, I want a
formula to automatically display the number of months that have passed since
the first of this year and the date I entered. Everything I see is based on
the number of months between two dates. I only have one.

I appreciate your help!

Jason

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
calculate number of months townsendmama Excel Discussion (Misc queries) 2 June 18th 08 04:32 PM
Calculate number of months between dates steph44haf Excel Worksheet Functions 1 August 15th 06 04:05 PM
Calculate a 30-day moving average based on the last x number of entries and date gimiv Excel Worksheet Functions 14 July 7th 06 12:49 PM
Calculate number of years and months employed using hire date and. TryingTime Excel Worksheet Functions 1 June 29th 06 04:26 AM
How to calculate "number of months" between two given date? nginhong Excel Worksheet Functions 23 April 17th 06 02:47 PM


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