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

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result

Oaktree

MrExcel MVP
Joined
Jun 20, 2002
Messages
8,021
Office Version
  1. 365
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
 

Forum statistics

Threads
1,148,053
Messages
5,744,528
Members
423,881
Latest member
Nguyen Vu

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
Top