Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default How to calculate number of month from 2008 in Excel?

I need to calculate the number of months from today to 2008 Dec 31, and
put that in an Excel cell with equal sign, and fraction of a month is
divided by 31.

How do I do that?

PS: I am not looking for dedicated VBA script module.

Thank you.





  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 225
Default How to calculate number of month from 2008 in Excel?

See answers in .misc

Frank wrote:
I need to calculate the number of months from today to 2008 Dec 31, and
put that in an Excel cell with equal sign, and fraction of a month is
divided by 31.

How do I do that?

PS: I am not looking for dedicated VBA script module.

Thank you.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default How to calculate number of month from 2008 in Excel?

Thank you.

"Andrew Taylor" wrote in message
oups.com...
See answers in .misc

Frank wrote:
I need to calculate the number of months from today to 2008 Dec 31, and
put that in an Excel cell with equal sign, and fraction of a month is
divided by 31.

How do I do that?

PS: I am not looking for dedicated VBA script module.

Thank you.




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 73
Default How to calculate number of month from 2008 in Excel?

Just a hint:

if you have =today() in A1 and 31/12/2008 in B1 then

in C1
="=" & (YEAR(B1)-YEAR(A1))*12+MONTH(B1)-MONTH(A1)& " Motnhs, " &
DATEDIF(A1,B1,"md") & " Days"

will give you =34 Months, 24 Days

and
=DATEDIF(A1,B1,"y") & " Year " & DATEDIF(A1,B1,"ym") & " Months " &
DATEDIF(A1,B1,"md") & " Days"

will give you 2 Years 10 Months 24 Days

and

="=" &(YEAR(B1)-YEAR(A1))*12+MONTH(B1)-MONTH(A1)& " and " &
DATEDIF(A1,B1,"md") & "/31"

will give =34 and 24/31

Thanks



Frank wrote:
I need to calculate the number of months from today to 2008 Dec 31, and
put that in an Excel cell with equal sign, and fraction of a month is
divided by 31.

How do I do that?

PS: I am not looking for dedicated VBA script module.

Thank you.


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default How to calculate number of month from 2008 in Excel?

Thank you Soniya.


"Soniya" wrote in message
oups.com...
Just a hint:

if you have =today() in A1 and 31/12/2008 in B1 then

in C1
="=" & (YEAR(B1)-YEAR(A1))*12+MONTH(B1)-MONTH(A1)& " Motnhs, " &
DATEDIF(A1,B1,"md") & " Days"

will give you =34 Months, 24 Days

and
=DATEDIF(A1,B1,"y") & " Year " & DATEDIF(A1,B1,"ym") & " Months " &
DATEDIF(A1,B1,"md") & " Days"

will give you 2 Years 10 Months 24 Days

and

="=" &(YEAR(B1)-YEAR(A1))*12+MONTH(B1)-MONTH(A1)& " and " &
DATEDIF(A1,B1,"md") & "/31"

will give =34 and 24/31

Thanks



Frank wrote:
I need to calculate the number of months from today to 2008 Dec 31, and
put that in an Excel cell with equal sign, and fraction of a month is
divided by 31.

How do I do that?

PS: I am not looking for dedicated VBA script module.

Thank you.






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 do you calculate the number of weeks on a month Sunnyskies Excel Discussion (Misc queries) 7 April 4th 23 11:23 AM
Calculate Number of Days in a Month Gary T Excel Worksheet Functions 3 November 21st 07 04:21 PM
??Calculate week number of a month Jaylin Excel Worksheet Functions 3 January 11th 07 02:01 PM
How do I calculate number of Mondays in a given month in Excel? Rossta Excel Worksheet Functions 3 May 26th 06 04:07 PM
How to calculate number of month from 2008 in Excel? Frank Excel Discussion (Misc queries) 7 February 7th 06 02:29 PM


All times are GMT +1. The time now is 10:20 AM.

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"