Sort:  

I used the CHOOSE function to choose between the bundles, and linked it to the a9 cell, better than writing the formula three times or modifying the formula for each different bundle

Oh I just noticed I never posted the solution to this. I will have it out in the next week or so, Sorry! Interesting solution you came up with, nice work indeed.