Loader/Pallet list: How to organise quantities to a particular location.

Mars reject

New Member
Joined
Feb 8, 2022
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hi,
I have been stuck for quite some time trying to figure this out. Essentially there is a pallet which needs to be loaded up with metal blanks to be machined by automation. The pallet has 4 rows and 24 spaces in each row. The first will start on row 1, group 1. If there are 4 types of this tool needed to be made then the next set will start at row 1, group 5 etc.

The part I'm struggling with is setting this up so that by only entering the quantity of the tools it adds the locations of them automatically. I'm particularly struggling with the last space so once it has been used the row is now 2 in the table and the rest carry over. So for example if there are 4 blanks which start at row 1, group 23 then it carries over the pair so rather than a new pair starting at row 2 group 1, it will instead start at row 2, group 3.

I hope I have explained this ok. I have attached a screenshot of the spreadsheet which I'd like to the locations update automatically rather than typing them in. In red are the rows and groups (locations and the part I'm trying to get to update automatically) and in blue are the quantities (which the user inputs, and the row/group columns update accordingly).

Thank you in advance for any help on this!
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
No screenshot was attached so not entirely sure what you're going for. Maybe:

Book2
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACAD
1ToolQtyRunning TotalSlot1Slot2Slot3Slot4Slot5Slot6Slot7Slot8Slot9Slot10Slot11Slot12Slot13Slot14Slot15Slot16Slot17Slot18Slot19Slot20Slot21Slot22Slot23Slot24
2Tool144Row1Tool1Tool1Tool1Tool1Tool2Tool2Tool2Tool2Tool2Tool3Tool3Tool3Tool3Tool3Tool3Tool4Tool4Tool4Tool4Tool4Tool4Tool4Tool5Tool5
3Tool259Row2Tool5Tool6Tool6Tool6Tool6Tool7Tool7Tool7Tool7Tool7Tool8Tool8Tool8Tool8Tool8Tool8Tool9Tool9Tool10Tool10Tool10Tool11Tool11Tool11
4Tool3615Row3Tool11Tool12Tool12Tool12Tool12Tool12Tool13Tool13Tool13Tool13Tool13Tool13Tool14Tool14Tool15Tool15Tool15Tool16Tool16Tool16Tool16Tool17Tool17Tool17
5Tool4722Row4Tool17Tool17Tool18Tool18Tool18Tool18Tool18Tool18Tool19Tool19Tool19Tool19Tool19Tool19Tool19Tool20Tool20Tool20Tool20Tool20Tool20Tool20
6Tool5325
7Tool6429
8Tool7534
9Tool8640
10Tool9242
11Tool10345
12Tool11449
13Tool12554
14Tool13660
15Tool14262
16Tool15365
17Tool16469
18Tool17574
19Tool18680
20Tool19787
21Tool20794
22Tool219103
23Tool2210113
24Tool2311124
25
Sheet3
Cell Formulas
RangeFormula
F2:AC5F2=LET(m,XLOOKUP(24*(ROW(F2:AC5)-2)+COLUMN(F2:AC5)-5,C2:C24,A2:A24,,1),IF(m=XLOOKUP(97,C2:C24,A2:A24,,1), "",m))
C2C2=B2
C3:C24C3=B3+C2
Dynamic array formulas.
 
Upvote 0
No screenshot was attached so not entirely sure what you're going for. Maybe:

Book2
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACAD
1ToolQtyRunning TotalSlot1Slot2Slot3Slot4Slot5Slot6Slot7Slot8Slot9Slot10Slot11Slot12Slot13Slot14Slot15Slot16Slot17Slot18Slot19Slot20Slot21Slot22Slot23Slot24
2Tool144Row1Tool1Tool1Tool1Tool1Tool2Tool2Tool2Tool2Tool2Tool3Tool3Tool3Tool3Tool3Tool3Tool4Tool4Tool4Tool4Tool4Tool4Tool4Tool5Tool5
3Tool259Row2Tool5Tool6Tool6Tool6Tool6Tool7Tool7Tool7Tool7Tool7Tool8Tool8Tool8Tool8Tool8Tool8Tool9Tool9Tool10Tool10Tool10Tool11Tool11Tool11
4Tool3615Row3Tool11Tool12Tool12Tool12Tool12Tool12Tool13Tool13Tool13Tool13Tool13Tool13Tool14Tool14Tool15Tool15Tool15Tool16Tool16Tool16Tool16Tool17Tool17Tool17
5Tool4722Row4Tool17Tool17Tool18Tool18Tool18Tool18Tool18Tool18Tool19Tool19Tool19Tool19Tool19Tool19Tool19Tool20Tool20Tool20Tool20Tool20Tool20Tool20
6Tool5325
7Tool6429
8Tool7534
9Tool8640
10Tool9242
11Tool10345
12Tool11449
13Tool12554
14Tool13660
15Tool14262
16Tool15365
17Tool16469
18Tool17574
19Tool18680
20Tool19787
21Tool20794
22Tool219103
23Tool2210113
24Tool2311124
25
Sheet3
Cell Formulas
RangeFormula
F2:AC5F2=LET(m,XLOOKUP(24*(ROW(F2:AC5)-2)+COLUMN(F2:AC5)-5,C2:C24,A2:A24,,1),IF(m=XLOOKUP(97,C2:C24,A2:A24,,1), "",m))
C2C2=B2
C3:C24C3=B3+C2
Dynamic array formulas.
Hi thank you for replying. I'll try uploading the screenshot again, I am uploading from mobile so that could be why. I had a look into the XLOOKUP and YLOOKUP formulas but wasn't entirely sure how they worked. Would you be able to explain them? Never used them before.
No screenshot was attached so not entirely sure what you're going for. Maybe:

Book2
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACAD
1ToolQtyRunning TotalSlot1Slot2Slot3Slot4Slot5Slot6Slot7Slot8Slot9Slot10Slot11Slot12Slot13Slot14Slot15Slot16Slot17Slot18Slot19Slot20Slot21Slot22Slot23Slot24
2Tool144Row1Tool1Tool1Tool1Tool1Tool2Tool2Tool2Tool2Tool2Tool3Tool3Tool3Tool3Tool3Tool3Tool4Tool4Tool4Tool4Tool4Tool4Tool4Tool5Tool5
3Tool259Row2Tool5Tool6Tool6Tool6Tool6Tool7Tool7Tool7Tool7Tool7Tool8Tool8Tool8Tool8Tool8Tool8Tool9Tool9Tool10Tool10Tool10Tool11Tool11Tool11
4Tool3615Row3Tool11Tool12Tool12Tool12Tool12Tool12Tool13Tool13Tool13Tool13Tool13Tool13Tool14Tool14Tool15Tool15Tool15Tool16Tool16Tool16Tool16Tool17Tool17Tool17
5Tool4722Row4Tool17Tool17Tool18Tool18Tool18Tool18Tool18Tool18Tool19Tool19Tool19Tool19Tool19Tool19Tool19Tool20Tool20Tool20Tool20Tool20Tool20Tool20
6Tool5325
7Tool6429
8Tool7534
9Tool8640
10Tool9242
11Tool10345
12Tool11449
13Tool12554
14Tool13660
15Tool14262
16Tool15365
17Tool16469
18Tool17574
19Tool18680
20Tool19787
21Tool20794
22Tool219103
23Tool2210113
24Tool2311124
25
Sheet3
Cell Formulas
RangeFormula
F2:AC5F2=LET(m,XLOOKUP(24*(ROW(F2:AC5)-2)+COLUMN(F2:AC5)-5,C2:C24,A2:A24,,1),IF(m=XLOOKUP(97,C2:C24,A2:A24,,1), "",m))
C2C2=B2
C3:C24C3=B3+C2
Dynamic array formulas.
Hi thank you for your reply! Yes that's more or less it!
No screenshot was attached so not entirely sure what you're going for. Maybe:

Book2
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACAD
1ToolQtyRunning TotalSlot1Slot2Slot3Slot4Slot5Slot6Slot7Slot8Slot9Slot10Slot11Slot12Slot13Slot14Slot15Slot16Slot17Slot18Slot19Slot20Slot21Slot22Slot23Slot24
2Tool144Row1Tool1Tool1Tool1Tool1Tool2Tool2Tool2Tool2Tool2Tool3Tool3Tool3Tool3Tool3Tool3Tool4Tool4Tool4Tool4Tool4Tool4Tool4Tool5Tool5
3Tool259Row2Tool5Tool6Tool6Tool6Tool6Tool7Tool7Tool7Tool7Tool7Tool8Tool8Tool8Tool8Tool8Tool8Tool9Tool9Tool10Tool10Tool10Tool11Tool11Tool11
4Tool3615Row3Tool11Tool12Tool12Tool12Tool12Tool12Tool13Tool13Tool13Tool13Tool13Tool13Tool14Tool14Tool15Tool15Tool15Tool16Tool16Tool16Tool16Tool17Tool17Tool17
5Tool4722Row4Tool17Tool17Tool18Tool18Tool18Tool18Tool18Tool18Tool19Tool19Tool19Tool19Tool19Tool19Tool19Tool20Tool20Tool20Tool20Tool20Tool20Tool20
6Tool5325
7Tool6429
8Tool7534
9Tool8640
10Tool9242
11Tool10345
12Tool11449
13Tool12554
14Tool13660
15Tool14262
16Tool15365
17Tool16469
18Tool17574
19Tool18680
20Tool19787
21Tool20794
22Tool219103
23Tool2210113
24Tool2311124
25
Sheet3
Cell Formulas
RangeFormula
F2:AC5F2=LET(m,XLOOKUP(24*(ROW(F2:AC5)-2)+COLUMN(F2:AC5)-5,C2:C24,A2:A24,,1),IF(m=XLOOKUP(97,C2:C24,A2:A24,,1), "",m))
C2C2=B2
C3:C24C3=B3+C2
Dynamic array formulas.
I think screenshot file was too large to upload which is why there was no attachment.
Except the rows are along the top and the slots going down. How
No screenshot was attached so not entirely sure what you're going for. Maybe:

Book2
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACAD
1ToolQtyRunning TotalSlot1Slot2Slot3Slot4Slot5Slot6Slot7Slot8Slot9Slot10Slot11Slot12Slot13Slot14Slot15Slot16Slot17Slot18Slot19Slot20Slot21Slot22Slot23Slot24
2Tool144Row1Tool1Tool1Tool1Tool1Tool2Tool2Tool2Tool2Tool2Tool3Tool3Tool3Tool3Tool3Tool3Tool4Tool4Tool4Tool4Tool4Tool4Tool4Tool5Tool5
3Tool259Row2Tool5Tool6Tool6Tool6Tool6Tool7Tool7Tool7Tool7Tool7Tool8Tool8Tool8Tool8Tool8Tool8Tool9Tool9Tool10Tool10Tool10Tool11Tool11Tool11
4Tool3615Row3Tool11Tool12Tool12Tool12Tool12Tool12Tool13Tool13Tool13Tool13Tool13Tool13Tool14Tool14Tool15Tool15Tool15Tool16Tool16Tool16Tool16Tool17Tool17Tool17
5Tool4722Row4Tool17Tool17Tool18Tool18Tool18Tool18Tool18Tool18Tool19Tool19Tool19Tool19Tool19Tool19Tool19Tool20Tool20Tool20Tool20Tool20Tool20Tool20
6Tool5325
7Tool6429
8Tool7534
9Tool8640
10Tool9242
11Tool10345
12Tool11449
13Tool12554
14Tool13660
15Tool14262
16Tool15365
17Tool16469
18Tool17574
19Tool18680
20Tool19787
21Tool20794
22Tool219103
23Tool2210113
24Tool2311124
25
Sheet3
Cell Formulas
RangeFormula
F2:AC5F2=LET(m,XLOOKUP(24*(ROW(F2:AC5)-2)+COLUMN(F2:AC5)-5,C2:C24,A2:A24,,1),IF(m=XLOOKUP(97,C2:C24,A2:A24,,1), "",m))
C2C2=B2
C3:C24C3=B3+C2
Dynamic array formulas.
Hi thank you for your reply! I think screenshot file was too large to upload which is why there was no attachment. That is more or less it! Except the slots go down and the rows across the top. How would you go about changing the formulas for this? And would you also mind briefly explaining them? I've never seen a LET formula before!
 
Upvote 0
LET is a function that assigns formulas or values to variable names to make formula writing more concise (among other things). So the variable m is getting assigned that long ugly XLOOKUP,COLUMN,ROW formula. In the final argument of LET the resulting calculation is performed typically using the variables defined in the previous parameters. m is used twice in the final calc so I would have had to repeat the long ugly formula if I didn't use LET.

Note in the example the final two slots are empty since Tool21 has qty of 9 but only two slots remain. If you want two Tool21s in the final two slots the formula would need a minor adjustment (also wouldn't have a repeated formula and so no need for LET function).

Also note that the formula is sensitive to where it is placed and the -6 and -1 would need to be changed if you put anywhere but cell F2. F is the 6th column, driving the -6. If you put it in column H you would use -8. It is in the second row, if you had it in row 5 you would use -4 instead of -1. If you think its position may change because of adding or deleting columns later, I would suggest naming the range (cell) that the formula goes in (say call it pallet) and change formula to:

Excel Formula:
=LET(m,XLOOKUP(24*(COLUMN(F2:I255)-COLUMN(pallet)+ROW(F2:I25)-ROW(pallet) +1,C2:C24,A2:A24,,1),IF(m=XLOOKUP(97,C2:C24,A2:A24,,1), "",m))



Book2
ABCDEFGHIJ
1ToolQtyRunning TotalRow1Row2Row3Row4
2Tool144Slot1Tool1Tool5Tool11Tool17
3Tool259Slot2Tool1Tool6Tool12Tool17
4Tool3615Slot3Tool1Tool6Tool12Tool18
5Tool4722Slot4Tool1Tool6Tool12Tool18
6Tool5325Slot5Tool2Tool6Tool12Tool18
7Tool6429Slot6Tool2Tool7Tool12Tool18
8Tool7534Slot7Tool2Tool7Tool13Tool18
9Tool8640Slot8Tool2Tool7Tool13Tool18
10Tool9242Slot9Tool2Tool7Tool13Tool19
11Tool10345Slot10Tool3Tool7Tool13Tool19
12Tool11449Slot11Tool3Tool8Tool13Tool19
13Tool12554Slot12Tool3Tool8Tool13Tool19
14Tool13660Slot13Tool3Tool8Tool14Tool19
15Tool14262Slot14Tool3Tool8Tool14Tool19
16Tool15365Slot15Tool3Tool8Tool15Tool19
17Tool16469Slot16Tool4Tool8Tool15Tool20
18Tool17574Slot17Tool4Tool9Tool15Tool20
19Tool18680Slot18Tool4Tool9Tool16Tool20
20Tool19787Slot19Tool4Tool10Tool16Tool20
21Tool20794Slot20Tool4Tool10Tool16Tool20
22Tool219103Slot21Tool4Tool10Tool16Tool20
23Tool2210113Slot22Tool4Tool11Tool17Tool20
24Tool2311124Slot23Tool5Tool11Tool17
25Slot24Tool5Tool11Tool17
26
Sheet3
Cell Formulas
RangeFormula
F2:I25F2=LET(m,XLOOKUP(24*(COLUMN(F2:I255)-6)+ROW(F2:I25)-1,C2:C24,A2:A24,,1),IF(m=XLOOKUP(97,C2:C24,A2:A24,,1), "",m))
C2C2=B2
C3:C24C3=B3+C2
Dynamic array formulas.
 
Upvote 0
Solution
Hi thank you for replying. I'll try uploading the screenshot again, I am uploading from mobile so that could be why. I had a look into the XLOOKUP and YLOOKUP formulas but wasn't entirely sure how they worked. Would you be able to explain them? Never used them before.

Hi thank you for your reply! Yes that's more or less it!

I think screenshot file was too large to upload which is why there was no attachment.
Except the rows are along the top and the slots going down. How

Hi thank you for your reply! I think screenshot file was too large to upload which is why there was no attachment. That is more or less it! Except the slots go down and the rows across the top. How would you go about changing the formulas for this? And would you also mind briefly explaining them? I've never seen a LET formula before!

LET is a function that assigns formulas or values to variable names to make formula writing more concise (among other things). So the variable m is getting assigned that long ugly XLOOKUP,COLUMN,ROW formula. In the final argument of LET the resulting calculation is performed typically using the variables defined in the previous parameters. m is used twice in the final calc so I would have had to repeat the long ugly formula if I didn't use LET.

Note in the example the final two slots are empty since Tool21 has qty of 9 but only two slots remain. If you want two Tool21s in the final two slots the formula would need a minor adjustment (also wouldn't have a repeated formula and so no need for LET function).

Also note that the formula is sensitive to where it is placed and the -6 and -1 would need to be changed if you put anywhere but cell F2. F is the 6th column, driving the -6. If you put it in column H you would use -8. It is in the second row, if you had it in row 5 you would use -4 instead of -1. If you think its position may change because of adding or deleting columns later, I would suggest naming the range (cell) that the formula goes in (say call it pallet) and change formula to:

Excel Formula:
=LET(m,XLOOKUP(24*(COLUMN(F2:I255)-COLUMN(pallet)+ROW(F2:I25)-ROW(pallet) +1,C2:C24,A2:A24,,1),IF(m=XLOOKUP(97,C2:C24,A2:A24,,1), "",m))



Book2
ABCDEFGHIJ
1ToolQtyRunning TotalRow1Row2Row3Row4
2Tool144Slot1Tool1Tool5Tool11Tool17
3Tool259Slot2Tool1Tool6Tool12Tool17
4Tool3615Slot3Tool1Tool6Tool12Tool18
5Tool4722Slot4Tool1Tool6Tool12Tool18
6Tool5325Slot5Tool2Tool6Tool12Tool18
7Tool6429Slot6Tool2Tool7Tool12Tool18
8Tool7534Slot7Tool2Tool7Tool13Tool18
9Tool8640Slot8Tool2Tool7Tool13Tool18
10Tool9242Slot9Tool2Tool7Tool13Tool19
11Tool10345Slot10Tool3Tool7Tool13Tool19
12Tool11449Slot11Tool3Tool8Tool13Tool19
13Tool12554Slot12Tool3Tool8Tool13Tool19
14Tool13660Slot13Tool3Tool8Tool14Tool19
15Tool14262Slot14Tool3Tool8Tool14Tool19
16Tool15365Slot15Tool3Tool8Tool15Tool19
17Tool16469Slot16Tool4Tool8Tool15Tool20
18Tool17574Slot17Tool4Tool9Tool15Tool20
19Tool18680Slot18Tool4Tool9Tool16Tool20
20Tool19787Slot19Tool4Tool10Tool16Tool20
21Tool20794Slot20Tool4Tool10Tool16Tool20
22Tool219103Slot21Tool4Tool10Tool16Tool20
23Tool2210113Slot22Tool4Tool11Tool17Tool20
24Tool2311124Slot23Tool5Tool11Tool17
25Slot24Tool5Tool11Tool17
26
Sheet3
Cell Formulas
RangeFormula
F2:I25F2=LET(m,XLOOKUP(24*(COLUMN(F2:I255)-6)+ROW(F2:I25)-1,C2:C24,A2:A24,,1),IF(m=XLOOKUP(97,C2:C24,A2:A24,,1), "",m))
C2C2=B2
C3:C24C3=B3+C2
Dynamic array formulas.
Thank you for explaining this! I was unsure on how to do any of this but was convinced it could be done! I'm still a bit of a rookie with Excel but it never ceases to amaze me just how powerful it is! So essentially you can use LET as something you can use to save a lot of time with long formula writing and with changing parameters? Will have to note this down and save this thread for future reference!

Thanks again for the help with solving my problem as well as bettering my understanding with the powers of excel!
 
Upvote 0

Forum statistics

Threads
1,214,834
Messages
6,121,876
Members
449,056
Latest member
ruhulaminappu

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