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.
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
MrExcelPlayground15.xlsx
ABCDEFGHIJKLM
1TotalJanuaryFebruaryMarchAprilMayJuneJulyAugustSeptemberOctoberNovemberDecember
2100889889889889
311099999109999910
451444544454445
5Total212122222123212222212124
Sheet24
Cell Formulas
RangeFormula
C1:M1C1=EOMONTH(B1,0)+1
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),IF(e=0,d+1,d))
B5:M5B5=B2#+B3#+B4#
Dynamic array formulas.
 
Upvote 0
MrExcelPlayground15.xlsx
ABCDEFGHIJKLM
1TotalJanuaryFebruaryMarchAprilMayJuneJulyAugustSeptemberOctoberNovemberDecember
2100889889889889
311099999109999910
451444544454445
5Total212122222123212222212124
Sheet24
Cell Formulas
RangeFormula
C1:M1C1=EOMONTH(B1,0)+1
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),IF(e=0,d+1,d))
B5:M5B5=B2#+B3#+B4#
Dynamic array formulas.
That is probably the coolest formula I have EVER used!!! Thank you!
 
Upvote 0
I like to wait to see what some of the cleverer people post as solutions. The most interesting ones are the shortest.
 
Upvote 0
I like to wait to see what some of the cleverer people post as solutions. The most interesting ones are the shortest.
So it populated a problem, I have highlihtted.

Total
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
100​
8​
8​
9​
8​
8​
9​
8​
8​
9​
8​
8​
9​
100​
12​
2​
2​
2​
2​
2​
2​
2​
2​
2​
2​
2​
2​
24
5​
0​
0​
0​
0​
0​
0​
0​
0​
0​
0​
0​
1​
1
28​
2​
2​
3​
2​
2​
3​
2​
2​
3​
2​
2​
3​
28​
12​
12​
14​
12​
12​
14​
12​
12​
14​
12​
12​
15​

The red fields are just sum of January to December and it is not returning the correct number
 
Upvote 0
A fairly simple solution:
Book1
ABCDEFGHIJKLM
1Annual TotalJanuaryFebruaryMarchAprilMayJuneJulyAugustSeptemberOctoberNovemberDecember
21101199999999999
350644444444444
Sheet1
Cell Formulas
RangeFormula
B2:B3B2=A2-SUM(C2:M2)
C2:M3C2=INT($A2/12)
 
Upvote 0
A fairly simple solution:
Book1
ABCDEFGHIJKLM
1Annual TotalJanuaryFebruaryMarchAprilMayJuneJulyAugustSeptemberOctoberNovemberDecember
21101199999999999
350644444444444
Sheet1
Cell Formulas
RangeFormula
B2:B3B2=A2-SUM(C2:M2)
C2:M3C2=INT($A2/12)
Hi,

This works great but it front loads the year heavily during different numbers.

If I use 80, this is the distribution:

80​
14​
6​
6​
6​
6​
6​
6​
6​
6​
6​
6​
6​

Is there a way to make that more even?
 
Upvote 0
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.
 
Upvote 0
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.
I must have screwed something up when I pasted it, now it works again. Apologies!
 
Upvote 0
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.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,636
Latest member
laura12345

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