Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 91
Default select cells that sum up to a specific value

I would like to highlite a range, then
click a button for an input box that asks for a value
then the rows with the cells that add up to that value(or as close to
it), will change to blue,
Has anybody an example of this or know of a way for this to be done??

Thanks
Dave

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,203
Default select cells that sum up to a specific value

This could be ugly. Could we have some more rules for this game? Like is
there always going to be a solution? You mentioned "or as close to it" - as
close to it as what, closest? Within some range? How many cells in the
possibles list would there be? Do we stop when we find either an exact match
or the first one that comes close, or do you have to determine no exact match
before finding the next closest one? If you have 10 cells in the range, do
we have to find 2-cell, 3-cell, 4-cell, 5-cell, 6-cell, etc solutions or what?
I think this would have to be solved with VBA code, and depending on the
number of combinations involved, it could take a heck of a long time to find
a result.


"damorrison" wrote:

I would like to highlite a range, then
click a button for an input box that asks for a value
then the rows with the cells that add up to that value(or as close to
it), will change to blue,
Has anybody an example of this or know of a way for this to be done??

Thanks
Dave


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 299
Default select cells that sum up to a specific value

You can use this method

http://tinyurl.com/eaquj


then use conditional formatting to change the colour of the cells

--


Regards,

Peo Sjoblom

Excel 95 - Excel 2007
Northwest Excel Solutions
www.nwexcelsolutions.com
(remove ^^ from email)


"damorrison" wrote in message
oups.com...
I would like to highlite a range, then
click a button for an input box that asks for a value
then the rows with the cells that add up to that value(or as close to
it), will change to blue,
Has anybody an example of this or know of a way for this to be done??

Thanks
Dave



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,203
Default select cells that sum up to a specific value

Excellent!!

I continue to learn new ways to use SumProduct() and now to combine it with
the Solver.

"Peo Sjoblom" wrote:

You can use this method

http://tinyurl.com/eaquj


then use conditional formatting to change the colour of the cells

--


Regards,

Peo Sjoblom

Excel 95 - Excel 2007
Northwest Excel Solutions
www.nwexcelsolutions.com
(remove ^^ from email)


"damorrison" wrote in message
oups.com...
I would like to highlite a range, then
click a button for an input box that asks for a value
then the rows with the cells that add up to that value(or as close to
it), will change to blue,
Has anybody an example of this or know of a way for this to be done??

Thanks
Dave




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 91
Default select cells that sum up to a specific value

Hi,
good questions,
With our list of production orders, we know that the next day the
production line will be able to handle $10,000.00 worth of work, when a
user selects a range, inputs the value, and the rows with the cells
that total $10,000.00 will change color. I say (as close to), because
there are cents to deal with and not all orders have the same value...


JLatham wrote:
This could be ugly. Could we have some more rules for this game? ..........


"damorrison" wrote:

I would like to highlite a range, then
click a button for an input box that asks for a value
then the rows with the cells that add up to that value(or as close to
it), will change to blue,
Has anybody an example of this or know of a way for this to be done??

Thanks
Dave



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
checking that cells have a value before the workbook will close kcdonaldson Excel Worksheet Functions 8 December 5th 05 04:57 PM
Cells User Select Locked after upgrade to Excel 2002 TWilson Excel Discussion (Misc queries) 1 August 5th 05 12:22 PM
select a range using "cells()" fullers Excel Worksheet Functions 2 July 6th 05 06:00 PM
How do I unlock specific cells in a spreadsheet that I protected? onemanhattanrebel Excel Discussion (Misc queries) 2 May 8th 05 05:43 PM
Locate and delete specific cells David Smith Excel Discussion (Misc queries) 1 January 19th 05 04:45 PM


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