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

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.

Oaktree

MrExcel MVP
Joined
Jun 20, 2002
Messages
8,027
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
 
Learn Excel from Bill Jelen

Understanding data is crucial, and the easiest place to start is with Microsoft Excel.

Forum statistics

Threads
1,151,611
Messages
5,765,415
Members
425,286
Latest member
CazzaBabes

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