
Get the Add Text to Cells Practice Workbook
Follow Leila’s examples and practice adding prefixes and suffixes using Flash Fill, formulas, and custom number formatting.
Add Text with Flash Fill
Flash Fill recognizes patterns in the examples you type. It’s ideal for one-time changes, such as adding ID before numbers or adding a prefix to employee names, without writing a formula.
Suppose we have a list of numbers, and we need to append the text “ID” to the beginning of each number.

Type ID 210 next to the value 210 in column A. Press Enter, then start entering the next example.

If Excel recognizes the pattern, press Enter to accept the suggested results.

If you are happy with the offerings, press ENTER to commit the remainder of the list.

Flash Fill is particularly useful for repetitive changes across long lists. Review the results to make sure Excel has interpreted the pattern correctly.

Use Ctrl+E to Run Flash Fill
You can also run Flash Fill with the shortcut Ctrl + E after you have entered the first example.

We can do the same thing with text. If we have a set of names, and we want to place the characters “ID-“ before each name, type an example of “what you want” next to the first entry in the list and press CTRL+E.

For more examples, including splitting names, creating email addresses and fixing capitalization, see our complete Flash Fill tutorial.
Add Text with Excel Formulas
Unlike Flash Fill, formulas update when the referenced cells change. Use the ampersand (&) to join text in quotation marks with a cell reference.
Add Text Before a Cell Value
If the value is in A2:
="ID " & A2The space after ID is inside the quotation marks, so the result is ID 210 rather than ID210. Copy the formula down to apply it to the remaining rows.

💡 Tip: Put a space inside the quotes if you want spacing.
Use Fill Series to replicate the formula to the adjacent rows and we have our modified data.

The advantage of this method is that if one of the source values (Column A) changes, we get an immediate update in the formula results (Column B).

Add Text After a Cell Value
To add text at the end, place another ampersand after the cell reference and enter the suffix in quotation marks. For example, ="ID-"&A2&" Sales" returns ID-Tom Sales when A2 contains Tom.

BONUS: If you used Flash Fill to produce the “before and after text” example, and the data changed, you can manually update the result by doing the following:
To rerun Flash Fill after the source data changes: Delete the old output values, type a fresh example next to the first source value, and press Ctrl+E to fill the remaining results. Flash Fill doesn’t update its previous output automatically.

Add Text with CONCAT and TEXTJOIN
If you are using Excel 2019, Excel 2021, Excel 2024, or Microsoft 365, you have access to two modern functions that replace the older CONCATENATE function: CONCAT and TEXTJOIN.
Microsoft recommends using CONCAT instead of CONCATENATE going forward. CONCATENATE may be removed from future Excel versions.
Use CONCAT for Prefixes and Suffixes
CONCAT joins text strings and cell references without a delimiter. The syntax is straightforward:
=CONCAT("ID ", A2)This returns “ID 210” (assuming A2 contains 210).

It works the same way as the ampersand method, but CONCAT can also accept a cell range as an argument, which the ampersand cannot.
For example, to combine values across A2:C2 into one string:
=CONCAT(A2:C2)The advantage of CONCAT over the ampersand is readability. When you are joining three or more pieces of text, CONCAT keeps the formula cleaner:
=CONCAT("ID-", A2, " Sales")Compare that to the ampersand equivalent:
="ID-" & A2 & " Sales"Both return the same result. Use whichever you find easier to read and maintain.
If you’re combining labels with dates, percentages or currency values, see how to combine text and numbers without losing number formatting.
Use TEXTJOIN with Separators
TEXTJOIN is the better choice when you need a delimiter (a separator character) between each value. It also lets you skip blank cells automatically.
The syntax:
=TEXTJOIN(delimiter, ignore_empty, text1, [text2], ...)Suppose column A has first names and column B has last names. You want to create an ID like “Tom-Smith” with a hyphen as the separator:
=TEXTJOIN("-", TRUE, A2, B2)
The TRUE argument tells Excel to ignore empty cells. This matters when one of the referenced cells is blank. With TEXTJOIN, you will not get a stray hyphen like “–Smith”. With a simple ampersand formula, you would.
TEXTJOIN also accepts ranges. To combine all values in A2:D2 separated by a comma and space:
=TEXTJOIN(", ", TRUE, A2:D2)
CONCAT vs. TEXTJOIN vs. Ampersand
- Use the ampersand (&) for quick, one-off joins where you are combining two or three items.
- Use CONCAT when joining a range of cells without a separator or when you prefer function-style syntax.
- Use TEXTJOIN when you need a consistent delimiter between values or when some cells may be blank.
Availability: CONCAT and TEXTJOIN are available in Microsoft 365, Excel 2019, Excel 2021, Excel 2024, and Excel for the web. They are not available in Excel 2016 or earlier.
If you are on an older version, stick with the ampersand or CONCATENATE.
Add Text with Custom Number Formatting
Formulas and Flash Fill create new text results. Custom number formatting works differently: it changes how a cell appears while keeping its underlying value unchanged. This is useful when adding labels like ID or miles to numbers you still need for calculations.
Most users are familiar with formatting presets like the “Long Date” style, the “Currency”, style, and the “Text” style just to name a few.
But what many users are not aware of is that you can supplement existing data with additional text and numbers.
Imagine a spreadsheet where the users enter a mileage value and the text “miles” is displayed next to the number in the same cell.

Using our previous example’s data, we can select the data and press CTRL+1 to open the Number Formatting dialog box.

Selecting the category CUSTOM, we can define the formatting of our choosing.
If we want to place the letters “ID “ (with a space at the end) we would enter the text in double-quotes and follow the text with a “#” character (no quotes).
"ID "#The quotation marks define the text Excel displays. The # is a placeholder for the number. A cell containing 210 appears as ID 210, but its underlying value remains 210.

If you want to implement thousands separators or decimal points for fractions, you can use of codesets listed in the same window.

Clicking OK reveals the newly formatted data.

The great advantage to Custom Number Formatting is that the numbers remain numbers and can be utilized in calculations. Looking back at the mileage example, it is still possible to calculate the total and average miles of the set.

For more examples, including labels, leading zeros and displaying large values in millions, see our guide to Excel custom number formatting.
If you need to remove the custom formatting from the data, you can set the cell’s style to GENERAL.

Apply Custom Formatting to Text Values
We can see that by placing the text “Tom” in a previously formatted cell, the custom formatting does not carry over.

This is because we defined a custom formatting rule for the numbers (more specifically, the positive numbers) but not for the text.
We can update the Custom Number Formatting to have a rule for the numbers as well as the text.

"ID "#;;;"ID "@The first section displays positive numbers with the ID prefix. The second and third sections are empty, so negative numbers and zeros are hidden. The fourth section uses @ to display the original text after the prefix. For example, Tom appears as ID Tom.

Note: This format is designed for the tutorial example. If your data includes negative numbers or zeros that should remain visible, those sections need their own formatting rules.
Add Text with Copilot in Excel
Copilot in Excel can help when you want to add or transform text based on the meaning of your data, rather than simply adding the same prefix or suffix to every value.
For example, suppose you have a list of product names and want to add a category before each one:
- Running Shoes becomes Footwear – Running Shoes
- Yoga Mat becomes Fitness – Yoga Mat
- Protein Bar becomes Nutrition – Protein Bar
With the appropriate Microsoft 365 Copilot access, you can ask Copilot to help categorize the products and add the results to your worksheet.
How to Add Text with Copilot
- Organize your source data in an Excel Table with clear column headings.
- Open Copilot in Excel using the Copilot button.
- Choose Edit mode if you want Copilot to make changes in the workbook.
- Enter a prompt such as: “Add a new column that categorizes each product and combines its category with the product name, separated by a hyphen. Use Footwear, Fitness or Nutrition where appropriate.”
- Review the results and correct any categories Copilot assigned incorrectly.
Copilot can work directly with worksheet data, but it’s important to review the changes before relying on them.
When to Use Copilot Instead of a Formula
Copilot is useful when the task requires interpreting context, such as deciding which department, product category or label belongs to an entry.
For a fixed prefix such as SKU-, you don’t need AI. A formula is simpler and more predictable:
="SKU-"&A2
It produces the same result every time and updates automatically when A2 changes.
Copilot Limitations
- Copilot availability depends on your Microsoft 365 subscription and organizational settings.
- AI-generated categories and labels need to be reviewed for accuracy.
- Changes made directly to worksheet values aren’t the same as dynamic formula results.
- For straightforward text additions, formulas and custom number formatting are usually better choices.
Important update: Microsoft retired the =COPILOT() worksheet function on September 14, 2026. Existing formulas may return a #NAME? error when recalculated. Use Copilot in Excel through its pane instead.
See Microsoft’s current Copilot in Excel guide for availability and instructions.
Which Method Should You Use?
With five methods available, picking the right one comes down to three questions: Do you need the result to update automatically? Does the underlying value need to stay numeric? And what version of Excel are you running?
Use Flash Fill when you need a quick, one-time transformation and do not care about the result updating if the source data changes. It works with both text and numbers, requires no formula knowledge, and handles thousands of rows in seconds. The shortcut is Ctrl+E.
Use the ampersand (&) operator when you need a dynamic result that updates whenever the source cell changes. It is the fastest formula approach for simple prefix or suffix additions and works in every version of Excel from 2007 onward.
Use CONCAT or TEXTJOIN when you are joining multiple cells or need a consistent delimiter between values. TEXTJOIN is especially useful when some cells may be blank because its TRUE argument skips empties automatically. Both functions require Excel 2019 or later (or Microsoft 365).
Use Custom Number Formatting when you need to display text alongside a number but keep the number usable in calculations. This is the only method where SUM, AVERAGE, and chart references continue to work because the underlying value never changes. It does not work for text-only cells unless you add a text section to the format code.
Use the COPILOT function when you need AI judgment rather than simple concatenation. It is suited for classifying, tagging, or transforming data where a fixed formula would be difficult to write. Keep in mind that results are non-deterministic and require a Copilot license.
Here is a quick reference:
The best method depends on three things: whether the result needs to update, whether the original value must remain numeric, and how complex the change is.
| Method | Updates? | Numeric Value? | Best For |
|---|---|---|---|
| Flash Fill | No | Creates a text result | Fast, one-time changes |
| Ampersand (&) | Yes | Returns text | Simple prefixes and suffixes |
| CONCAT / TEXTJOIN | Yes | Returns text | Joining multiple values with or without separators |
| Custom Number Formatting | Yes, display changes with the value | Preserves the original number | Adding labels or units while keeping calculations working |
| Copilot in Excel | Not automatically unless the result uses formulas | Depends on the changes made | Context-dependent labels and classifications |
Quick recommendation: Use Flash Fill for a one-time change, an ampersand formula for a result that must update, and custom number formatting when you need to keep the original number available for calculations.
Tip: If you are unsure, start with the ampersand formula. It covers 90% of use cases, works in every Excel version, and takes five seconds to write.
Download the Add Text to Cells Practice Workbook
Download the Add Text to Cells Practice Workbook
Get the free Excel practice file and try adding text to values with Flash Fill, formulas, and custom number formats.
Frequently Asked Questions
What Is the Fastest Way to Add Text to Multiple Cells in Excel?
Flash Fill is often the quickest choice for a one-time change. Type an example beside your data, press Enter, and use Ctrl+E. Excel fills the remaining rows based on the pattern. The results are static, so you’ll need to repeat the process if the source data changes.
How Do You Add Text to a Number Without Losing the Numeric Value?
Use Custom Number Formatting. Select your cells, press Ctrl+1 to open the Format Cells dialog, choose the Custom category, and enter a format code like "ID "# or #" miles". The cell will display “ID 210” or “500 miles” while the underlying value remains a pure number. You can still use SUM, AVERAGE, and other calculations on these cells. No other method preserves the numeric value.
What Is the Difference Between CONCATENATE, CONCAT, and TEXTJOIN?
CONCATENATE is the older function and remains available for compatibility. CONCAT can join text strings and ranges without adding a separator. TEXTJOIN adds a delimiter between values and can ignore empty cells. For simple prefixes or suffixes, the ampersand is often easier.
Can You Add Text to Cells Using Copilot in Excel?
Yes. Copilot in Excel can help you add labels, combine text and classify entries using plain-language instructions. Open Copilot, describe the change you want, and review the result. The older =COPILOT() worksheet function was retired on September 14, 2026. For a fixed prefix or suffix, an ordinary Excel formula is simpler and more reliable.
How Do You Add Text Before and After a Cell Value at the Same Time?
Place the prefix text and suffix text on either side of the cell reference using the ampersand operator. For example, ="ID-" & A2 & " Sales" returns “ID-Tom Sales” if A2 contains “Tom”. You can achieve the same result with =CONCAT("ID-", A2, " Sales"). Both formulas are dynamic and update automatically when the source cell changes.
Does Flash Fill Work with Numbers and Text?
Yes. Flash Fill works with numbers, text, and combinations of both. It recognizes patterns in dates, phone numbers, names, product codes, and mixed alphanumeric strings. The key requirement is that you provide at least one clear example of the desired output in the column next to your source data. If Flash Fill does not activate automatically, press Ctrl+E or go to Data > Flash Fill on the ribbon.
Which Excel Versions Support CONCAT and TEXTJOIN?
CONCAT and TEXTJOIN are supported in Microsoft 365, Excel 2019, Excel 2021, Excel 2024 and Excel for the web. Some Excel 2016 installations also support CONCAT, but availability can vary by release. For broader compatibility, use the ampersand or CONCATENATE.
Leila Gharani
Founder of XelPlus and ten-time Microsoft MVP. Leila helps over 500,000 professionals master Excel, Power BI, and data automation through practical, real-world training.








