Recent chats
ASKGEEZ Q&A GUIDETechnology & devices

How do I choose stable record IDs for a spreadsheet that will keep growing?

Quick answer

Give each record its own ID once, store it in a dedicated column, and keep it unchanged when sorting, filtering, editing, or moving rows. Don’t use the row number as the ID: it describes a position, not the record. Write down the format, assignment rule, and duplicate-handling process. If an ID is duplicated or missing, investigate and resolve it rather than changing IDs automatically or reusing an old one.

LET’S WORK THROUGH IT

The question, the details, the next step.

Question

I’m building a spreadsheet that will keep growing. What makes a good record ID, and why shouldn’t I just use the row number?

Geez

A good record ID is a value assigned to one record and kept with it for its lifetime. It should be unique within the set of records you manage, and it should not depend on where the row happens to appear. Sorting, filtering, inserting rows, or moving a record should not change its ID.

A row number is a location, not an identity. If row 12 is moved or sorted, the item that used to be there may now be somewhere else. A row-number ID can then point to the wrong record or be assigned to a different one. Instead, use a dedicated column such as Record ID and treat its values as permanent.

Choose a format your tools and collaborators can handle consistently. A simple sequential value such as REC-0001 can be easy for people to read, while a less meaningful token can be useful when people should not infer anything from the ID. Either way, keep the format consistent. Don’t build changeable details—such as a person’s department or a record’s current status—into the ID, because those details may change while the record remains the same.

Follow-up question

How should I assign IDs as I add records, especially if several people edit the spreadsheet?

Geez

Write one clear rule that says who or what assigns each new ID, when assignment happens, and how you avoid collisions. For a manually managed sheet, one person might assign the next unused ID when a new record is accepted. If several people add rows, agree on a shared process before they do so; two people independently choosing the same next number can create a duplicate.

For example, a small inventory might use INV-0001, INV-0002, and so on. The rule could say: “Assign the next unused INV- number when adding a new inventory record. Keep it unchanged if the record is edited or moved. Never assign a retired ID to a different item.” The numbers are illustrative; choose a prefix and format appropriate to your own records.

Avoid formulas that calculate an ID from the current row position. If you use a spreadsheet feature or another system to generate values, check that the value is stored with the record and remains unchanged when rows are rearranged. Test your chosen process on a copy before relying on it for a growing set.

Follow-up question

What do I do when I find a duplicate or a blank ID? I also have records that look similar.

Geez

Treat a duplicate or blank as something to review, not as a prompt to automatically renumber the sheet. First compare the relevant records and any available notes or history to establish whether they are two entries for the same real-world item or two different items. Similar names or descriptions alone don’t prove that two rows represent the same record.

If two rows are genuinely the same record, decide which entry to retain and document what happened to the other one, according to your team’s recordkeeping needs. If they are different records, give the one with the missing ID a new unused ID. If the same ID has been assigned to two different records, preserve the evidence, agree which record keeps it, and assign a new ID to the other record. Record the correction and its reason so a later editor can understand it.

Don’t reuse an old ID for a new record just because its former row was deleted or retired. Keeping retired IDs out of circulation makes it less likely that an old note or reference will point to a different item later.

Follow-up question

Can you give me a small policy I can paste into the spreadsheet notes?

Geez

Here’s a copyable starting point. Replace the bracketed parts with decisions that fit your spreadsheet, and make sure the people who add records can follow the same rule:

“Record ID policy

  1. Each record receives one unique ID in the [Record ID] column.
  2. IDs use this format: [prefix and pattern]. Assign them when [assignment point]; [responsible person or process] checks that the ID has not already been used.
  3. Keep an assigned ID unchanged when editing, sorting, filtering, or moving a record. Do not use row numbers as IDs or reuse IDs from deleted or retired records.
  4. For a blank or duplicate ID, pause and compare the records. Resolve the issue using [review process or responsible person], then note the correction and reason in [change log or notes location].
  5. Review new entries for missing or repeated IDs [when or how often].”

Keep a short change log if people may need to understand ID corrections later. The policy doesn’t decide whether similar-looking rows are actually the same item; that requires checking your records and choosing a consistent rule for your situation.

A practical checklist

  • Create a dedicated column for record IDs, separate from row numbers and editable descriptions.

  • Choose and document a consistent ID format and the point at which each ID is assigned.

  • Define who or what checks new IDs for duplicates, particularly if multiple people add records.

  • Keep IDs unchanged when rows move or record details change; do not reuse retired IDs.

  • Specify how to review, correct, and document missing or duplicate IDs.

A few more useful answers

Should an ID include a person’s name or a record’s status?

Usually, keep changeable or descriptive details in their own columns. An ID should continue to identify the same record even if its name, owner, or status changes.

Can I change an ID if it looks confusing?

Avoid casual changes: other notes or files may already refer to it. If a correction is necessary, document the old and new values and the reason, and update any known references.

What if I’m combining records from two spreadsheets?

Check for collisions and clarify which ID system applies before merging. If IDs can overlap between the original spreadsheets, document a consistent way to distinguish the records rather than assuming matching IDs mean matching records.

YOUR QUESTION. YOUR DETAILS.

Let’s work through your situation.

Get a tailored answer or help with your next task. Starts at $1, with a quote before you pay.

Ask your own question
← Back to Geez at Work