View Single Post
  #2   Report Post  
Old December 23rd 08, 11:29 AM posted to microsoft.public.excel.worksheet.functions
Gary''s Student Gary''s Student is offline
external usenet poster
First recorded activity by ExcelBanter: Jul 2006
Posts: 11,058
Default evenly distribute numbers across a range

In A1 enter the amount of items:
In B1 enter the number of months:

In C1 enter:
=ROUNDUP(A1/B1,0) this is the "nominal" amount per month
displays 1

In D1 enter:

In D2 enter:
=IF(SUM($D$11)=$A$1,"",IF(SUM($D$11)+$C$1$A$1 ,$A$1-SUM($D$11),$C$1))

and copy down.

Gary''s Student - gsnu200822

" wrote:

I'm trying to create a formula or script that will accomplish the

Lets say I'm going to sell 7 apples over the next 12 months
I'm trying to create a script that will evenly distribute the 7 apple
sales across the 12 months
I cannot sell part of an apple so the numbers must be zero or one(this
is what has me jammed up)
The script will allow for more than one apple to be sold in a month if
I were to reduce the months from 12 to 6.
I would like a way to 'weight' the distribution having more sales
occur at the beginning or the end of the time frame.
Any suggestions would be greatly appreciated!!