Generate different lists

Brass Contributor

I have 2 separate lists. The number of objects in the list can vary or be the same. All Objects can be divided into 4 categories. I have a set of constraints which need to be followed (Excel Attached). I now want to generate a new set of lists (it can be any number of lists) of 10 objects from the above two lists based on the criteria / constraints. 

An added functionality which (if possible) is to filter the generated lists based on inclusion/exclusion of certain objects.

Thank you.

 

7 Replies

@Jodhvir 

 

Your description of what you're trying to do, I have to say, is one of the more cryptic I've seen. I'm sure it's totally clear in your own mind, but you'll need to do some more explaining....perhaps give an actual example of an outcome that you'd like to see.

 

In any event, let me ask if you're at all familiar with the FILTER function. It's only been fairly recently available with the newest versions of Excel. Based on your last paragraph, I think it might do what you want. Give it a try. If it doesn't work, by all means come back and clarify your request.

Thank you sir for your reply. I apologize if my explanation and the excel attached are not too clear. If 1 may give an example of the end result it would be something like this..
There are 2 classrooms. Both can have different/same number of students. Now the students can have various attributes like smart, tall, athletic, boy, girl etc. Suppose the school wants to take a team 10 students from these two classes to a multi-staged competition (a competition which will involve writing tests, sports tests, general knowledge etc) in another city so they have to select students from these two classes based on their attributes. What are the possible combinations of the team/teams that can be formed which fulfill all the basic criteria .
Once all possible combinations are formed, the school has to filter down the lists based on their certain preferences (like student will A definitely go, student B will definitely not go etc).
Hope i am able to give a better explanation this time around.
Thank you once again.

@Jodhvir 

 

Thank you for spelling out the possible circumstances--was that real, or still a parallel or hypothetical example?--but what I'm also looking for (as the example I requested) is that you take your spreadsheet with its very abstract data, and give an example of an outcome, stating the criteria you use to get there. I'm not asking for the Excel solution (that's what YOU are asking for), but rather for a verbal description of the actual outcome possible given certain selection criteria.

 

In short, talk me (us) through the process verbally. You've set the stage; let's play out the drama.

@mathetes 

Hello Sir.
Apologies for the late reply. Actually this scenario is one of the many that i can think of. I wanted to know if the solver tool / or its some advanced version can solve these kinds of problems which we solve in engineering. I have made a rough excel about the end result i imagine. Hope this would explain in a better way what i imagine the output can be. I would like to reiterate that there can be N number of teams. I have just made 3 as an example. 
And a big thank you once again sir for showing such enthusiasm to this abstract question. 

@Jodhvir 

 

I suspect that SOLVER can do this. But I'd have to just go in and play around with it to figure out how. I've used it maybe twice in my life; the kinds of situations I deal with generally don't require that tool.

 

My guess, from what you've said, is that you could do that--go in and play with SOLVER yourself--just as well as I could. Give it a try. Come back and tell us how or IF it has worked.

I tried playing around with Solver / Goal Seek tools as you suggested sir, but to no fruition. I am now trying to do the same with Power Query. It seems possible and may take me some time to arrive at the final results. Could you have a look at the problem from the Power Query point of view? Thank you.

@Jodhvir 

 

To my knowledge, my (Mac) systems do not have Power Query. I've never been able to activate it, at any rate.

 

In my (career) background I have worked fairly extensively with SQL (Structured Query Language) queries on mainframe databases, and I have been given the impression that Power Query bears a lot of resemblance to that process. As such, I doubt that it would be suitable to your particular challenge. It's great for joining various tables in a relational database context, to produce focused and comprehensive  outputs, but it's not really like Solver in being given conditions and lists and asked to come up with various solutions that meet those conditions.

 

I'd welcome others here to contribute to helping you. Right now I don't have the time to play with Solver myself, but I would persist. Have you tried with a less demanding set of conditions, just to get the procedure under your belt?