Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Excel question

My wife has a need to linearly spread contract revenue across several
columns, each representing a period of time. The 1st 12 columns are
the months of the year (2004). The ensuing columms are calendar
years, 2005, 2006, 2007, etc. The contracts have varying known start
dates and varying known periods of performance.

I'm trying to help her out. She spent the entire weekend playing with
the math (while I was painting the house) but no single solution
correctly handled all situations. I've got to believe there is an
easier way to do this (I'm a former software type). Does anyone out
there have any ideas?

Thanks for all responses.

Terry
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Excel question

if by linearly, you mean each month gets the same amount, I would suggest
counting up the months for the contract period, then dividing that into the
contract value to get a monthly rate. Now, assign that amout to each of the
first 12 columns that fall in the contract period. You can then create an
array to represent 12 months for each of the successive years, and loop
through that array assigning the monthly rate to each one until the end of
the contract is reached/resources are exhausted. Then sum up by year and
assign to the remaining columns.

Of course, you could do this by doing some date math and figuring out the
proportion of a year that includes the contract period and taking that
proprotion of the total.

--
Regard,
Tom Ogilvy


"TerryG" wrote in message
om...
My wife has a need to linearly spread contract revenue across several
columns, each representing a period of time. The 1st 12 columns are
the months of the year (2004). The ensuing columms are calendar
years, 2005, 2006, 2007, etc. The contracts have varying known start
dates and varying known periods of performance.

I'm trying to help her out. She spent the entire weekend playing with
the math (while I was painting the house) but no single solution
correctly handled all situations. I've got to believe there is an
easier way to do this (I'm a former software type). Does anyone out
there have any ideas?

Thanks for all responses.

Terry



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 599
Default Excel Question on How to Spread Money Over Time

Terry

Assuming: Your columns A:T are like this

name, startdate, duration (in months),amount,
1/31/04,2/29/04,3/31/04....12/31/05,12/31/06,...

Put this formula in E2 and fill across to P2, fill down for as many rows as
you need

=IF($B2E$1,0,IF(DATE(YEAR($B2),MONTH($B2)+$C2,DAY ($B2))E$1,$D2/$C2,0))

Put this formula in Q2 and fill across for your year columns, fill down for
as many rows as you need

=IF(DATE(YEAR($B2),MONTH($B2)+$C2,DAY($B2))Q$1,$D 2/$C2*12,$D2-SUM($E2:P2))

Make sure you date columns are the last day of the month/year. You can
format them to look however you want.

--
Dick Kusleika
MVP - Excel
www.dicks-clicks.com
Post all replies to the newsgroup.

"TerryG" wrote in message
om...
Because I used a subject that already existed, my post was tacked onto
an existing post. So I'm reposting with a different subject.


(TerryG) wrote in message

. com...
My wife has a need to linearly spread contract revenue across several
columns, each representing a period of time. The 1st 12 columns are
the months of the year (2004). The ensuing columms are calendar
years, 2005, 2006, 2007, etc. The contracts have varying known start
dates and varying known periods of performance.

I'm trying to help her out. She spent the entire weekend playing with
the math (while I was painting the house) but no single solution
correctly handled all situations. I've got to believe there is an
easier way to do this (I'm a former software type). Does anyone out
there have any ideas?

Thanks for all responses.

Terry



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel Question on How to Spread Money Over Time

Thanks for the great response, Dick. Your solution is close to what she
needs. Is there any way to pro-rate the revenue for the month the contract
starts? E.G., if the contract starts on the 15th of the month, ~ half the
monthly rate wold accrue. This is the part that we couldn't figure out.

Terry

--
v/r
Carol & Terry Garvey
"Dick Kusleika" wrote in message
...
Terry

Assuming: Your columns A:T are like this

name, startdate, duration (in months),amount,
1/31/04,2/29/04,3/31/04....12/31/05,12/31/06,...

Put this formula in E2 and fill across to P2, fill down for as many rows

as
you need

=IF($B2E$1,0,IF(DATE(YEAR($B2),MONTH($B2)+$C2,DAY ($B2))E$1,$D2/$C2,0))

Put this formula in Q2 and fill across for your year columns, fill down

for
as many rows as you need


=IF(DATE(YEAR($B2),MONTH($B2)+$C2,DAY($B2))Q$1,$D 2/$C2*12,$D2-SUM($E2:P2))

Make sure you date columns are the last day of the month/year. You can
format them to look however you want.

--
Dick Kusleika
MVP - Excel
www.dicks-clicks.com
Post all replies to the newsgroup.

"TerryG" wrote in message
om...
Because I used a subject that already existed, my post was tacked onto
an existing post. So I'm reposting with a different subject.


(TerryG) wrote in message

. com...
My wife has a need to linearly spread contract revenue across several
columns, each representing a period of time. The 1st 12 columns are
the months of the year (2004). The ensuing columms are calendar
years, 2005, 2006, 2007, etc. The contracts have varying known start
dates and varying known periods of performance.

I'm trying to help her out. She spent the entire weekend playing with
the math (while I was painting the house) but no single solution
correctly handled all situations. I've got to believe there is an
easier way to do this (I'm a former software type). Does anyone out
there have any ideas?

Thanks for all responses.

Terry







  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 599
Default Excel Question on How to Spread Money Over Time

Terry

Add a new column E (before January), leave it blank and hide it. Change the
formula under Jan to

=IF(AND(MONTH($B2)=MONTH(F$1),YEAR($B2)=YEAR(F$1)) ,($D2/$C2)*(F$1-$B2)/(F$1-
EOMONTH(F$1,-1)),IF($B2F$1,0,IF(DATE(YEAR($B2),MONTH($B2)+$C2, DAY($B2))F$1
,$D2/$C2,$D2-SUM($E2:E2))))

and fill across and down as needed.

Since we're prorating the first month, the last month is kind of a
catch-all. We need that blank E column as an anchor.

--
Dick Kusleika
MVP - Excel
www.dicks-clicks.com
Post all replies to the newsgroup.

"Terence Garvey" wrote in message
ink.net...
Thanks for the great response, Dick. Your solution is close to what she
needs. Is there any way to pro-rate the revenue for the month the

contract
starts? E.G., if the contract starts on the 15th of the month, ~ half the
monthly rate wold accrue. This is the part that we couldn't figure out.

Terry

--
v/r
Carol & Terry Garvey
"Dick Kusleika" wrote in message
...
Terry

Assuming: Your columns A:T are like this

name, startdate, duration (in months),amount,
1/31/04,2/29/04,3/31/04....12/31/05,12/31/06,...

Put this formula in E2 and fill across to P2, fill down for as many rows

as
you need

=IF($B2E$1,0,IF(DATE(YEAR($B2),MONTH($B2)+$C2,DAY ($B2))E$1,$D2/$C2,0))

Put this formula in Q2 and fill across for your year columns, fill down

for
as many rows as you need



=IF(DATE(YEAR($B2),MONTH($B2)+$C2,DAY($B2))Q$1,$D 2/$C2*12,$D2-SUM($E2:P2))

Make sure you date columns are the last day of the month/year. You can
format them to look however you want.

--
Dick Kusleika
MVP - Excel
www.dicks-clicks.com
Post all replies to the newsgroup.

"TerryG" wrote in message
om...
Because I used a subject that already existed, my post was tacked onto
an existing post. So I'm reposting with a different subject.


(TerryG) wrote in message

. com...
My wife has a need to linearly spread contract revenue across

several
columns, each representing a period of time. The 1st 12 columns are
the months of the year (2004). The ensuing columms are calendar
years, 2005, 2006, 2007, etc. The contracts have varying known

start
dates and varying known periods of performance.

I'm trying to help her out. She spent the entire weekend playing

with
the math (while I was painting the house) but no single solution
correctly handled all situations. I've got to believe there is an
easier way to do this (I'm a former software type). Does anyone out
there have any ideas?

Thanks for all responses.

Terry







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
Excel 2007 Macro/VB Question DDE Question MadDog22 Excel Worksheet Functions 1 March 10th 10 01:47 AM
Excel 2003 to Excel 2007 Question Mr. Panasonic Excel Worksheet Functions 0 December 15th 08 06:16 PM
Newbie Question - Subtraction Formula Question [email protected] Excel Discussion (Misc queries) 3 May 5th 06 05:50 PM
The question is an excel question that I need to figure out howto do in excel. Terry Excel Worksheet Functions 3 January 23rd 06 06:22 PM
Statistical Excel Function Question within Excel 2000... Drew H Excel Worksheet Functions 3 October 31st 04 06:55 PM


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