Moving to the next cell when the value in the previous cell is reached

typody

New Member
Joined
Aug 20, 2021
Messages
11
Office Version
  1. 365
Platform
  1. Windows
Hi,

I am trying to batch users for a migration, and I want to create a formula that assigns these batches automatically based on batch size. Once the batch size is reached the batch value will change to the next batch, 1,2,3 etc etc

For example

AO Migration Schedule v1.xlsm
ABCDEFGHIJ
4Early Adopters
5Date13-Nov15-Nov26-Nov27-Nov28-Nov
6Batch12345
7TeamSizeBatch Size5102050150Running TotalBatch Number
8Team 1111
9Team 2231
10Team 3362
11Team 44102
12Team 55153
13Team 66213
14Team 77283
15Team 88364
16Team 99454
17Team 1010554
18Team 1111664
19Team 1212784
20Team 1313915
21Team 14141055
22Team 15151205
23Team 16161365
24Team 17171535
25Team 18181715
26Team 19191905
27Team 20202105
28Team 21212315
Sheet1
Cell Formulas
RangeFormula
I8I8=B8
I9:I28I9=SUM($B$8:B9)


Here I have manually added the batch number but I would like it to auto increment when the number of moves exceeds the previous batch capacity. Does that makes sense? I hope so.
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
24-08-21 Exp.xlsx
ABCDEFGHIJK
612345
7teamsize5102050150Running Total
8Team1111
9Team 2231
10Team3362
11Team44102
12Team55152
13Team66213
14Team77283
15Team88363
16Team99453
17Team1010554
18Team1111664
19Team1212784
20Team1313914
Sheet1
Cell Formulas
RangeFormula
J8J8=B8
K8:K20K8=INDEX(D$6:H$6,MATCH((J8+4),$D$7:$H$7,1))
J9:J20J9=SUM($B$8:B9)
 
Upvote 0
well that turned out easier that I expected. Thanks for the help. As usual I was making things far to complex
 
Upvote 0
Quick question. What is the +4 in the formula used for? I am just trying to recreate it on a larger scale.
 
Upvote 0
It looks like things go wrong when the batch sizes are in double (or triple) figures
 
Upvote 0
How about
+Fluff 1.xlsm
ABCDEFGHIJ
1
2
3
4Early Adopters
5Date13/11/202115/11/202126/11/202127/11/202128/11/2021
6Batch12345
7TeamSizeBatch Size5102050150xBatch Number
8Team 11 1
9Team 22 1
10Team 33x2
11Team 44 2
12Team 55x3
13Team 66 3
14Team 77 3
15Team 88x4
16Team 99 4
17Team 1010 4
18Team 1111 4
19Team 1212 4
20Team 1313x5
21Team 1414 5
22Team 1515 5
23Team 1616 5
24Team 1717 5
25Team 1818 5
26Team 1919 5
27Team 2020 5
28Team 2118 5
Lists
Cell Formulas
RangeFormula
I8:I28I8=IF(SUM(INDEX(B$1:B8,LOOKUP(2,1/(I$7:I7="x"),ROW(I$7:I8))):B8)>INDEX($D$7:$H$7,COUNTIFS(I$7:I7,"x")),"x","")
J8:J28J8=INDEX($D$6:$H$6,COUNTIFS(I$7:I8,"x"))
 
Upvote 0
Cheers, I will try that one. Seems complicated though, might take me a bit to figure out how it works :)
 
Upvote 0

Forum statistics

Threads
1,214,942
Messages
6,122,366
Members
449,080
Latest member
Armadillos

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