Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 112
Default search an array for possibilities

I have a column with totals in it (numbers). From this array of numbers I
want to search for any combination by (adding these numbers together) that
will equal a number in another cell say B3.

Another way to say this is: in Column A I have in each row a number. In
cell B3 I have the number I am looking for, which could be any combination of
adding the numbers from Column A. Is their a way I can search column A and
come up with a combination that will equal what I am searching for in Cell B3?

Column A Column B
1
2
3 26
4
5
6
7
8
9
....

--
Thanks, Kate
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default search an array for possibilities

Here's a method using the solver add-in, otherwise you would need VBA


http://tinyurl.com/yqnogr


mind you that the solver that comes with excel is limited to how much number
crunching it can do


--


Regards,


Peo Sjoblom


"Kate" wrote in message
...
I have a column with totals in it (numbers). From this array of numbers I
want to search for any combination by (adding these numbers together) that
will equal a number in another cell say B3.

Another way to say this is: in Column A I have in each row a number. In
cell B3 I have the number I am looking for, which could be any combination
of
adding the numbers from Column A. Is their a way I can search column A
and
come up with a combination that will equal what I am searching for in Cell
B3?

Column A Column B
1
2
3 26
4
5
6
7
8
9
...

--
Thanks, Kate



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 112
Default search an array for possibilities

I think I may be limited by the excel problem solver as I have 2903 lines and
am looking for a 2,000,000 + total, and am getting a binary constraint must
only contain adjustable cells warning. Any thoughts?
--
Thanks, Kate


"Peo Sjoblom" wrote:

Here's a method using the solver add-in, otherwise you would need VBA


http://tinyurl.com/yqnogr


mind you that the solver that comes with excel is limited to how much number
crunching it can do


--


Regards,


Peo Sjoblom


"Kate" wrote in message
...
I have a column with totals in it (numbers). From this array of numbers I
want to search for any combination by (adding these numbers together) that
will equal a number in another cell say B3.

Another way to say this is: in Column A I have in each row a number. In
cell B3 I have the number I am looking for, which could be any combination
of
adding the numbers from Column A. Is their a way I can search column A
and
come up with a combination that will equal what I am searching for in Cell
B3?

Column A Column B
1
2
3 26
4
5
6
7
8
9
...

--
Thanks, Kate




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,441
Default search an array for possibilities

Kate,

That is too many possibilities - Excel starts bogging down at around 30-40 or so. And there are
probably a huge number of ways that 2903 items could be combined to come up with a specific value.

HTH,
Bernie
MS Excel MVP


"Kate" wrote in message
...
I think I may be limited by the excel problem solver as I have 2903 lines and
am looking for a 2,000,000 + total, and am getting a binary constraint must
only contain adjustable cells warning. Any thoughts?
--
Thanks, Kate


"Peo Sjoblom" wrote:

Here's a method using the solver add-in, otherwise you would need VBA


http://tinyurl.com/yqnogr


mind you that the solver that comes with excel is limited to how much number
crunching it can do


--


Regards,


Peo Sjoblom


"Kate" wrote in message
...
I have a column with totals in it (numbers). From this array of numbers I
want to search for any combination by (adding these numbers together) that
will equal a number in another cell say B3.

Another way to say this is: in Column A I have in each row a number. In
cell B3 I have the number I am looking for, which could be any combination
of
adding the numbers from Column A. Is their a way I can search column A
and
come up with a combination that will equal what I am searching for in Cell
B3?

Column A Column B
1
2
3 26
4
5
6
7
8
9
...

--
Thanks, Kate






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 112
Default search an array for possibilities

I don't know if it makes a difference but I am working with excell office 2003
--
Thanks, Kate


"Peo Sjoblom" wrote:

Here's a method using the solver add-in, otherwise you would need VBA


http://tinyurl.com/yqnogr


mind you that the solver that comes with excel is limited to how much number
crunching it can do


--


Regards,


Peo Sjoblom


"Kate" wrote in message
...
I have a column with totals in it (numbers). From this array of numbers I
want to search for any combination by (adding these numbers together) that
will equal a number in another cell say B3.

Another way to say this is: in Column A I have in each row a number. In
cell B3 I have the number I am looking for, which could be any combination
of
adding the numbers from Column A. Is their a way I can search column A
and
come up with a combination that will equal what I am searching for in Cell
B3?

Column A Column B
1
2
3 26
4
5
6
7
8
9
...

--
Thanks, Kate






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
search array jchick0909 Excel Worksheet Functions 3 October 5th 07 07:25 PM
Defining an array to search by Justlearnin Excel Discussion (Misc queries) 4 April 25th 07 04:59 PM
Text Search in an Array Jay Excel Worksheet Functions 1 September 12th 06 11:37 PM
Text Search in an Array Jay Excel Discussion (Misc queries) 1 September 12th 06 11:23 PM
Search array and return element No Ron Excel Worksheet Functions 7 May 17th 06 05:27 AM


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