+ Reply to Thread
Results 1 to 3 of 3

Add incremental, non consecutive, unique ID for non blank rows

  1. #1
    Registered User
    Join Date
    03-07-2020
    Location
    Нови Сад Србија
    MS-Off Ver
    2016
    Posts
    6

    Add incremental, non consecutive, unique ID for non blank rows

    Example table has 2 columns and 10 rows. First column consists of names manually entered. I need to produce unique id in second column in order data are entered in columns. When I enter name in A3, B3 should be 1, if the next name is entered in A6, then B6 is 2, next entered name is in A1, and B1 is 3.
    Is there a way this can be done? My actual table have several hundreds of rows so its hard to keep track manually.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,794

    Re: Add incremental, non consecutive, unique ID for non blank rows

    It would be a lot simpler if you just added new data to the bottom of a contiguous set of data.

    Pete

  3. #3
    Registered User
    Join Date
    03-07-2020
    Location
    Нови Сад Србија
    MS-Off Ver
    2016
    Posts
    6

    Re: Add incremental, non consecutive, unique ID for non blank rows

    Yes it would, but real life problems are never simple. I would have to sort previous entries (which isnt easy because there are lot of merged cells preventing simlpe sorting), find the latest entry (biggest number) and then enter the value in target cell and incremented number in a column screen and a half to the right (my table have more than 50 columns). Its doable but not easy. Thats why I need help making it easier. Maybe a macro would do it, but im not familiar with macros.

+ 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. Code selects first and last rows with consecutive values and with unique values
    By Ochimus in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-24-2015, 08:38 PM
  2. Hide Rows for First Set of Consecutive Blank Cells in Column
    By pastuslm in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-22-2015, 03:22 PM
  3. Replies: 6
    Last Post: 02-27-2013, 12:35 AM
  4. [SOLVED] How to Delete Multiple Consecutive Blank Rows - Delete all Blank Rows
    By raw_geek in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 11-16-2012, 03:17 PM
  5. Replies: 4
    Last Post: 07-05-2012, 12:05 PM
  6. Replies: 2
    Last Post: 02-23-2012, 04:52 AM
  7. Extract unique rows and incremental copy
    By vedamv in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-29-2006, 03:48 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