I'm a self taught VBA person, so please be gentle with me!
I've been lurking the boards for a while, this is my first post.
I need to find the largest pull. I'm not sure if this is a common term, so I'll explain it the best I can.
For each part number there is a number representing the # of days. I think this is a lead time, but I'm not positive. We run data from the system telling us how many parts we've shipped per day for what ever time frame the manager determines. That means there could be 30, 60, 90, or any number of days data.
I have to take the number of days for each part, go to the first day that has shipped data, count from that day out however many the # of days is and sum the parts shipped for that range. Starting at the end of the first range, go to the next day that has shipping data, and do the same thing; until you reach the end of the data. If you only have 10 days left, but your # of days is 30, then you just use the 10 days.
The largest pull is the range with the largest sum.
We have been doing this manually for thousands of part numbers over many locations. I know there's a way to use VBA to help with this, I just can't seem to put the pieces together to do it.
I've atttached a sample file that hopefully make my explanation make sense. The largest pull is already in, it was done manually.
Thank you in advance for any assistance!LP Sample for Online.xlsx
Bookmarks