Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

conditional summation

Status
Not open for further replies.

dmpritch82

Aerospace
Aug 26, 2005
9
I am trying to get excel to sum only certain numbers in a range (one column) that is equal to or as close as i can get to a specified number. Example (trying to equal 10):

Range:
1
2
3
4
5

So I want excel to output that I need to add 2, 3, and 5 or 1, 2, 3, and 4 within this range to equal 10. Multiple sulutions are fine.

Any help is appreciated.
Thank You
 
Replies continue below

Recommended for you

Is this the "spacer" problem....which spacers will give me a certain length??

I just put each size in a loop - so in this case you have five For-Next loops

Record each answer and pick the one you want
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor