+ Reply to Thread
Results 1 to 3 of 3

Unique, non row dependent ID

  1. #1
    Registered User
    Join Date
    06-21-2013
    Location
    trondheim, norway
    MS-Off Ver
    Office 2010, excel version 14
    Posts
    1

    Unique, non row dependent ID

    Scenario:

    Need to assign a unique ID to ever row in my spreadsheet file. The ID can not be dependent upon the row number since I would like to have the opportunity to add rows in the future, below is an example just to illustrate what I'm looking for

    | ID | Something |
    | 1 | thing1 |
    | 2 | thing2 |
    | 3 | thing3 |
    | 4 | thing4 |

    If I want to add a row inbetween thing2 and thing3 it would look something like this:

    | ID | Something |
    | 1 | thing1 |
    | 2 | thing2 |
    | 5 | thing5 |
    | 3 | thing3 |
    | 4 | thing4 |

    The number of rows in my document is several hundred so it would be nice to have some kind of formula that achieves this, preferably no user defined macros since the "soultion" needs to be implemented for several users, i.e. not just me on my local machine.

    Any help would be greatly appreciated.

  2. #2
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: Unique, non row dependent ID

    If you need a unique ID for every record in your database then a macro loop with a time stamp might be the way to go
    Elegant Simplicity............. Not Always

  3. #3
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Unique, non row dependent ID

    This might have some mileage
    Put 1 in A1
    Then in A2, Drag/ Fill Down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    This will handle Adding /Deleting rows
    However you will not be able to add an indexible item in that row.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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