Hi.
Please see sample data attached.
Firstly, you will see I have a list of 200 Product ID's (not unique) in column A. What I am looking to do is randomly assign in column B (cells shaded yellow) a set number of Location ID's (quantity per Product ID summarised in columns G & H) from a list of available Location ID's in column L (for this example I have listed 529 location ID's to choose from).
In this particular case, the Location ID allocated is not important and as described above can be randomised, however I need to ensure that each Product ID has the correct "fixed" amount of locations associated with it. The Product ID's I have provided in column A are sorted, but in reality this may not always be the case and there will be many, many more Product ID's (20k+) and available Location ID's (potentially upwards of 100k) to choose from.
Does anyone know of a way to do this in Excel using formulas?
Any help, feedback or solutions will be gratefully received!
Many thanks
Bookmarks