+ Reply to Thread
Results 1 to 6 of 6

Pairing Two Pick Orders using VBA

  1. #1
    Registered User
    Join Date
    02-27-2013
    Location
    Columbus, Ohio, USA
    MS-Off Ver
    Excel 2011
    Posts
    4

    Question Pairing Two Pick Orders using VBA

    Hi, I'm very new to VBA. I have 100,000 data on excel to crunch but I have no idea how to start.

    I'm trying to pair up two different pick orders (assignment # in column A describe different pick orders down the row). Under each assignment, there are different location number (rows & columns that represent aisles in warehouse). The objective of pairing the two orders is to minimize the distance travel and to reduce the need for visiting same aisle multiple times.

    I'm thinking of a loop that will sort the data and rank them numerically but I do not know how to do it while every items stay within the group.

    Can anyone help me with that? Attached is the sample data that I have.

  2. #2
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Pairing Two Pick Orders using VBA

    I'm thinking of a loop that will sort the data and rank them numerically but I do not know how to do it while every items stay within the group
    Can you show us how you would do this manually on another sheet?
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,912

    Re: Pairing Two Pick Orders using VBA

    Not sure if the attached is what you are looking for. If yes, then here is what I did. Took about 3 minutes.
    Inserted column A and numbered records 1 up.
    Sorted table including column A based upon Columns and then rows
    Added column E and numbered 1 up.
    Resorted this according to Column A.

    If needed this can be applied to some VBA.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Registered User
    Join Date
    02-27-2013
    Location
    Columbus, Ohio, USA
    MS-Off Ver
    Excel 2011
    Posts
    4

    Re: Pairing Two Pick Orders using VBA

    I think I had oversimplified the actual situation, sorry about that. Here is more like the real case situation.

    I have manually sort the actual orders from the left side of the excel sheet and showed how I wanted the result to look like on the right side of the sheet.

    I also put on some description to help you better understand the grouping, matching and sorting method that I intended to code using VBA.


    I greatly appreciate everyones help.

  5. #5
    Registered User
    Join Date
    02-27-2013
    Location
    Columbus, Ohio, USA
    MS-Off Ver
    Excel 2011
    Posts
    4

    Re: Pairing Two Pick Orders using VBA

    Quote Originally Posted by mike7952 View Post
    Can you show us how you would do this manually on another sheet?
    Mike, I just attached the new excel sheet that contains more detail description and sample output on the right side of the spreadsheet.

    Thank you really appreciate your help

  6. #6
    Registered User
    Join Date
    02-27-2013
    Location
    Columbus, Ohio, USA
    MS-Off Ver
    Excel 2011
    Posts
    4

    Re: Pairing Two Pick Orders using VBA

    Quote Originally Posted by alansidman View Post
    Not sure if the attached is what you are looking for. If yes, then here is what I did. Took about 3 minutes.
    Inserted column A and numbered records 1 up.
    Sorted table including column A based upon Columns and then rows
    Added column E and numbered 1 up.
    Resorted this according to Column A.

    If needed this can be applied to some VBA.
    Thanks alansidman. but i think i need to come out with some code that will help to match and pair the group according to their similar column number. is there any way that i can do that?

    really appreciate your help. thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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