+ Reply to Thread
Results 1 to 24 of 24

packing list serial number generator for boxes

  1. #1
    Registered User
    Join Date
    10-31-2018
    Location
    chennai,India
    MS-Off Ver
    2016
    Posts
    14

    packing list serial number generator for boxes

    ​i want to pack books in boxes based on the total count route wise,area wise and subject code wise
    the excel sheet has the following columns
    centrecode,routeno,areano,subjectcode,subjectname,noofpackets



    for example
    1006 1 1 n23 history 80 --> after this a new column has to be created where the total no of boxes required must appear,serial number of six digits from- to,it must be the continuity of numbers for each centrecode


    can some one help me to do this using vba , i am new to vba but i need to do this to stay in my present job.
    this is very urgently required

  2. #2
    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,884

    Re: packing list serial number generator for boxes

    Please read the yellow banner at the top of this page on how to attach a file.
    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

  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,884

    Re: packing list serial number generator for boxes

    Rule 03: Cross-posting Without Telling Us

    Your post does not comply with Rule 3 of our Forum RULES. Do not cross-post your question on multiple forums without telling us about your threads on other forums.

    Post a link to any other forums where you have asked the same question.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Read this to understand why we ask you to do this.

    I have added the crosspost reference for you today. Please comply with this and all our rules in the future

    crosspost: https://www.ozgrid.com/forum/index.p...tor-for-boxes/

  4. #4
    Registered User
    Join Date
    10-31-2018
    Location
    chennai,India
    MS-Off Ver
    2016
    Posts
    14

    Re: packing list serial number generator for boxes

    i am very sorry for posting the same query in multiple sites but my activity is very urgent that is why i thought if any one of these forums can help me at the earliest it will be helpful to me
    this is just an emergency situation for me to stay in my job.hope you will understand and so far i have not received any responses also for the same

  5. #5
    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,884

    Re: packing list serial number generator for boxes

    Posting on multiple sites is a deterrent to getting a quick response. Once people see that you have crossposted, many will ignore the post as they do not wish to waste time working on something that may already be resolved. Works against your thoughts for getting a quick response. Also, you have not responded to my request in post #2. What to you expect as we are not mind readers. If you want help, then help us to help you by being responsive.

    Additionally, if you have an "emergency" then this is not the place to go. You should hire a local expert as we are a global forum hosted by volunteers who provide solutions at their leisure when and if they are inclined. Patience is a virtue here.

  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: packing list serial number generator for boxes

    @luvyogesh100

    See the attached file.

    You did not explain all criteria.
    Attached Files Attached Files
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  7. #7
    Registered User
    Join Date
    10-31-2018
    Location
    chennai,India
    MS-Off Ver
    2016
    Posts
    14

    Re: packing list serial number generator for boxes

    conditions regarding the serial number generation


    in the first row data
    1006 1 1 01 GERMAN 16 14
    there are 16 nos of 30s count and 14 nos of 10s count
    so 16 times it has to generate 30s copies serial numbers (as shown in the output)
    next 14 times of 10s copies serial numbers ( as shown in output)
    this has to continue till end of file that is till the last row

    THE SAME I HAVE TYPED IN THE ATTACHED EXCEL FILE
    Attached Files Attached Files

  8. #8
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: packing list serial number generator for boxes

    Explain why the last one is 30, and all the other pieces are 10.

    In which column we could see the criteria.

  9. #9
    Registered User
    Join Date
    10-31-2018
    Location
    chennai,India
    MS-Off Ver
    2016
    Posts
    14

    Re: packing list serial number generator for boxes

    I have just typed the criteria in the excel sheet


    each packet contains either 30 copies or 10 copies which is mentioned in the column number F and G ( 30s & 10s)
    that is how the output table is created manually

    if 5 packets of 10s count is available means 5 rows of serial number with packet number will appear
    after that if 30s count is available for the same subject means that will follow next

    I am trying all possible ways to get it but it is not happening that is why I need assistance from excel experts like you

    kindly help me to solve this

  10. #10
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: packing list serial number generator for boxes

    I don't understand the criteria.

  11. #11
    Registered User
    Join Date
    10-31-2018
    Location
    chennai,India
    MS-Off Ver
    2016
    Posts
    14

    Re: packing list serial number generator for boxes

    hi
    let me explain you

    each row of data has got 30s count and 10s count of the subject,each packet can contain either 30 copies of the subject or 10 copies of the subject

    for example first row in the excel sheet contains 16nos of 30s count and 14 nos of 10s count ( column F & G )

    in our output we need to create 16 rows for 30s count and 14 rows for 10s count for the first row data

    each row will have serial number like how it is given in the excel sheet output table

    please let me know if you need further clarifications

  12. #12
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: packing list serial number generator for boxes

    If you want further help.

    Add in your excel file, why this is 10 or 30 and why it has to be this result.

    in our output we need to create 16 rows for 30s count and 14 rows for 10s count for the first row data
    This one is not clear to me either.

  13. #13
    Registered User
    Join Date
    10-31-2018
    Location
    chennai,India
    MS-Off Ver
    2016
    Posts
    14

    Re: packing list serial number generator for boxes

    i have made changes in the sample file for you to understand easily
    Attached Files Attached Files

  14. #14
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: packing list serial number generator for boxes

    This is a whole other question than the one you asked before.

    It is normal practice to solve first question 1, and then ask for a solution in question 2.

  15. #15
    Registered User
    Join Date
    10-31-2018
    Location
    chennai,India
    MS-Off Ver
    2016
    Posts
    14
    Quote Originally Posted by oeldere View Post
    This is a whole other question than the one you asked before.

    It is normal practice to solve first question 1, and then ask for a solution in question 2.
    Hi
    May be I was unable to explain it properly in my previous posts but the process for the serial number generation is what I have explained in detail in the last attached worksheet

    Now even if u just send me how to create the serial number generation means I shall try to manage somehow but I don’t know if my boss will accept to my solution tomorrow

    If I am able to solve this means I will be continuing my job else I may be relieved

    I don’t know how to create this in vba that’s why shared for help in the forum and I am able to see that only you have responded

    Anyway if you can give me some idea on how to do this is also most welcome

  16. #16
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: packing list serial number generator for boxes

    Try
    Please Login or Register  to view this content.

  17. #17
    Registered User
    Join Date
    10-31-2018
    Location
    chennai,India
    MS-Off Ver
    2016
    Posts
    14

    Re: packing list serial number generator for boxes

    omg thanks to you and the almighty

    the code works fine
    thank you very much for understanding the query and solving it

  18. #18
    Registered User
    Join Date
    10-31-2018
    Location
    chennai,India
    MS-Off Ver
    2016
    Posts
    14

    Re: packing list serial number generator for boxes

    Hi a small trouble in the code when i tried running it in the actual data
    it shows error in this line saying object defined error
    .Rows(2).Resize(n) = b

  19. #19
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: packing list serial number generator for boxes

    I just wrote the code for the workbook you attached, so no idea about your "actual data".

  20. #20
    Registered User
    Join Date
    10-31-2018
    Location
    chennai,India
    MS-Off Ver
    2016
    Posts
    14

    Re: packing list serial number generator for boxes

    Hi

    the actual data is also the same no of columns only but when i added a command button and copied the code,run it,showed the error
    but the same code works in other new workbooks

  21. #21
    Registered User
    Join Date
    10-31-2018
    Location
    chennai,India
    MS-Off Ver
    2016
    Posts
    14

    Re: packing list serial number generator for boxes

    hi
    what i have done now is copied the actual data to a new workbook,added the code in it and able to see it works fine but I am wondering why the same code is not working the original data

  22. #22
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: packing list serial number generator for boxes

    Absolutely no idea...

  23. #23
    Registered User
    Join Date
    10-31-2018
    Location
    chennai,India
    MS-Off Ver
    2016
    Posts
    14

    Re: packing list serial number generator for boxes

    no problem thank you very much for helping me

  24. #24
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: packing list serial number generator for boxes

    If that takes care of your original question, select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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. Serial Number generator
    By gvijaykumar328 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-24-2019, 08:15 AM
  2. [SOLVED] Serial Number Generator
    By mel2131 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-13-2018, 05:09 AM
  3. [SOLVED] Serial Number generator by Day, two week cycle, pattern driven?
    By Speshul in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-14-2014, 12:52 PM
  4. Serial number generator for document (application form)
    By jaysakle in forum Excel General
    Replies: 2
    Last Post: 03-04-2014, 03:51 AM
  5. Packing alphabets inside boxes according to the condition
    By thilag in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-07-2013, 07:57 AM
  6. Packing alphabets inside boxes according to the condition
    By thilag in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-05-2013, 02:26 PM
  7. Finding a serial number in a list of serial numbers
    By zocoloco in forum Excel General
    Replies: 2
    Last Post: 02-04-2009, 05:20 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