Excel - auto calculate pallets based on qty
So, I been thinking how to program this...
There is product A, has two different pallet quantities (Qty 8 & qty 10).
When customer orders (ex: 72 qty of product A), I have to manually divide it as 4 pallets (10 qty/ea) and 4 pallets (8 qty/ea).
I want to make a chart on excel such that, whenever I put a ordered qty, excel will automatically calculate how many pallets it will be and how the qty on each pallet will be.
Anybody know how to do this?
microsoft-excel-2010
add a comment |
So, I been thinking how to program this...
There is product A, has two different pallet quantities (Qty 8 & qty 10).
When customer orders (ex: 72 qty of product A), I have to manually divide it as 4 pallets (10 qty/ea) and 4 pallets (8 qty/ea).
I want to make a chart on excel such that, whenever I put a ordered qty, excel will automatically calculate how many pallets it will be and how the qty on each pallet will be.
Anybody know how to do this?
microsoft-excel-2010
1
Are the products offered only in quantities that can be filled by combinations of whole pallets? If not, there will be partial pallets. What rules do you follow to decide on pallet loading if it can't be filled by whole pallets?
– fixer1234
Jan 22 '15 at 0:52
Lookup "Solver Excel" and research. I have never heard of it, but it looks to be the ticket to your solution. You have a formula 10x + 8y = z Where x = number of qty 10 pallets, y = number of qty 8 pallets, and z = total qty. Use solver to solve it.
– Damon
Jan 22 '15 at 4:32
add a comment |
So, I been thinking how to program this...
There is product A, has two different pallet quantities (Qty 8 & qty 10).
When customer orders (ex: 72 qty of product A), I have to manually divide it as 4 pallets (10 qty/ea) and 4 pallets (8 qty/ea).
I want to make a chart on excel such that, whenever I put a ordered qty, excel will automatically calculate how many pallets it will be and how the qty on each pallet will be.
Anybody know how to do this?
microsoft-excel-2010
So, I been thinking how to program this...
There is product A, has two different pallet quantities (Qty 8 & qty 10).
When customer orders (ex: 72 qty of product A), I have to manually divide it as 4 pallets (10 qty/ea) and 4 pallets (8 qty/ea).
I want to make a chart on excel such that, whenever I put a ordered qty, excel will automatically calculate how many pallets it will be and how the qty on each pallet will be.
Anybody know how to do this?
microsoft-excel-2010
microsoft-excel-2010
edited Mar 22 '16 at 17:58
DavidPostill♦
106k26228263
106k26228263
asked Jan 22 '15 at 0:45
Jane LeeJane Lee
111
111
1
Are the products offered only in quantities that can be filled by combinations of whole pallets? If not, there will be partial pallets. What rules do you follow to decide on pallet loading if it can't be filled by whole pallets?
– fixer1234
Jan 22 '15 at 0:52
Lookup "Solver Excel" and research. I have never heard of it, but it looks to be the ticket to your solution. You have a formula 10x + 8y = z Where x = number of qty 10 pallets, y = number of qty 8 pallets, and z = total qty. Use solver to solve it.
– Damon
Jan 22 '15 at 4:32
add a comment |
1
Are the products offered only in quantities that can be filled by combinations of whole pallets? If not, there will be partial pallets. What rules do you follow to decide on pallet loading if it can't be filled by whole pallets?
– fixer1234
Jan 22 '15 at 0:52
Lookup "Solver Excel" and research. I have never heard of it, but it looks to be the ticket to your solution. You have a formula 10x + 8y = z Where x = number of qty 10 pallets, y = number of qty 8 pallets, and z = total qty. Use solver to solve it.
– Damon
Jan 22 '15 at 4:32
1
1
Are the products offered only in quantities that can be filled by combinations of whole pallets? If not, there will be partial pallets. What rules do you follow to decide on pallet loading if it can't be filled by whole pallets?
– fixer1234
Jan 22 '15 at 0:52
Are the products offered only in quantities that can be filled by combinations of whole pallets? If not, there will be partial pallets. What rules do you follow to decide on pallet loading if it can't be filled by whole pallets?
– fixer1234
Jan 22 '15 at 0:52
Lookup "Solver Excel" and research. I have never heard of it, but it looks to be the ticket to your solution. You have a formula 10x + 8y = z Where x = number of qty 10 pallets, y = number of qty 8 pallets, and z = total qty. Use solver to solve it.
– Damon
Jan 22 '15 at 4:32
Lookup "Solver Excel" and research. I have never heard of it, but it looks to be the ticket to your solution. You have a formula 10x + 8y = z Where x = number of qty 10 pallets, y = number of qty 8 pallets, and z = total qty. Use solver to solve it.
– Damon
Jan 22 '15 at 4:32
add a comment |
2 Answers
2
active
oldest
votes
It's pure mathematics actually:
10x + 8y = z where z is your total desired qty
If you want to know whether you are going to have full pallets or not, I suggest searching the greatest common factor of the above equation, which is 2 in this case.
Resulting: if z/2 = integer and it is positive then you can use full pallets.
If you want to know how much pallets to use from each you have to do follwing:
increment y by 1 as long as you don't have a positive integer for x so:
y = y + 1
resulting following equation for x:
x = (z-8y)/10 where z is your total amount and y is the auto incremented number
combined with the y quotation from above:
for (y = 0; x = positive and integer; y = y + 1) {
x = (z-8y)/10;
print x;
print y;
}
// don't start this loop if z/2 isn't integer and positive
on the other hand when you want to open pallets randomly: example
10x + 8y = 72
divide your amount through the highest amount per pallet and take divide the remainder from the smallest amount per pallet
72 = 10x => x= 7.2
the integer number here is 7, so take 7 pallets of 10 and take 2 units of a pallet from 8 units.
If the remainder of the quotient >= 8 than you can take at least 1 full pallet of 8.
Implementing this in Excel will cost you a lot of programming and like suggested in the comments, you would better search after the "Solver Excel" add on, which I also haven't used yet.
add a comment |
Try this. Assumptions: 1) you want to ship the fewest pallets. 2) You want to ship the smallest quantity >= to the requested amount.
First, jumping ahead to my final result:
A B C
1 10 8
2 72 7 1
The requested quantity, 72 is in A2, and the pallet sizes in B1 and C1.
B2 contains: =FLOOR(A2/B1,1)
(the most whole large pallets without going over request)
C2 contains: =CEILING(MOD(A2,B1)/C1,1)
(small pallets needed to fill the remainder, rounding up to a whole pallet)
With some slightly nontrivial hackery, this can be extended to more than two pallet size options.
I suspect that for the same total number of pallets, full pallets are preferable to partial ones (handling/stacking, etc.), especially ones with just a couple of units. The OP's solution is also 8 pallets, but all full.
– fixer1234
Jan 22 '15 at 22:07
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f867839%2fexcel-auto-calculate-pallets-based-on-qty%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
It's pure mathematics actually:
10x + 8y = z where z is your total desired qty
If you want to know whether you are going to have full pallets or not, I suggest searching the greatest common factor of the above equation, which is 2 in this case.
Resulting: if z/2 = integer and it is positive then you can use full pallets.
If you want to know how much pallets to use from each you have to do follwing:
increment y by 1 as long as you don't have a positive integer for x so:
y = y + 1
resulting following equation for x:
x = (z-8y)/10 where z is your total amount and y is the auto incremented number
combined with the y quotation from above:
for (y = 0; x = positive and integer; y = y + 1) {
x = (z-8y)/10;
print x;
print y;
}
// don't start this loop if z/2 isn't integer and positive
on the other hand when you want to open pallets randomly: example
10x + 8y = 72
divide your amount through the highest amount per pallet and take divide the remainder from the smallest amount per pallet
72 = 10x => x= 7.2
the integer number here is 7, so take 7 pallets of 10 and take 2 units of a pallet from 8 units.
If the remainder of the quotient >= 8 than you can take at least 1 full pallet of 8.
Implementing this in Excel will cost you a lot of programming and like suggested in the comments, you would better search after the "Solver Excel" add on, which I also haven't used yet.
add a comment |
It's pure mathematics actually:
10x + 8y = z where z is your total desired qty
If you want to know whether you are going to have full pallets or not, I suggest searching the greatest common factor of the above equation, which is 2 in this case.
Resulting: if z/2 = integer and it is positive then you can use full pallets.
If you want to know how much pallets to use from each you have to do follwing:
increment y by 1 as long as you don't have a positive integer for x so:
y = y + 1
resulting following equation for x:
x = (z-8y)/10 where z is your total amount and y is the auto incremented number
combined with the y quotation from above:
for (y = 0; x = positive and integer; y = y + 1) {
x = (z-8y)/10;
print x;
print y;
}
// don't start this loop if z/2 isn't integer and positive
on the other hand when you want to open pallets randomly: example
10x + 8y = 72
divide your amount through the highest amount per pallet and take divide the remainder from the smallest amount per pallet
72 = 10x => x= 7.2
the integer number here is 7, so take 7 pallets of 10 and take 2 units of a pallet from 8 units.
If the remainder of the quotient >= 8 than you can take at least 1 full pallet of 8.
Implementing this in Excel will cost you a lot of programming and like suggested in the comments, you would better search after the "Solver Excel" add on, which I also haven't used yet.
add a comment |
It's pure mathematics actually:
10x + 8y = z where z is your total desired qty
If you want to know whether you are going to have full pallets or not, I suggest searching the greatest common factor of the above equation, which is 2 in this case.
Resulting: if z/2 = integer and it is positive then you can use full pallets.
If you want to know how much pallets to use from each you have to do follwing:
increment y by 1 as long as you don't have a positive integer for x so:
y = y + 1
resulting following equation for x:
x = (z-8y)/10 where z is your total amount and y is the auto incremented number
combined with the y quotation from above:
for (y = 0; x = positive and integer; y = y + 1) {
x = (z-8y)/10;
print x;
print y;
}
// don't start this loop if z/2 isn't integer and positive
on the other hand when you want to open pallets randomly: example
10x + 8y = 72
divide your amount through the highest amount per pallet and take divide the remainder from the smallest amount per pallet
72 = 10x => x= 7.2
the integer number here is 7, so take 7 pallets of 10 and take 2 units of a pallet from 8 units.
If the remainder of the quotient >= 8 than you can take at least 1 full pallet of 8.
Implementing this in Excel will cost you a lot of programming and like suggested in the comments, you would better search after the "Solver Excel" add on, which I also haven't used yet.
It's pure mathematics actually:
10x + 8y = z where z is your total desired qty
If you want to know whether you are going to have full pallets or not, I suggest searching the greatest common factor of the above equation, which is 2 in this case.
Resulting: if z/2 = integer and it is positive then you can use full pallets.
If you want to know how much pallets to use from each you have to do follwing:
increment y by 1 as long as you don't have a positive integer for x so:
y = y + 1
resulting following equation for x:
x = (z-8y)/10 where z is your total amount and y is the auto incremented number
combined with the y quotation from above:
for (y = 0; x = positive and integer; y = y + 1) {
x = (z-8y)/10;
print x;
print y;
}
// don't start this loop if z/2 isn't integer and positive
on the other hand when you want to open pallets randomly: example
10x + 8y = 72
divide your amount through the highest amount per pallet and take divide the remainder from the smallest amount per pallet
72 = 10x => x= 7.2
the integer number here is 7, so take 7 pallets of 10 and take 2 units of a pallet from 8 units.
If the remainder of the quotient >= 8 than you can take at least 1 full pallet of 8.
Implementing this in Excel will cost you a lot of programming and like suggested in the comments, you would better search after the "Solver Excel" add on, which I also haven't used yet.
answered Jan 22 '15 at 15:05
brobkenbrobken
1328
1328
add a comment |
add a comment |
Try this. Assumptions: 1) you want to ship the fewest pallets. 2) You want to ship the smallest quantity >= to the requested amount.
First, jumping ahead to my final result:
A B C
1 10 8
2 72 7 1
The requested quantity, 72 is in A2, and the pallet sizes in B1 and C1.
B2 contains: =FLOOR(A2/B1,1)
(the most whole large pallets without going over request)
C2 contains: =CEILING(MOD(A2,B1)/C1,1)
(small pallets needed to fill the remainder, rounding up to a whole pallet)
With some slightly nontrivial hackery, this can be extended to more than two pallet size options.
I suspect that for the same total number of pallets, full pallets are preferable to partial ones (handling/stacking, etc.), especially ones with just a couple of units. The OP's solution is also 8 pallets, but all full.
– fixer1234
Jan 22 '15 at 22:07
add a comment |
Try this. Assumptions: 1) you want to ship the fewest pallets. 2) You want to ship the smallest quantity >= to the requested amount.
First, jumping ahead to my final result:
A B C
1 10 8
2 72 7 1
The requested quantity, 72 is in A2, and the pallet sizes in B1 and C1.
B2 contains: =FLOOR(A2/B1,1)
(the most whole large pallets without going over request)
C2 contains: =CEILING(MOD(A2,B1)/C1,1)
(small pallets needed to fill the remainder, rounding up to a whole pallet)
With some slightly nontrivial hackery, this can be extended to more than two pallet size options.
I suspect that for the same total number of pallets, full pallets are preferable to partial ones (handling/stacking, etc.), especially ones with just a couple of units. The OP's solution is also 8 pallets, but all full.
– fixer1234
Jan 22 '15 at 22:07
add a comment |
Try this. Assumptions: 1) you want to ship the fewest pallets. 2) You want to ship the smallest quantity >= to the requested amount.
First, jumping ahead to my final result:
A B C
1 10 8
2 72 7 1
The requested quantity, 72 is in A2, and the pallet sizes in B1 and C1.
B2 contains: =FLOOR(A2/B1,1)
(the most whole large pallets without going over request)
C2 contains: =CEILING(MOD(A2,B1)/C1,1)
(small pallets needed to fill the remainder, rounding up to a whole pallet)
With some slightly nontrivial hackery, this can be extended to more than two pallet size options.
Try this. Assumptions: 1) you want to ship the fewest pallets. 2) You want to ship the smallest quantity >= to the requested amount.
First, jumping ahead to my final result:
A B C
1 10 8
2 72 7 1
The requested quantity, 72 is in A2, and the pallet sizes in B1 and C1.
B2 contains: =FLOOR(A2/B1,1)
(the most whole large pallets without going over request)
C2 contains: =CEILING(MOD(A2,B1)/C1,1)
(small pallets needed to fill the remainder, rounding up to a whole pallet)
With some slightly nontrivial hackery, this can be extended to more than two pallet size options.
answered Jan 22 '15 at 15:27
BowlesCRBowlesCR
2,527818
2,527818
I suspect that for the same total number of pallets, full pallets are preferable to partial ones (handling/stacking, etc.), especially ones with just a couple of units. The OP's solution is also 8 pallets, but all full.
– fixer1234
Jan 22 '15 at 22:07
add a comment |
I suspect that for the same total number of pallets, full pallets are preferable to partial ones (handling/stacking, etc.), especially ones with just a couple of units. The OP's solution is also 8 pallets, but all full.
– fixer1234
Jan 22 '15 at 22:07
I suspect that for the same total number of pallets, full pallets are preferable to partial ones (handling/stacking, etc.), especially ones with just a couple of units. The OP's solution is also 8 pallets, but all full.
– fixer1234
Jan 22 '15 at 22:07
I suspect that for the same total number of pallets, full pallets are preferable to partial ones (handling/stacking, etc.), especially ones with just a couple of units. The OP's solution is also 8 pallets, but all full.
– fixer1234
Jan 22 '15 at 22:07
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f867839%2fexcel-auto-calculate-pallets-based-on-qty%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Are the products offered only in quantities that can be filled by combinations of whole pallets? If not, there will be partial pallets. What rules do you follow to decide on pallet loading if it can't be filled by whole pallets?
– fixer1234
Jan 22 '15 at 0:52
Lookup "Solver Excel" and research. I have never heard of it, but it looks to be the ticket to your solution. You have a formula 10x + 8y = z Where x = number of qty 10 pallets, y = number of qty 8 pallets, and z = total qty. Use solver to solve it.
– Damon
Jan 22 '15 at 4:32