Total Amount divided into Different Sequences using 4 slot only in each sequences

Yvan_new1976

New Member
Joined
Aug 1, 2021
Messages
2
Office Version
  1. 2019
Platform
  1. Windows
Please help on how this was done.

There were 5 different Slots with given amounts on the right (F2:G6), and it was distributed in 5 sequences as shown below. In each sequences I can only use 4 slots and each amount must be equal.

I mean is if B2:B21 Slot is fixed, How would I calculate the amount in C2:C21 if it is left blank??
The result amount must be the same in D2:D21.


I already found one thing that:
Sequence 1 = 4,160
Seq 2 = 5,784
Seq 3= 3,763
Seq 4 = 5,270
Seq 5 = 5,981

Total = 24,958 which is exactly 25% of 99,832.

But What if those Sequences amount is empty/blank??
How do I know that is the number to put into each Sequences?? Like how do I know Sequence 1=4160??, etc...


This is driving me crazy.. Please give some advice..

Thanks a lot.

Solving Problem.JPG
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Hi and welcome to MrExcel,

Correct me if my assumption is incorrect.

If the given is "5 different Slots with given amounts" combined with "only use 4 slots and each amount must be equal" and "Slot is fixed"
My assumption is the slot 1 amount in sequence 1 should be different from the slot 1 amount in sequence 2 exactly like your example.
Although in your example the distribution of the amount of slot 1 over all sequences does not come back to the total mentioned in G2.

This what i came up with:
slot size.xlsx
ABCDEFGHIJKLMNO
1
21149401189771,2,3,4
3349403196881,2,3,5
4549405211951,2,4,5
57416049407191741,3,4,5
62150419207982,3,4,5
73504199832
855041
9957845041
10314915
1134915
1274915
13937634915
14415009
1555009Slot →13579Total SlotPer Seq.Per Slot/Seq
1675009Sequence ↓ 11897719688211951917479034197594940
1795270500921897719688211952079880658201655041
1853505331897719688191742079878637196594915
195505341897721195191742079880144200365009
207505351968821195191742079880855202145053
21959815053189771968821195191742079899832
229983299832TRUE
Sheet1
Cell Formulas
RangeFormula
H7,N21H7=SUM(H2:H6)
M16:M20M16=SUM(H16:L16)
N16:O20O16=N16/4
H21:L21H21=SUM(H16:H20)/4
D2,D6,D10,D14,D18D2=SUMPRODUCT((IF(ISNUMBER(MATCH($G$2:$G$6,B2:B5,0)),$G$2:$G$6,99)=$G$2:$G$6)*($H$2:$H$6))/16
D3,D7,D11,D15,D19D3=SUMPRODUCT((IF(ISNUMBER(MATCH($G$2:$G$6,B2:B5,0)),$G$2:$G$6,99)=$G$2:$G$6)*($H$2:$H$6))/16
D4,D8,D12,D16,D20D4=SUMPRODUCT((IF(ISNUMBER(MATCH($G$2:$G$6,B2:B5,0)),$G$2:$G$6,99)=$G$2:$G$6)*($H$2:$H$6))/16
D5,D9,D13,D17,D21D5=SUMPRODUCT((IF(ISNUMBER(MATCH($G$2:$G$6,B2:B5,0)),$G$2:$G$6,99)=$G$2:$G$6)*($H$2:$H$6))/16
D22D22=SUM(D2:D21)
L22L22=SUM(H21:L21)
M22M22=L22=N21


Hope this helps.
 
Upvote 0
Hello jorismoerings.

Thanks you for trying to Solve my problem. Unfortunately, I have to match the total Slot amount because it was fixed amount and should be the one distributed.

But already found out which one to use, Unexpectedly it could be Solve using a matrix equation using Excel function MMULT and MINVERSE.

Thanks and best regards.
 
Upvote 0
Glad to hear you got the solution.

Do you mind posting about your solution in a bit more detail, like the solution formula? Then it is perfectly fine to mark your post as the solution to help future readers.
 
Upvote 0

Forum statistics

Threads
1,214,624
Messages
6,120,591
Members
448,973
Latest member
ksonnia

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