Tracking individual codes by date and quantity

Vorkosigan

New Member
Joined
Nov 1, 2024
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hello everyone,

long time reader, first time poster. I'm working on a scheduler for a business with a very complicated process, and got stuck on something relatively simple. Somehow, I can't get my head around it.

Production is divided into levels. The last stage, packing, is always Level 1. Then, whatever happens before packing is Level 2 and so on. The scheduler receives the plan via CSV - style list, example below.

Here's the challenge. In order to track all important information between levels, I assign an individual serial code to each row in the CSV. The serial code is [product code]-[date as a number]/[process name]

I want to write a formula that will identify the serial code of any processes that feed into this one.
Here's an example of a plan for one item:


Run RateCodeDateQtyLevel(number)OEEProcessLabourMin DelayMax DelayUPCThis Code
34.0411922/10/2024100180%Packing41241004119-45587/Packing
34.0411923/10/2024100180%Packing41241004119-45588/Packing
3400.0411921/10/20245000280%Spiral8241004119-45586/Spiral
3400.0411922/10/20245000280%Spiral8241004119-45587/Spiral
3400.0411923/10/202410000280%Spiral8241004119-45588/Spiral
3400.0411921/10/202410000375%Rheon5161004119-45586/Rheon
3400.0411923/10/202410000375%Rheon5161004119-45588/Rheon
3400.0411921/10/202410000480%Cookie Mixing41241004119-45586/Cookie Mixing
3400.0411922/10/20245000480%Cookie Mixing41241004119-45587/Cookie Mixing
3400.0411923/10/20245000480%Cookie Mixing41241004119-45588/Cookie Mixing

The table runs from B1, column A is a helper column for something else.
Look at the last two rows. 5000 units in Cookie Mixing are being made on 22/10 and 23/10, which then feeds into Rheon on 23/10. I need a formula (or a VBA script, if you can find an efficient way to do it) that will list both of those next to the Rheon on the 23/10.

The biggest problem is that any combination is possible - you can have product on lower level made over several days and then used in one day on higher level, one day of lower level production feeding into multiple days of the next level make, or you can have 1:1 relationship, done on different days, or the same days.

The one thing I don't expect to happen (and I might be wrong on this, but I have to draw the line somewhere), is a situation in which only a part of a lower level production is used one day and the rest on the other. It doesn't make sense from the process perspective and makes this thing way too complicated, so I will ignore this scenario and train the users to avoid it or at least be aware that it may cause issues.

The last thing to mention is the fact that UOM changes at level 1. this is simple enough, I deal with it with a simple *IF($F2=1,$L2,1) wherever I'm working with the quantity. This is 100% guaranteed, only level 1 changes the UOM and needs to be translated.

I would be super grateful if someone could help me with this. I found several partial solutions, but nothing that addresses all scenarios consistently and now I feel like the frustration is making it harder for me to find the solution, and I need some fresh, experienced eyes on this problem.
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
The one thing I don't expect to happen (and I might be wrong on this, but I have to draw the line somewhere), is a situation in which only a part of a lower level production is used one day and the rest on the other. It doesn't make sense from the process perspective and makes this thing way too complicated, so I will ignore this scenario and train the users to avoid it or at least be aware that it may cause issues.
Sorry, I was imprecise in this section.

What I don't think will ever happen is a scenario like this:
21/10 level 4 qty 15000
22/10 level 4 qty 5000
21/10 level 3 qty 10000
22/10 level 3 qty 10000

I expect all qty to add up neatly between levels. Again, I could be wrong, but I'm willing to just tell them to never do it. This thing is ridiculously complicated as it stands.
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,849
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