Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Finding a value by adding certain sums in a range?

I have 20-odd cells in a row with various numbers. Let's say the first three
numbers are as follows:

A1 100
A2 700
A3 800

I'm trying to find a formula that would search through a range of cells and
find a set of numbers that add up to a specific total, and return the cell
numbers. For example, if I wanted to find a combination of cells that add up
to 1500, the formula would return either the cell numbers (A2 A3) or the
contents of the cells (700 800). Is there any formula out there that does
something like this?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Finding a value by adding certain sums in a range?

see:

http://www.tushar-mehta.com/excel/te...ues/index.html


--
Gary''s Student - gsnu200734


"Meh27" wrote:

I have 20-odd cells in a row with various numbers. Let's say the first three
numbers are as follows:

A1 100
A2 700
A3 800

I'm trying to find a formula that would search through a range of cells and
find a set of numbers that add up to a specific total, and return the cell
numbers. For example, if I wanted to find a combination of cells that add up
to 1500, the formula would return either the cell numbers (A2 A3) or the
contents of the cells (700 800). Is there any formula out there that does
something like this?

  #3   Report Post  
Posted to microsoft.public.excel.misc
bj bj is offline
external usenet poster
 
Posts: 1,397
Default Finding a value by adding certain sums in a range?

not easily
for just 20 items you can do it by putting the numbers in one column
copying them and pasting into another column.
copying the data in the two columns and pasting into a 2 x X^2 block of cells.
select one of the columns and sort. then in a third column sum up the two
adjacent numbers and look for the total that you need. Most of the time this
situation requires you to look for more than 2 to total and more than 20 items
up to 4 combinations of 100 items would require looking at about 100 million
combinations. (I started one of these one times on a lrge data base and after
stopping it, calcuated it would have taken about 38 years to look at all
ossible combinations on the computer I was using)

in other words there is not a standard formula to do this.

"Meh27" wrote:

I have 20-odd cells in a row with various numbers. Let's say the first three
numbers are as follows:

A1 100
A2 700
A3 800

I'm trying to find a formula that would search through a range of cells and
find a set of numbers that add up to a specific total, and return the cell
numbers. For example, if I wanted to find a combination of cells that add up
to 1500, the formula would return either the cell numbers (A2 A3) or the
contents of the cells (700 800). Is there any formula out there that does
something like this?

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
adding multiple sums w/ different criteria Doug Excel Discussion (Misc queries) 6 January 19th 07 12:42 AM
Adding sums only in certain colored cells vkauahi Excel Worksheet Functions 6 January 5th 07 11:27 PM
Using if or sum if to change range of sums Stuck with Excel Excel Discussion (Misc queries) 1 November 17th 05 03:30 PM
Finding possible sums to match a figure Jodi Excel Worksheet Functions 1 June 21st 05 06:32 PM
Adding up Sums AlyG Excel Worksheet Functions 3 June 7th 05 06:31 AM


All times are GMT +1. The time now is 12:23 PM.

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

About Us

"It's about Microsoft Excel"