Solving for value by changing +/- in range

hm

New Member
Joined
Jan 27, 2005
Messages
1
I have a range of numbers of which I know what I want the sum to be. Some of the numbers need to be negative in order to reach the sum. I need to be able to solve for the sum by knowing which values need to have their positive/negative values changed without changing the actual number - just the +/-. Is Solver capable of this or do I need something else. Any help would be appreiciated
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Welcome to the board!

Here's a trivial example which might help you get on the right path:

Solver definition:
Target = H2
by changing cells: $B$2:$C$3
Constraint 1: $B$2:$C$3 binary
Constraint 2: $D$2:$D$3<= 1

Options:
Precision 0.000000000001
Tolerance 0%
Convergence 0.000000000001

HTH
Book8
ABCDEFGH
1OriginalValue1Coefficient-1CoefficientCoefficientsSumResultant
21011-1Sum-2
31011-1
Sheet1
 
Upvote 0

Forum statistics

Threads
1,214,870
Messages
6,122,021
Members
449,060
Latest member
LinusJE

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top