A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Use a formula that combines the text from column A with a sequential number based on the row.
Assume:
- Column A has the insurance abbreviation (e.g., BH) starting in A2.
- The first client ID should be BH26001 in row 2, BH26002 in row 3, etc.
In C2 enter:
=A2 & (26000 + ROW(A1))
Explanation of this formula:
-
A2is the insurance abbreviation. -
ROW(A1)returns 1 in row 2, 2 in row 3, etc. -
26000 + ROW(A1)gives 26001 in row 2, 26002 in row 3, and so on. -
&concatenates the abbreviation with the number.
Then use the fill handle to copy the formula down column C so each row increases the number by 1 and keeps the abbreviation from that row.
If only the numeric part is needed in column C (without the abbreviation), put the formula above in another column (for example D) and leave C as numeric.
References: