#1   Report Post  
Bill Martin -- (Remove NOSPAM from address)
 
Posts: n/a
Default

Keven wrote:
i need the formula. I know how t o use excel t osum



If you're referring to a generic math problem, and not something specific to
Excel, then I believe the answer is that there is no neat closed form solution
to this problem. You have to solve it iteratively, by searching all possible
solutions, which perhaps is where Excel comes in?

First bear in mind that there may be multiple solutions to this problem so you
have to exhaustively check all possible solutions -- you can't just search until
you find one.

One way to do it is to have your numbers in column A and in column B place a
zero or a one. In column C you multiply A * B. Then you sum column C. If the
sum of C does not match the sum you're trying to match, then you have to change
the 1/0 values in B. The obvious way to do this is to make column B a binary
counter and drive it through all it's possible states with a macro.

This will work nicely for "small" problems. The time required to search the
solution space will of course rise exponentially with the number of elements in
column A.

Good luck...

Bill

Reply
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
Excel Display Problem Bill Martin -- (Remove NOSPAM from address) Excel Discussion (Misc queries) 0 April 19th 05 05:25 PM
Date Math Problem Dkline Excel Worksheet Functions 4 March 4th 05 04:11 PM
Freeze Pane problem in shared workbooks JM Excel Discussion (Misc queries) 1 February 1st 05 12:04 AM
Row Autofit problem Excel 2003 Matthias Klaey Excel Discussion (Misc queries) 0 January 19th 05 05:33 PM
equation problem Dinie Excel Worksheet Functions 1 December 8th 04 06:26 PM


All times are GMT +1. The time now is 12: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"