I need to create a file with random purchase list that have some
restrictions.
I’ve been working on this file for few days, but I couldn’t get
desirable results.

http://www.mediafire.com/?sharekey=d45d66ae0e3112ecd2db6fb9a8902bda

Attached a sample file that describes what I did. It build up as the
final file (just the final file has many more items).
I’ll try to explain what I need and how it works:
There are 4 categories: Theater, Salon, Kitchen & garden.
I need to create random lists of purchases (each list should be a line
at the total sheet)
there is budget limitation of $100000. Each category has minimum items
that must be purchase (headlines are in red color, total of 9 items).
The minimum items that can be on one list are 11 (9 red columns &
another 2 random columns). Maximum are 15 items (9 + 6). Same item
shouldn’t appear twice at the same list.
This file chooses randomly 19 items and check if the list stands up
the budget.
There are 3 issues that I couldn’t solve by myself:
1. I should define the file to stay within minimum & maximum items per
list (11-15)
2. Make sure it doesn’t go over the budget
3. Stabilize the list the values will not change each time I’m doing
changes to file
I’ll really appreciate who ever can help me with those issues. If
someone thinks he has other way that gives me same result it will also
be great.

--~--~---------~--~----~------------~-------~--~----~
Visit the blog to download Excel tutorials at 
http://www.excel-macros.blogspot.com

To post to this group, send email to excel-macros@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/excel-macros?hl=en

Visit & Join Our Orkut Community at 
http://www.orkut.com/Community.aspx?cmm=22913620

Visit the blog to download Excel tutorials at 
http://www.excel-macros.blogspot.com

To Learn VBA Macros Please visit http://www.vbamacros.blogspot.com

To see the Daily Excel Tips, Go to:
http://exceldailytip.blogspot.com
-~----------~----~----~----~------~----~------~--~---

Reply via email to