+ Reply to Thread
Results 1 to 10 of 10

Batch sequencing

  1. #1
    Registered User
    Join Date
    10-22-2015
    Location
    Antwerp
    MS-Off Ver
    2010
    Posts
    7

    Batch sequencing

    Hi all,

    I am trying to generate a batch sequence in XL.

    Batch sequence is a fixed prefix of one cell (xxxx) which is the offer nr. (CEL D1)

    Following that is a string of 3 digits which represents the lot number. The lot number consists of the amount of models given in column C after this number is completed it is then the next 3 digit lot for the amount of time given in column C.

    Sequence needs to be generated in column I, as per example.

    Attachment 426423

    I am looking for a formula to do this, since currently this is done manually "bleh" for about 1300 lines.

    I am sure there are better solutions for this

  2. #2
    Registered User
    Join Date
    10-22-2015
    Location
    Antwerp
    MS-Off Ver
    2010
    Posts
    7

    batch sequence

    Hi all,

    I am trying to generate a batch sequence in XL.

    Batch sequence is a fixed prefix of one cell (xxxx) which is the offer nr. (CEL D1)

    Following that is a string of 3 digits which represents the lot number. The lot number consists of the amount of models given in column C after this number is completed it is then the next 3 digit lot for the amount of time given in column C.

    Sequence needs to be generated in column I, as per example.

    Knipsel.PNG

    I am looking for a formula to do this, since currently this is done manually "bleh" for about 1300 lines.

    I am sure there are better solutions for this

  3. #3
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,445

    Re: batch sequence

    Welcome to the Forum, unfortunately:

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.

    Thread Closed.

  4. #4
    Forum Contributor
    Join Date
    01-18-2013
    Location
    Prague
    MS-Off Ver
    Excel 2013
    Posts
    159

    Re: Batch sequencing

    For the formula in column C try with this.

    =NUMBERVALUE(MOD(ROUNDDOWN(IF(AND(D7=D6,E7=E6,F7=F6),J6,J6+1)/10^2,0),10)&MOD(ROUNDDOWN(IF(AND(D7=D6,E7=E6,F7=F6),J6,J6+1)/10,0),10)&MOD(IF(AND(D7=D6,E7=E6,F7=F6),J6,J6+1),10))

    If you want to see only the first number, go with conditional formatting with this formula:
    =C7=C6

    The above formulas are valid for cell C7.

  5. #5
    Registered User
    Join Date
    10-22-2015
    Location
    Antwerp
    MS-Off Ver
    2010
    Posts
    7

    Re: batch sequence

    Hi My apologies, I tried deleting the post.

    Can ayone fin the solution for this here?

  6. #6
    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
    52,926

    Re: Batch sequencing

    Because you already have a suggestion on your other thread on this, I have merged them for you
    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

  7. #7
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Batch sequencing

    I take it that it is column I that you want to be generated. I made a helper column J to generate the sequence to the right of the value in D1
    This is the formula entered in J7 and filled down. This uses the values in columns D and E to generate a key to trigger the increment in number.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    In column I enter this in I7 and fill down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    C
    D
    E
    F
    G
    H
    I
    J
    7
    sj 2m 5290-001
    1
    8
    sll
    1
    5290-002
    2
    9
    sll
    1
    5290-002
    2
    10
    sll 2s 5290-003
    3
    11
    sll 2s 5290-003
    3
    12
    sll 2m 5290-004
    4
    13
    sll 2m 5290-004
    4
    14
    sll 2m 5290-004
    4
    15
    srt
    1
    5290-005
    5
    16
    srt 2s 5290-006
    6
    17
    srt 2s 5290-006
    6
    18
    srg 2s 5290-007
    7
    19
    psl
    1
    5290-008
    8
    20
    psl
    2
    5290-009
    9
    21
    psl
    2
    5290-009
    9
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  8. #8
    Registered User
    Join Date
    10-22-2015
    Location
    Antwerp
    MS-Off Ver
    2010
    Posts
    7

    Re: Batch sequencing

    @ newdoverman.

    Many thanks works like a charm. Didn't think of using a max function in a growing array. Nice insight! Many thanks man.

    rep point x2 !!

  9. #9
    Registered User
    Join Date
    10-22-2015
    Location
    Antwerp
    MS-Off Ver
    2010
    Posts
    7

    Re: Batch sequencing

    Sorry double post again. MODS please delete.
    Last edited by SugarGreg; 10-26-2015 at 04:37 AM.

  10. #10
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Batch sequencing

    You're welcome. Thanks for the feedback.

+ 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. [SOLVED] Formula to round down on a batch and exclude anything under a full batch
    By toomuchbrew in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-15-2012, 11:04 AM
  2. Replies: 0
    Last Post: 06-19-2012, 11:36 AM
  3. [SOLVED] Row Sequencing
    By Gary L Brown in forum Excel Formulas & Functions
    Replies: 24
    Last Post: 09-06-2005, 09:05 AM
  4. Row Sequencing
    By Mark in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 07:05 AM
  5. Row Sequencing
    By Gary L Brown in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 09-06-2005, 06:05 AM
  6. Row Sequencing
    By Gary L Brown in forum Excel Formulas & Functions
    Replies: 24
    Last Post: 09-06-2005, 04:05 AM
  7. [SOLVED] Row Sequencing
    By Mark in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  8. Row Sequencing
    By Mark in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM

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