LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 70
Default Solver Add-in

Hi,
I am trying to use the Solver add-in and am having trouble with it
My spreadsheet is as follows:
InvNum InvAmt Flag AmtDue
1 100 1 =B2*C2
2 150 1 =B3*C3
<snip rows
50 Total 0 =SUM(D2:D49)

I've set solver up as follows:
Set Target Cell = $D$50
Equal to Value of 844.65
Subject to constraints:
$C$2:$C$49 <= 1
$C$2:$C$49 = integer
$C$2:$C$49 = 0

I want Solver to find that combination of invoices that would give me a
total of the target value.
The logic is that the flag would either be 0 or 1.

However, Solver does not recognize the second constraint: $C$2:$C$49 =
integer, and iterates all possible values between 0 and 1.
What am I doing wrong?

I recall doing this before, and I can't see where I am wrong.

Thanks in advance for any assistance.

Regards
Habib



--
Habib Salim
www.DynExtra.com
A resource for the Microsoft Dynamics Community
Featuring FAQs, File Exchange and more
Current member count: 10


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Solver Randy Excel Discussion (Misc queries) 3 October 1st 09 03:32 PM
how to add-in solver without cd sspeak Excel Discussion (Misc queries) 1 March 3rd 07 01:22 AM
Interesting Solver problem (Solver encounters an error) MrShorty Excel Discussion (Misc queries) 3 December 22nd 05 10:52 PM
"solver" tb Excel Discussion (Misc queries) 1 September 12th 05 01:19 AM
Resetting Solver Manually to Fix Solver Bug Stratuser Excel Programming 0 September 13th 04 07:04 PM


All times are GMT +1. The time now is 07:40 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"