+ Reply to Thread
Results 1 to 4 of 4

code give numbering to a record

  1. #1
    Forum Contributor
    Join Date
    11-17-2015
    Location
    India
    MS-Off Ver
    2013
    Posts
    365

    code give numbering to a record

    I have three columns
    Where in Column B I have a ID.
    I want to find first consecutive id and give all same number as “1” in column C
    And all rest should be numbered as “2”

    For example
    a) row2 has id JIOKO2N15069 so it numbered as “1” and then row 20, 21, 22 and 23 has same id hence it numbered as 2 in column c
    b) Row3 and 4 has id 07248 it numbered as “1” and then row 6 has same id hence it numbered as 2 in column c
    c) Row 7 to 12 and 4 has id JIOV4SV14748 it numbered as “1” and then row 17 and 18 has same id hence it numbered as 2 in column c


    Please provide code to give numbering 1 and 2 in column C.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    07-28-2015
    Location
    Pruszków, Poland
    MS-Off Ver
    365 Business
    Posts
    58

    Re: code give numbering to a record

    Hi, maybe a formula would be ok?
    Try the attachment

  3. #3
    Forum Contributor
    Join Date
    11-17-2015
    Location
    India
    MS-Off Ver
    2013
    Posts
    365

    Re: code give numbering to a record

    Ok with formula. But it is not working. Please refer attachment
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    07-28-2015
    Location
    Pruszków, Poland
    MS-Off Ver
    365 Business
    Posts
    58

    Re: code give numbering to a record

    i've change the formula in new file

+ 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] VBA Code give an error
    By chris_burton in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-06-2015, 06:28 AM
  2. [SOLVED] give me explanation of code
    By keshavtale in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 03-22-2015, 01:30 AM
  3. [SOLVED] How to Give Password for VBA Code
    By atulexel79 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-29-2014, 06:51 AM
  4. Replies: 1
    Last Post: 11-16-2012, 09:25 AM
  5. Trying to Give New Command Button Code from Another Sheet's Code
    By MegaRush in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-10-2012, 09:43 AM
  6. Sequence numbering for each duplicate record
    By excel.help in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-01-2011, 05:48 PM
  7. give me the code on
    By saunakg in forum Excel General
    Replies: 0
    Last Post: 04-25-2005, 01:33 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