Allocating Amounts into Bucket

jasonkch9

New Member
Joined
Nov 28, 2017
Messages
1
Hi There,

Here is the problem:
Say I have 5 inventory of products (liquids):
Jan Feb Mar
Milk 5 10 1
Water 7 8 40
Orange Juice 10 32 3

Now say I have the following containers:
Container 1 - capacity 1
Container 2 - capactiy 3
Container 3 - capacity 4
Container 4 - capacity 5
Container 5 - capacity 10
Container 6 - capacity 10
Container 7 - capacity 20

The products cannot be mixed, and I want to know if I have capacity to hold those products and what percentage each container is to capacity in every month. So I need an excel method to essentially say:

Jan Feb
Container 1 Milk 100%
Container 2 Water 100% Water 100%
Container 3 Milk 100% OJ 50%
Container 4 Water 80% Water 100%
Container 5 OJ 100% Milk 100%
Container 6 OJ 100%
Container 7 OJ 100%

This is a slight math/excel question. Any help would be appreciated. i think the first step is to organize your capacity by smallest to largest, but not sure what's the next step for it to be most efficient calculation.
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
So, you need to find out which size of container to use for each product/month? I visualize this like a coin sorter where each coin drops once a certain size is met. I'm sure there are ways to do this with normal Excel functions, but I'd suggest VBA if this is something that will need repeated

Are you able to change the data around to make a table and run pivot tables off that data? Something like this:
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Liquid[/TD]
[TD]Month[/TD]
[TD]Amount[/TD]
[TD]Container[/TD]
[TD]Fill %[/TD]
[/TR]
[TR]
[TD]Milk[/TD]
[TD]Jan[/TD]
[TD]5[/TD]
[TD]4[/TD]
[TD]100%[/TD]
[/TR]
[TR]
[TD]Water[/TD]
[TD]Jan[/TD]
[TD]7[/TD]
[TD]5[/TD]
[TD]70%[/TD]
[/TR]
[TR]
[TD]Orange Juice[/TD]
[TD]Jan[/TD]
[TD]10[/TD]
[TD]5[/TD]
[TD]100%[/TD]
[/TR]
[TR]
[TD]Milk[/TD]
[TD]Feb[/TD]
[TD]10[/TD]
[TD]5[/TD]
[TD]100%[/TD]
[/TR]
[TR]
[TD]Water[/TD]
[TD]Feb[/TD]
[TD]8[/TD]
[TD]5[/TD]
[TD]80%[/TD]
[/TR]
[TR]
[TD]Orange Juice[/TD]
[TD]Feb[/TD]
[TD]32[/TD]
[TD]-[/TD]
[TD]0%[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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