I am trying to find a way in excel to look up at a list of numbers associated with a name and find the best combination within this list that will be equal or close to a specific number that I would input at the bottom of the list. For example:
The list would be something like this: Stock performance list
Coca Cola 2%
Microsoft 6%
Bank of America 10%
Index 12%
*This is just an example. The real list would involve 1000 company stocks.
The excercise: To look at this list above and find using some sort of formula which combination would be equal or closest to the index result at the end of the year of 12%. From this example you can see that a possible solution would be the combination of Coca Cola and Bank of Ameirca would be equal to the index 12%. But in case that the list becomes 1000 stocks I have no idea how to use a formula to find this combination.
If you have suggestions please I greatly apprecite.
Diogo Bezerra
The list would be something like this: Stock performance list
Coca Cola 2%
Microsoft 6%
Bank of America 10%
Index 12%
*This is just an example. The real list would involve 1000 company stocks.
The excercise: To look at this list above and find using some sort of formula which combination would be equal or closest to the index result at the end of the year of 12%. From this example you can see that a possible solution would be the combination of Coca Cola and Bank of Ameirca would be equal to the index 12%. But in case that the list becomes 1000 stocks I have no idea how to use a formula to find this combination.
If you have suggestions please I greatly apprecite.
Diogo Bezerra