+ Reply to Thread
Results 1 to 2 of 2

Auto populate serial number when there is data in Column A

  1. #1
    Forum Contributor
    Join Date
    03-12-2012
    Location
    Singapore
    MS-Off Ver
    MS 365
    Posts
    532

    Auto populate serial number when there is data in Column A

    In Column A, user input the date. Column B will have the Serial number. At 1st i type in Formula,
    if(isblank(A10),"",B9+1)
    however, when they delete row i get Ref error. lets say if they deleted one row, let say they copy and paste one row to another spreadsheet. N after that, they delete the entire row. They get the Ref error, they re-drag again. Hence i will get Duplicate serial number.
    Hence i tried typing the vba code as below.

    Please Login or Register  to view this content.
    However, i encounter the following problem
    1) Lets say if someone accidentally type in SOmethg in A10, B10 will have a number, however, if he delete the value in A10, B10 still have a value.

    2) the numbering work if the person type in the value 1 by 1 in Column A, it does not work if he copy a range n paste. the Serial number onli appear in the last cell

    3) If he drag in Column A, the Serial number onli appear in the last cell

    Anyone can advice?

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,653

    Re: Auto populate serial number when there is data in Column A

    Try this...

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

+ 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] Auto Populate Serial Number From Total number
    By sanju2323 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 08-04-2015, 04:33 PM
  2. [SOLVED] Populate Serial Number in VBA Macro
    By Kooper in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 05-29-2013, 04:42 AM
  3. [SOLVED] Serial Number Allotment based on data in Column B
    By NeedForExcel in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-14-2013, 09:13 AM
  4. [SOLVED] Unable to make a auto serial number column.
    By Jeetu_pa84 in forum Excel General
    Replies: 3
    Last Post: 05-22-2012, 06:11 AM
  5. Overwrite the advanced filtered data serial number column with unique number
    By krjoshi in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-15-2012, 12:38 AM
  6. Replies: 3
    Last Post: 02-28-2012, 11:54 AM
  7. Auto Populate Serial No.
    By anwitha in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-27-2011, 06:55 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