Hi all, I cannot come up with a formula to do what I need and I'm still very new to VBA - so I'm not sure how to achieve this..
Basically I have an export which has a bunch of info I need summarised. Attached is an example. We have 6 different Production Lines that each of these BOM's (Bill of Materials) are for, and a list of all work order numbers (172****) associated with that line. For this export I have just got lines 1, 2 & 3 (I'm sure I can modify the code for the other 3 lines if I have a starting point).
The tab 'BOMData' has all of the data from the export. For each work order number will be a list of materials that go with that order (can range from a couple materials through to 7+ materials)
The tab 'BOMsAuto' is how I need it to be set up. Basically for each work order number, it would list all of the ingredients, then put a blank line in where the next work order is different, so forth and so on.
On the 'BOMsAuto' tab is a list of Work Orders (column G for Line 1) which is the order in which I need the BOM's to appear so that it's accurate. I tried using VLOOKUP to start with, but it won't go to the next line once completed and won't adjust when there are more materials on a particular order - it also doesn't incorporate an extra line between work orders. Is there a way to do this automatically, or to tie in with a macro?
Thank you so much for your time and help. It's Monday and my brain has stopped working completely.
Bookmarks