+ Reply to Thread
Results 1 to 4 of 4

Combining and Sorting

  1. #1
    Registered User
    Join Date
    02-06-2012
    Location
    Guelph, Ontario
    MS-Off Ver
    Excel 2007
    Posts
    2

    Combining and Sorting

    I am working on a multipage excel workbook for creating cutlists for the cabinet door industry. I have reached a stumbling block that I can't seem to think my way around. I want to create a macro which will take the automatically generated values in a number of cells, combine ones with identical values while summing the total number of parts that size and type, and then sort the list in order of size. The second problem is an easy one I know but I can't figure out if the first one is possible to achieve.

    it would be listed like this:

    # size type
    4 135 rail
    2 710 stile
    6 135 rail
    12 710 stile
    4 135 stile

    I would like it automatically to combine the values to list them like this:

    # size type
    14 710 stile
    10 135 rail
    4 135 stile

    Any help? This workbook will be used to enter our orders to create production cutlists. It will enter many orders daily, as such the time required in data entry is a concern. So far all of the values are figured automatically based on the entry for a given door size requiring no extra calculations. I would like to keep it that way if possible using a custom macro or by purchasing an add-on.

    Any advice would be much appreciated.

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Combining and Sorting

    Hi

    How's this
    Please Login or Register  to view this content.
    rylo

  3. #3
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387

    Re: Combining and Sorting

    robinrobo,

    Welcome to the Excel Forum.

    You did not describe where your raw data is (rows and columns).

    Try the below workbook and the macro.


    Detach/open workbook CombineSort ADVFU BC FG SumIfs - robinrobo - EF813232 - SDG12.xlsm and rum macro CombineSort.



    To fine tune the macro, please attach a workbook with actual raw data. Also, where would you like the restuls to be (what range)?

    To attach your workbook, scroll down and click on the Go Advanced button, then scroll down and click on the Manage Attachments button.
    Have a great day,
    Stan

    Windows 10, Excel 2007, on a PC.

    If you are satisfied with the solution(s) provided, please mark your thread as Solved by clicking EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

  4. #4
    Registered User
    Join Date
    02-06-2012
    Location
    Guelph, Ontario
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Combining and Sorting

    This is the workbook in question.

    The idea is that door sizes will be entered on the first sheet and the values for the various components will be calculated on the others. I need to sort them that way so that the machine operators can cut orders efficiently.

    An example of what I am attempting to achieve is that on the DoorToPanel sheet I want from A9:AA9 to stay together as a row but be sorted by column C and E from largest to smallest all the way down to A116:AA116. I can move the formulas that I already have in those cells to the margins if necessary to populate them another way correctly.

    Another example is that on the Framestock sheet I need to keep rows A9:E9 together all the way down to A224:E224 and combine the entries for equal valued components of the same type (rails, stiles, frames etc.) and sort from largest to smallest in column C. There are other ways I need to sort other sheets but that is the gist of it.

    I appreciate the help so far!
    Attached Files Attached Files

+ 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