+ Reply to Thread
Results 1 to 2 of 2

Grouping algorithm

  1. #1
    Registered User
    Join Date
    11-30-2011
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    3

    Grouping algorithm

    Hi everyone, I am a newbie both to vba macros as well as this forum. I've done one programming course in university but that was awhile ago.
    I have done some research but still could not find anyway to even begin to generate something.

    The problem has a few parts. I am trying to create a macro to cut down on my work calculating prices for jewelry resell. Basically I have a deal going that if the sum of a group of jewelry is equal or over $200, I can get one additional piece of jewelry equal or lesser than $75 for free. Due to the sheer number of calculations I have to do every day, I have decided to try automating this.

    Here is my idea so far:
    Basically, I will have a list of products, each with different prices. I want to optimize a selection of products such that for every $200's worth of jewelry I will assign it a group number, and assign the group number to one product that is below $75. But how will I go about generating this group number such that Excel knows to go through the entire column to find the pieces to piece together the most optimal choices that considers all the groups? And how will I take out the assigned product from the pool of consideration for when Excel tries to find the next group? There may be as many as 10 groups.

    I'm not asking for free code, but if someone could throw me a bone and give me the functions that would help me that would be really helpful.
    Thanks!
    Jason

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Grouping algorithm

    Hi, welcome to the forum

    It would probably help a lot if you could upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 12-10-2015, 08:24 AM
  2. Automation / algorithm
    By trg in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-13-2014, 11:10 AM
  3. Replies: 4
    Last Post: 07-26-2014, 02:35 AM
  4. algorithm help
    By david90 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-30-2012, 10:33 AM
  5. WAP for given algorithm
    By newguy59 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-15-2011, 07:11 AM
  6. Want to get a Series with Grouping and Sub-Grouping based on 2 criterias.
    By e4excel in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-02-2011, 05:46 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1