+ Reply to Thread
Results 1 to 3 of 3

If this then this, else this.

  1. #1
    Registered User
    Join Date
    08-08-2007
    Posts
    3

    Simple Macro For A Noob.

    Hi everyone,

    I am working on a fairly large spreadsheet so any guidance would be fantastic. I have a column that is a percentage(p%), which also has a corresponding location(loc) and item column(ite). What I need to do is add as many items to one location as possible without exceeding 100%(p%), however if the value exceeds 100%(p%) then we need to start all over in a new location. The end result would be an unknown amount of unused locations.

    If p% < 100 then add the next row's p% value, else start over with a new location. All I am looking to do is paste the item(ite) in a new column for each location.

    Any suggestions?
    Last edited by kenzemaitis; 08-08-2007 at 04:28 PM. Reason: Change of plans.

  2. #2
    Forum Contributor
    Join Date
    07-05-2007
    Location
    Lexington, MA
    Posts
    302

    Fit items into bins by size, a first approach

    Sort the items by size large to small. These worksheet functions do the job for a medium number of bins (locations). It suggests an approach to fully automate the process. See also the attached workbook.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by FrankBoston; 08-08-2007 at 11:46 PM.
    FrankBoston is the pen name for Andrew Garland, Lexington MA

  3. #3
    Registered User
    Join Date
    08-08-2007
    Posts
    3
    Quote Originally Posted by FrankBoston
    Sort the items by size large to small. These worksheet functions do the job for a medium number of bins (locations). It suggests an approach to fully automate the process. See also the attached workbook.
    Please Login or Register  to view this content.

    Worked beautifully, thanks a bunch!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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