Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
galbertse
 
Posts: n/a
Default calculate values


I have a column with 25 values in it. I would like excel to SUM eight of
these cells to a total value of 360 or less. The eights cells needs to
be identified and the total must be as close a possible to 360. Is this
function possible in excel?


--
galbertse
------------------------------------------------------------------------
galbertse's Profile: http://www.excelforum.com/member.php...o&userid=32383
View this thread: http://www.excelforum.com/showthread...hreadid=521472

  #2   Report Post  
Posted to microsoft.public.excel.newusers
Gary''s Student
 
Posts: n/a
Default calculate values

Do you need exactly 8 numbers. Suppose we can reach 360 by only adding two
or three?
--
Gary's Student


"galbertse" wrote:


I have a column with 25 values in it. I would like excel to SUM eight of
these cells to a total value of 360 or less. The eights cells needs to
be identified and the total must be as close a possible to 360. Is this
function possible in excel?


--
galbertse
------------------------------------------------------------------------
galbertse's Profile: http://www.excelforum.com/member.php...o&userid=32383
View this thread: http://www.excelforum.com/showthread...hreadid=521472


  #3   Report Post  
Posted to microsoft.public.excel.newusers
galbertse
 
Posts: n/a
Default calculate values


Yes it needs to be eight numbers


--
galbertse
------------------------------------------------------------------------
galbertse's Profile: http://www.excelforum.com/member.php...o&userid=32383
View this thread: http://www.excelforum.com/showthread...hreadid=521472

  #4   Report Post  
Posted to microsoft.public.excel.newusers
 
Posts: n/a
Default calculate values

"galbertse" wrote:
I have a column with 25 values in it. I would like excel
to SUM eight of these cells to a total value of 360 or less.
The eights cells needs to be identified and the total must
be as close a possible to 360. Is this function possible in excel?


With VBA, "anything" is possible in Excel. The question is:
how much pain can you tolerate?

First, you need to look more than 1.08 million combinations
of 8 out of 25 values to find an answer. I think that requires
VBA.

Second, your requirements are unclear, and that affects the
potential complexity of any (VBA) solution.

For example, what do you mean by "the cells need to be
identified"? Do you mean the 8 values? Or do you want
the cell references (locations)?

Also, if there are multiple solutions (e.g. 4 sets of 8 that all
sum to 360), is it sufficient to output just one? Or do you
want them all? The latter could complicate usability -- the
ease with which you can use any (VBA) solution because
the size of the result is unpredictable.

Finally, where do you want the solution put? Do you want
a function that puts the result into the spreadsheet? Or is
it sufficient to display the results in a pop-up (msgbox)?
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
Count Intervals of 2 Consecutive Values in same Row and Return Count across Row Sam via OfficeKB.com Excel Worksheet Functions 6 November 29th 05 03:27 PM
I Need a formula to evaluate a cell with + or - values Bob in Oklahoma Excel Worksheet Functions 6 October 31st 05 02:41 PM
Return Range of Numerical Values in Single Column based on Frequency Percentage Sam via OfficeKB.com Excel Worksheet Functions 9 October 28th 05 11:01 PM
View of x-axis values AhmtDY Charts and Charting in Excel 2 October 18th 05 06:18 PM
#N/A Values : Returned by Formulas vs Entered Manually monir Charts and Charting in Excel 8 July 7th 05 01:16 AM


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