I have data sets that I need to make into groups based on a certain set parameters. So first I'd like to have the VBA scan the data and group together entries that are similar by one data point. Then do that again and group those groups by another data point. Then of the ones that are grouped with that similarity I want to optimize the data to be in another group based on another set of data in the array and these groups have a set maximum value that it can not be more than. after that, I need it to take those groupings and optimize it again to pair the groupings based on a data value but this time with a maximum value as well that the groups need to add to.
So For example: If i was talking about books, I have 2,000 books and I wanted to group books together that are all the same author, then group by the same genre, Then once they are grouped by author and genre I need it to add to being a specific length I have for my book shelf but I also need to know what height to build my shelves at and I have a max shelf height. So I need it to calculate what height the shelf will need to be at and which books can fit on one shelf together based on the length of my bookcase, and Ideally also include how many shelves total I will need and how many bookcases.
I've tried a lot of different things and nothing has really been seamless and automated the way I want it to. I would like to run the vba program and have it to all of that mathematically and seamlessly, I've also tried using solver in conjunction with VBA to get the optimization but it hasn't worked how I need it to. Please let me know if you have an suggestions of how to get this to run seamlessly the way I need it to, I'm open to any and all suggestions. Thanks.
So For example: If i was talking about books, I have 2,000 books and I wanted to group books together that are all the same author, then group by the same genre, Then once they are grouped by author and genre I need it to add to being a specific length I have for my book shelf but I also need to know what height to build my shelves at and I have a max shelf height. So I need it to calculate what height the shelf will need to be at and which books can fit on one shelf together based on the length of my bookcase, and Ideally also include how many shelves total I will need and how many bookcases.
I've tried a lot of different things and nothing has really been seamless and automated the way I want it to. I would like to run the vba program and have it to all of that mathematically and seamlessly, I've also tried using solver in conjunction with VBA to get the optimization but it hasn't worked how I need it to. Please let me know if you have an suggestions of how to get this to run seamlessly the way I need it to, I'm open to any and all suggestions. Thanks.