LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Selecting values from a list to add up to a specific quantity


I need a macro that will take values at random from a list of values an
get them to add up to an exact quantity, constraints being that eac
value that it uses must be from the original list, and each value ca
be used only once.

Right now I have it set up to split the values into two lists and the
move individual values from one list to the other until one reaches th
desired quantity - problem with this is that it takes too long an
sometimes can't find a solution (there is ALWAYS a solution).

Any ideas

--
goos
-----------------------------------------------------------------------
goose's Profile: http://www.excelforum.com/member.php...fo&userid=3053
View this thread: http://www.excelforum.com/showthread.php?threadid=54977

 
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
selecting randomly specific value in a list Nicawette Excel Worksheet Functions 8 March 13th 09 04:48 PM
selecting values from a list to equal a given value [email protected] Excel Worksheet Functions 3 December 23rd 08 11:09 PM
selecting 20 closest values from a list of 200 values michele New Users to Excel 1 August 12th 08 04:46 PM
Selecting values from a range that equal a specific total Matt UK Excel Worksheet Functions 4 November 25th 06 09:42 PM
Selecting amounts to display based on quantity Ray Ash[_2_] Excel Programming 1 August 25th 05 11:07 PM


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