TOTAL OF A RANGE SHOULD BE

J

JOSEPH WEBER

Is there a function or formula that can calculate which numbers add up to
another. for example:

5
6
7
8

I want the combination of numbers that will give me 21. In other words I
know what the answer should be, just need to find out which combination of
numbers will give me the answer.
 
H

Harlan Grove

JOSEPH WEBER said:
Is there a function or formula that can calculate which numbers add up to
another.  for example:

5
6
7
8

I want the combination of numbers that will give me 21.  In other words I
know what the answer should be, just need to find out which combination of
numbers will give me the answer.

No function or formula can do this. You need to use Solver or VBA.
Here's a link to a VBA approach.

http://groups.google.com/group/microsoft.public.excel/msg/7419858047398beb
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top