#1   Report Post  
Keven
 
Posts: n/a
Default math problem

I have a list of amounts($s). I also have a total. Is there an easy way to
figure out which numbers in my list add up to my total. I dod not know how
many of my numbers are required to get the total.
TIA
--
Keven
  #2   Report Post  
Richard Neville
 
Posts: n/a
Default

In the cell showing the total, click in the formula bar at the top of the
page (to the right of fx). The cells included in the total will be
surrounded by colored borders.

"Keven" wrote in message
...
I have a list of amounts($s). I also have a total. Is there an easy way to
figure out which numbers in my list add up to my total. I dod not know how
many of my numbers are required to get the total.
TIA
--
Keven



  #3   Report Post  
jjbf22
 
Posts: n/a
Default

Keven-
If you select the box with te total in it you should see a formula come up
in the formula bar which is up by the toolbars. The formula should look like
this:
Sum( )
In the parentheses it should say which cells have been selectd to be part of
the sum. Good luck.


"Keven" wrote:

I have a list of amounts($s). I also have a total. Is there an easy way to
figure out which numbers in my list add up to my total. I dod not know how
many of my numbers are required to get the total.
TIA
--
Keven

  #4   Report Post  
Keven
 
Posts: n/a
Default

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

--
Keven


"Keven" wrote:

I have a list of amounts($s). I also have a total. Is there an easy way to
figure out which numbers in my list add up to my total. I dod not know how
many of my numbers are required to get the total.
TIA
--
Keven

  #5   Report Post  
jjbf22
 
Posts: n/a
Default

What do you mean you need the formula? Is it already giving you a total or
you want to add one yourself?

"Keven" wrote:

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

--
Keven


"Keven" wrote:

I have a list of amounts($s). I also have a total. Is there an easy way to
figure out which numbers in my list add up to my total. I dod not know how
many of my numbers are required to get the total.
TIA
--
Keven



  #6   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 05:16 PM.

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"