FormulaCraft

How to add a prefix to every cell in a column in Excel and Google Sheets

Topic:Text manipulation
Excel & Google Sheets
="ID-"&A2

Verified example

Computed by a real spreadsheet engine on the sample data below.

Code
001
002
003
004

="ID-"&A2ID-1

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1In the output column, type the prefix in quotes followed by & and the cell reference: ="ID-"&A2.
  2. 2Press Enter, then copy the formula down the column to apply it to all rows.
  3. 3If the prefix is stored in a fixed cell (e.g., D1), use an absolute reference: =$D$1&A2.
  4. 4To overwrite the original column in place, paste the formula results as values: copy the output, then Paste Special > Values Only over the original column.
  5. 5You can also use CONCAT: =CONCAT("ID-",A2) — both approaches produce identical results.

Tips

Need it for your exact data?

Describe your columns in plain English and get the precise formula for your sheet, with the right Excel or Sheets syntax.

Frequently asked

Can I add a prefix to a number without converting it to text?

The result will always be text. If you need the column to remain numeric, reconsider — prefixed numbers like 'ID-123' are inherently text strings.

What if different rows need different prefixes?

Store the per-row prefix in a helper column and reference it: =B2&A2 where B2 contains the prefix for that row.

More on Text manipulation

See all →

Formulas used

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: