Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ari Ari is offline
external usenet poster
 
Posts: 12
Default Calculating number of periods

Hello,

I have a number of unequal periods in a year. For this example say 5
periods. There are no actual dates here, just a raw number of months (number
format for column C) in cells B1 : C5.

P1: 1
P2: 2
P3: 3.4
P4: 2
P5: 3.6

The numbers in column C will always add up to 12.

I am searching for a formula that will calculate the number of periods (X)
that make up Y months, moving backwards from period Z. Y and Z are given. X
is what I am looking to calculate. For example:

Example 1
Cell A1 = Y (# Months) = 5
Cell A2 = Z (Period Beginning) = 4
Cell A3 = X (Formula) = 1.882*

* because
P4 = 1 using up 2 months
P3 = .882 using up the remaining 3 months

Example 2
Cell A1 = Y (# Months) = 5.8
Cell A2 = Z (Period Beginning) = 3
Cell A3 = X (Formula) = 2.4*

* because
P3 = 1 using up 3.4 months
P2 = 1 using up 2 months
P1 = .4 using up the remaining .4 months

Any help would be very much appreciated. I have considered building an
intermediate table to help the formula, but any advice would be great.

Thanks,

Ari Blum


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,480
Default Calculating number of periods

Hi Ari

I think that this does what you want, with your periods held in C1:C5

=IF($A$1-INDEX(C$1:$C$5,$A$2)<=INDEX($C$1:$C$5,$A$2-1),
($A$1-INDEX($C$1:$C$5,$A$2))/INDEX($C$1:$C$5,$A$2-1),
(($A$1-INDEX($C$1:$C$5,$A$2)-INDEX($C$1:$C$5,$A$2-1))/
INDEX($C$1:$C$5,$A$2-2))+INDEX($C$1:$C$5,A2-1))

--
Regards
Roger Govier

"Ari" wrote in message
...
Hello,

I have a number of unequal periods in a year. For this example say 5
periods. There are no actual dates here, just a raw number of months
(number
format for column C) in cells B1 : C5.

P1: 1
P2: 2
P3: 3.4
P4: 2
P5: 3.6

The numbers in column C will always add up to 12.

I am searching for a formula that will calculate the number of periods (X)
that make up Y months, moving backwards from period Z. Y and Z are given.
X
is what I am looking to calculate. For example:

Example 1
Cell A1 = Y (# Months) = 5
Cell A2 = Z (Period Beginning) = 4
Cell A3 = X (Formula) = 1.882*

* because
P4 = 1 using up 2 months
P3 = .882 using up the remaining 3 months

Example 2
Cell A1 = Y (# Months) = 5.8
Cell A2 = Z (Period Beginning) = 3
Cell A3 = X (Formula) = 2.4*

* because
P3 = 1 using up 3.4 months
P2 = 1 using up 2 months
P1 = .4 using up the remaining .4 months

Any help would be very much appreciated. I have considered building an
intermediate table to help the formula, but any advice would be great.

Thanks,

Ari Blum


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ari Ari is offline
external usenet poster
 
Posts: 12
Default Calculating number of periods

Thank you Roger. This was incredibly helpful.

Best,

Ari Blum

"Roger Govier" wrote:

Hi Ari

I think that this does what you want, with your periods held in C1:C5

=IF($A$1-INDEX(C$1:$C$5,$A$2)<=INDEX($C$1:$C$5,$A$2-1),
($A$1-INDEX($C$1:$C$5,$A$2))/INDEX($C$1:$C$5,$A$2-1),
(($A$1-INDEX($C$1:$C$5,$A$2)-INDEX($C$1:$C$5,$A$2-1))/
INDEX($C$1:$C$5,$A$2-2))+INDEX($C$1:$C$5,A2-1))

--
Regards
Roger Govier

"Ari" wrote in message
...
Hello,

I have a number of unequal periods in a year. For this example say 5
periods. There are no actual dates here, just a raw number of months
(number
format for column C) in cells B1 : C5.

P1: 1
P2: 2
P3: 3.4
P4: 2
P5: 3.6

The numbers in column C will always add up to 12.

I am searching for a formula that will calculate the number of periods (X)
that make up Y months, moving backwards from period Z. Y and Z are given.
X
is what I am looking to calculate. For example:

Example 1
Cell A1 = Y (# Months) = 5
Cell A2 = Z (Period Beginning) = 4
Cell A3 = X (Formula) = 1.882*

* because
P4 = 1 using up 2 months
P3 = .882 using up the remaining 3 months

Example 2
Cell A1 = Y (# Months) = 5.8
Cell A2 = Z (Period Beginning) = 3
Cell A3 = X (Formula) = 2.4*

* because
P3 = 1 using up 3.4 months
P2 = 1 using up 2 months
P1 = .4 using up the remaining .4 months

Any help would be very much appreciated. I have considered building an
intermediate table to help the formula, but any advice would be great.

Thanks,

Ari Blum


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
Calculating overlapping time periods Arlette Excel Worksheet Functions 1 December 9th 06 02:14 AM
Calculating overlapping time periods Arlette Excel Worksheet Functions 1 December 9th 06 12:31 AM
Calculating overlapping time periods Arlette Excel Worksheet Functions 0 December 8th 06 09:35 PM
calculating number of three month periods between two dates... neil Excel Discussion (Misc queries) 3 May 21st 06 01:52 PM
Calculating number of periods when payment amount changes Dan Patrick Excel Worksheet Functions 1 August 2nd 05 05:57 PM


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

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"