Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default calculations based upon months

Hi,
In order to calculate an amount thru the past month, I refernce a cell that
contains the number of months I am including. My calendar runs from July
thru June. So, I have been diving the total by a cell that has the number of
past months on my calendar (6) divided by 12. So my formaula looks like
(=B18/($L$1/12)).

Is there a way that I can reference that 6 out of the 12 months have passed?
Any assistance would be appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 180
Default calculations based upon months

I'm trying to read between the lines here... Are you asking to calculate how
many FULL months have passed from July 1 through today? If so, should days
in the month of July show as 0? If the answers are yes and yes, then
=MOD(MONTH(TODAY()-DAY(TODAY())+1)-7,12)
ought to do it.
If you want to count the elapsed months through yesterday, change both
instances of today() to today()-1.
If you want dates in July to show as 12, I think you can change the ending
from 7,12) to 8,12)+1.
If my interpretation is off, please provide more complete requirements.

"fascal" wrote:

Hi,
In order to calculate an amount thru the past month, I refernce a cell that
contains the number of months I am including. My calendar runs from July
thru June. So, I have been diving the total by a cell that has the number of
past months on my calendar (6) divided by 12. So my formaula looks like
(=B18/($L$1/12)).

Is there a way that I can reference that 6 out of the 12 months have passed?
Any assistance would be appreciated.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default calculations based upon months

Thanks. That is almost it. The formula works great. Will I have to update
the formula monthly?

"bpeltzer" wrote:

I'm trying to read between the lines here... Are you asking to calculate how
many FULL months have passed from July 1 through today? If so, should days
in the month of July show as 0? If the answers are yes and yes, then
=MOD(MONTH(TODAY()-DAY(TODAY())+1)-7,12)
ought to do it.
If you want to count the elapsed months through yesterday, change both
instances of today() to today()-1.
If you want dates in July to show as 12, I think you can change the ending
from 7,12) to 8,12)+1.
If my interpretation is off, please provide more complete requirements.

"fascal" wrote:

Hi,
In order to calculate an amount thru the past month, I refernce a cell that
contains the number of months I am including. My calendar runs from July
thru June. So, I have been diving the total by a cell that has the number of
past months on my calendar (6) divided by 12. So my formaula looks like
(=B18/($L$1/12)).

Is there a way that I can reference that 6 out of the 12 months have passed?
Any assistance would be appreciated.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 180
Default calculations based upon months

No; if you had to update it monthly, there wouldn't be much point in
creating the formula. Everytime you open the file, the # of full months
elapsed will be updated based on the system date (retrived by the today()
function).

"fascal" wrote:

Thanks. That is almost it. The formula works great. Will I have to update
the formula monthly?

"bpeltzer" wrote:

I'm trying to read between the lines here... Are you asking to calculate how
many FULL months have passed from July 1 through today? If so, should days
in the month of July show as 0? If the answers are yes and yes, then
=MOD(MONTH(TODAY()-DAY(TODAY())+1)-7,12)
ought to do it.
If you want to count the elapsed months through yesterday, change both
instances of today() to today()-1.
If you want dates in July to show as 12, I think you can change the ending
from 7,12) to 8,12)+1.
If my interpretation is off, please provide more complete requirements.

"fascal" wrote:

Hi,
In order to calculate an amount thru the past month, I refernce a cell that
contains the number of months I am including. My calendar runs from July
thru June. So, I have been diving the total by a cell that has the number of
past months on my calendar (6) divided by 12. So my formaula looks like
(=B18/($L$1/12)).

Is there a way that I can reference that 6 out of the 12 months have passed?
Any assistance would be appreciated.

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
Sum cells based on number of months rck Excel Worksheet Functions 6 July 24th 09 04:00 PM
Exclude $ Amount from sum based on how many months its been Vercingetorix.XIII[_2_] Excel Worksheet Functions 1 August 30th 08 11:21 PM
Sum based on two selections - months Sunnyskies Excel Discussion (Misc queries) 2 August 21st 08 07:14 AM
Set an array on based on duration of months Robog Excel Worksheet Functions 3 June 6th 06 11:33 PM
Calculations Based on Format EZW Excel Worksheet Functions 2 April 26th 06 02:18 AM


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