Distributed Row Results

Pestomania

Active Member
Joined
May 30, 2018
Messages
332
Office Version
  1. 365
Platform
  1. Windows
Hi! If I have an annual demand (let's say 100), how can I distribute that in a whole number pattern across 12 months?

What would this look like?

Annual TotalJanuaryFebruaryMarchAprilMayJuneJulyAugustSeptemberOctoberNovemberDecember
100889889889889

What if I want to distribute numerous totals?

Annual TotalJanuaryFebruaryMarchAprilMayJuneJulyAugustSeptemberOctoberNovemberDecember
11099109999910999
50454444444544
Total131414131313131314141313

It will not always be an even number, but some form of distribution across 12 months.
 
No - i fixed something. It only worked right when the number in column A was a nice divisor of 12, but not too nice. (like 12). I changed it from the mod =0 to the mod being less than the last one - meaning it flipped over again.
Oh gotcha, cool beans!! Thanks for the help, I will implement this into our model.!
 
Upvote 0

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
MrExcelPlayground15.xlsx
ABCDEFGHIJKLMN
1TotalJanuaryFebruaryMarchAprilMayJuneJulyAugustSeptemberOctoberNovemberDecember
2100889889889889100
350010100101015
41211111111111112
5Total9911910109101010911
Sheet24
Cell Formulas
RangeFormula
C1:M1C1=EOMONTH(B1,0)+1
N2:N4N2=SUM(B2#)
B2:M4B2=LET(z,A2,b,SEQUENCE(1,12),c,z/12*b,d,INT(z/12)*SEQUENCE(1,12,1,0),e,MOD(c,1),f,IF(INDEX(e,b)<INDEX(e,b-1),d+1,d),f)
B5:M5B5=B2#+B3#+B4#
Dynamic array formulas.
Is there a way to write in divisibles? So for Program_1, it needs to be divisible by 21?

I can create a table with the "lot size" but not sure how to incorporate that into the formula .
 
Upvote 0
I'm not sure that I follow, but if I had a divisor to deal with... As long as the total is a multiple of the divisor.

MrExcelPlayground15.xlsx
ABCDEFGHIJKLMNO
8TotalDivisorJanuaryFebruaryMarchAprilMayJuneJulyAugustSeptemberOctoberNovemberDecember
91199121987100898710089871008100898710089871008100811991
105002404242424242404242424242500
119560107908008007908008007908008007908008009560
12Total181718501829184018291850183818291850181918501850
Sheet24
Cell Formulas
RangeFormula
D8:N8D8=EOMONTH(C8,0)+1
O9:O11O9=SUM(C9#)
C9:N11C9=LET(z,A9/B9,b,SEQUENCE(1,12),c,z/12*b,d,INT(z/12)*SEQUENCE(1,12,1,0),e,MOD(c,1),f,IF(INDEX(e,b)<INDEX(e,b-1),d+1,d),f)*B9
C12:N12C12=C9#+C10#+C11#
Dynamic array formulas.
 
Upvote 0
Solution
I'm not sure that I follow, but if I had a divisor to deal with... As long as the total is a multiple of the divisor.

MrExcelPlayground15.xlsx
ABCDEFGHIJKLMNO
8TotalDivisorJanuaryFebruaryMarchAprilMayJuneJulyAugustSeptemberOctoberNovemberDecember
91199121987100898710089871008100898710089871008100811991
105002404242424242404242424242500
119560107908008007908008007908008007908008009560
12Total181718501829184018291850183818291850181918501850
Sheet24
Cell Formulas
RangeFormula
D8:N8D8=EOMONTH(C8,0)+1
O9:O11O9=SUM(C9#)
C9:N11C9=LET(z,A9/B9,b,SEQUENCE(1,12),c,z/12*b,d,INT(z/12)*SEQUENCE(1,12,1,0),e,MOD(c,1),f,IF(INDEX(e,b)<INDEX(e,b-1),d+1,d),f)*B9
C12:N12C12=C9#+C10#+C11#
Dynamic array formulas.
That worked to get me the divisor! Do you know why January still doesn't want to be useD?

TotalLot Size
1/1/2023​
2/1/2023​
3/1/2023​
4/1/2023​
5/1/2023​
6/1/2023​
7/1/2023​
8/1/2023​
9/1/2023​
10/1/2023​
11/1/2023​
12/1/2023​
Total
110​
10​
0​
10​
10​
10​
10​
10​
10​
10​
10​
10​
10​
10​
110​
80​
5​
5​
5​
10​
5​
5​
10​
5​
5​
10​
5​
5​
10​
80​
90​
30​
0​
0​
0​
30​
0​
0​
0​
30​
0​
0​
0​
30​
90​
40​
10​
0​
0​
10​
0​
0​
10​
0​
0​
10​
0​
0​
10​
40​
 
Upvote 0
for 110, some month doesn't get used for multiples of 10. For smaller Totals to Lot Size ratio, it's going to be a bit funny. But my formula tends to round down and correct up.
 
Upvote 0
for 110, some month doesn't get used for multiples of 10. For smaller Totals to Lot Size ratio, it's going to be a bit funny. But my formula tends to round down and correct up.
Okay cool!! Just need to be able to explain to my boss if I get asked. Thanks so much!
 
Upvote 0
You can add a phase feature that you can calibrate to make things start in January -

MrExcelPlayground15.xlsx
ABCDEFGHIJKLMNOP
14TotalDivisorPhaseJanuaryFebruaryMarchAprilMayJuneJulyAugustSeptemberOctoberNovember########
1511010110101010101010101010100110
168050551055105510551080
179030330000300003000090
18Total451520154520151550151510
Sheet24
Cell Formulas
RangeFormula
E14:O14E14=EOMONTH(D14,0)+1
P15:P17P15=SUM(D15#)
D15:O17D15=INDEX(LET(z,A15/B15,b,SEQUENCE(1,12),c,z/12*b,d,INT(z/12)*SEQUENCE(1,12,1,0),e,MOD(c,1),f,IF(INDEX(e,b)<INDEX(e,b-1),d+1,d),f)*B15,MOD(SEQUENCE(1,12,0)+C15,12)+1)
D18:O18D18=D15#+D16#+D17#
Dynamic array formulas.
 
Upvote 0
You can add a phase feature that you can calibrate to make things start in January -

MrExcelPlayground15.xlsx
ABCDEFGHIJKLMNOP
14TotalDivisorPhaseJanuaryFebruaryMarchAprilMayJuneJulyAugustSeptemberOctoberNovember########
1511010110101010101010101010100110
168050551055105510551080
179030330000300003000090
18Total451520154520151550151510
Sheet24
Cell Formulas
RangeFormula
E14:O14E14=EOMONTH(D14,0)+1
P15:P17P15=SUM(D15#)
D15:O17D15=INDEX(LET(z,A15/B15,b,SEQUENCE(1,12),c,z/12*b,d,INT(z/12)*SEQUENCE(1,12,1,0),e,MOD(c,1),f,IF(INDEX(e,b)<INDEX(e,b-1),d+1,d),f)*B15,MOD(SEQUENCE(1,12,0)+C15,12)+1)
D18:O18D18=D15#+D16#+D17#
Dynamic array formulas.
That works great too!
Do you mind me asking if you recommend any classes to learn more about this or have you learned based on necesssity? Most of what I know from formulas and vba is because of necessity.
 
Upvote 0
I've got about 28 years of learning what I needed to know. And the last 2 years on Mr. Excel, I've doubled my skill (or more) by solving other people's problems, and seeing how some real masters attack the same problem.

I tend to be bored with VBA because it seems like brute force and now I rarely use it. I use array formulas and accomplish things that I never would have believed I could do without VBA 2 years ago.
 
Upvote 0
I've got about 28 years of learning what I needed to know. And the last 2 years on Mr. Excel, I've doubled my skill (or more) by solving other people's problems, and seeing how some real masters attack the same problem.

I tend to be bored with VBA because it seems like brute force and now I rarely use it. I use array formulas and accomplish things that I never would have believed I could do without VBA 2 years ago.
James,

I ended up having the opportunity to modify this formula to work for other instances with more dynamic data.

By using VLookups & Substitute, it can now process hundreds of records and types of programs. What I then did was break excel and it cannot process all of the formulas without crashing or giving #Spill records. I am working to modify, just thought it would be cool to update I am using it for more things.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,182
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top