ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Coming up with all possible combinations that add to a certain sumwithin a set of data (https://www.excelbanter.com/excel-discussion-misc-queries/170412-coming-up-all-possible-combinations-add-certain-sumwithin-set-data.html)

Zarlot

Coming up with all possible combinations that add to a certain sumwithin a set of data
 
Hello,

I have used the Solver Add-In to come up with combinations before, but
one drawback is that (or at least I'm not aware how to) one can only
come up with one combination. There may, however, be several
combinations that come up with a certain sum.

Does anyone know of any Add-Ins or VBA macros that would accomplish
this task?

Thank you very much!


rdwj

Coming up with all possible combinations that add to a certain sum
 
not entirely sure, but as far as I know the Solver add-in needs input as to
which cells can be changed in order to get an outcome. If you have multiple
variables, changing another variable might give an alternative answer.

Perhaps you are asking about the problem when changing one cell can also
have alterantive answers, for example with a1^2 where both negative and
positive can give correct solutions. Not sure what happens if you try
different start values - as I don't know what algorithm is used by the
Add-IN....

rdwj


"Zarlot" wrote:

Hello,

I have used the Solver Add-In to come up with combinations before, but
one drawback is that (or at least I'm not aware how to) one can only
come up with one combination. There may, however, be several
combinations that come up with a certain sum.

Does anyone know of any Add-Ins or VBA macros that would accomplish
this task?

Thank you very much!




All times are GMT +1. The time now is 02:43 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com