Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 150
Default Count of remaining months

Hi,

A sheet has following columns:
Start Month End Month Current Month Remaining Months
July 09 Dec 09 Oct 09 3

How do I compute the remaining months using formula/function?

Thanks in advance for the help.

Regards,
Raj
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Count of remaining months

Hi,

Are these dates (1/1/2009 - formatted as mmm yy) or typed in values "Oct
09"?

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Raj" wrote in message
...
Hi,

A sheet has following columns:
Start Month End Month Current Month Remaining Months
July 09 Dec 09 Oct 09 3

How do I compute the remaining months using formula/function?

Thanks in advance for the help.

Regards,
Raj


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,276
Default Count of remaining months

Hi,
Have somewhere two columns one with the month and other with the number
corresponding to that month and then apply a vlookup formula like

=VLOOKUP(C12,I1:J12,2,FALSE)-(VLOOKUP(D12,I1:J12,2,FALSE)-1)

C12 = December
D12= October

I1:j12 = the table mentioned above


"Raj" wrote:

Hi,

A sheet has following columns:
Start Month End Month Current Month Remaining Months
July 09 Dec 09 Oct 09 3

How do I compute the remaining months using formula/function?

Thanks in advance for the help.

Regards,
Raj

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 694
Default Count of remaining months

HI
If current Month is in C2 and End Month is in B2.
=DATEDIF(c2,b2,"m") and the answer should be 2 not 3
HTH
John
"Raj" wrote in message
...
Hi,

A sheet has following columns:
Start Month End Month Current Month Remaining Months
July 09 Dec 09 Oct 09 3

How do I compute the remaining months using formula/function?

Thanks in advance for the help.

Regards,
Raj


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default Count of remaining months

On Oct 6, 9:55 pm, "Ashish Mathur" wrote:
Hi,

Are these dates (1/1/2009 - formatted as mmm yy) or typed in values "Oct
09"?

--
Regards,

Ashish Mathur
Microsoft Excel MVPwww.ashishmathur.com

"Raj" wrote in message

...

Hi,


A sheet has following columns:
Start Month End Month Current Month Remaining Months
July 09 Dec 09 Oct 09 3


How do I compute the remaining months using formula/function?


Thanks in advance for the help.


Regards,
Raj


Hi,

Typed in as values ie Oct-09

Regards,
Rajendra


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 694
Default Count of remaining months

If you need to include the current month in your answer, =DATEDIF(c2,b2,"m")+1
This will only work if they are real dates.
HTH
John
"John" wrote in message
...
HI
If current Month is in C2 and End Month is in B2.
=DATEDIF(c2,b2,"m") and the answer should be 2 not 3
HTH
John
"Raj" wrote in message
...
Hi,

A sheet has following columns:
Start Month End Month Current Month Remaining Months
July 09 Dec 09 Oct 09 3

How do I compute the remaining months using formula/function?

Thanks in advance for the help.

Regards,
Raj



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 694
Default Count of remaining months

Going to fast, not thinking, try it it should work with text.

"John" wrote in message
...
If you need to include the current month in your answer,
=DATEDIF(c2,b2,"m")+1
This will only work if they are real dates.
HTH
John
"John" wrote in message
...
HI
If current Month is in C2 and End Month is in B2.
=DATEDIF(c2,b2,"m") and the answer should be 2 not 3
HTH
John
"Raj" wrote in message
...
Hi,

A sheet has following columns:
Start Month End Month Current Month Remaining Months
July 09 Dec 09 Oct 09 3

How do I compute the remaining months using formula/function?

Thanks in advance for the help.

Regards,
Raj




  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Count of remaining months

Hi,

If you typed in Oct-09, then it would have automatically become a date I.e.
the entry in the formula bar would be 1/10/2009. Try this

=MONTH(E18)-MONTH(D18)+1

E18 has the ending month and D18 has the beginning month

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Rajendra" wrote in message
...
On Oct 6, 9:55 pm, "Ashish Mathur" wrote:
Hi,

Are these dates (1/1/2009 - formatted as mmm yy) or typed in values "Oct
09"?

--
Regards,

Ashish Mathur
Microsoft Excel MVPwww.ashishmathur.com

"Raj" wrote in message

...

Hi,


A sheet has following columns:
Start Month End Month Current Month Remaining Months
July 09 Dec 09 Oct 09 3


How do I compute the remaining months using formula/function?


Thanks in advance for the help.


Regards,
Raj


Hi,

Typed in as values ie Oct-09

Regards,
Rajendra


  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default Count of remaining months

On Oct 7, 6:47*am, "Ashish Mathur" wrote:
Hi,

If you typed in Oct-09, then it would have automatically become a date I.e.
the entry in the formula bar would be 1/10/2009. *Try this

=MONTH(E18)-MONTH(D18)+1

E18 has the ending month and D18 has the beginning month

--
Regards,

Ashish Mathur
Microsoft Excel MVPwww.ashishmathur.com

"Rajendra" wrote in message

...



On Oct 6, 9:55 pm, "Ashish Mathur" wrote:
Hi,


Are these dates (1/1/2009 - formatted as mmm yy) or typed in values "Oct
09"?


--
Regards,


Ashish Mathur
Microsoft Excel MVPwww.ashishmathur.com


"Raj" wrote in message


....


Hi,


A sheet has following columns:
Start Month * * End Month * * * Current Month *Remaining Months
July 09 * * * * * * Dec 09 * * * * * * * *Oct 09 * * * * * * * * * *3


How do I compute the remaining months using *formula/function?


Thanks in advance for the help.


Regards,
Raj


Hi,


Typed in as values ie Oct-09


Regards,
Rajendra- Hide quoted text -


- Show quoted text


Thanks John for the solution.

Ashish, the solution gave the same results for the same month in
different years.

Regards,
Raj


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 dates returning full months and remaining days kvan Excel Discussion (Misc queries) 5 October 7th 09 04:07 PM
Determine the months remaining from date to the end of the yea Max Excel Discussion (Misc queries) 0 January 11th 08 01:33 PM
dynamic calculation of months remaining given end date and today Cruz_Control Excel Discussion (Misc queries) 2 April 30th 07 04:30 PM
Count workdays remaining in a month Ads Excel Discussion (Misc queries) 2 August 14th 06 12:40 AM
Months or Years remaining, formatting James C Excel Discussion (Misc queries) 3 September 20th 05 10:38 PM


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