Inserting a value into a string in Excel means building text that combines fixed words with cell values or calculated numbers, such as turning "Total:" and 500 into "Total: 500". The quickest way is the CONCATENATE-compatible ampersand operator: type ="Total: "&A1 into a cell and press Enter. Modern Excel also offers the CONCAT and TEXTJOIN functions, which handle ranges of cells more cleanly. Nothing needs to be installed; this works in every desktop version of Excel and in Excel for the web.
What You'll Need
- Excel for Windows, Mac, or Excel for the web (the steps below are written for desktop; the web version uses the same formulas)
- A worksheet containing the text and values you want to combine
- Basic familiarity with typing formulas into cells
Step-by-Step
- Insert a value from a cell using the ampersand (&). Click an empty cell and type ="Order "&B2&" shipped", replacing B2 with the cell that holds your value. Press Enter. Excel joins the fixed text with whatever is in B2.
- Put spaces and punctuation inside the quotation marks. Quotes mark literal text. If you want a space between the value and the next word, the space must sit inside the quotes: ="Value: "&A1&" units".
- Format numbers while inserting them with TEXT. Raw numbers come through with Excel's default formatting, and dates turn into serial numbers like 45123. Wrap the value in TEXT: ="Due "&TEXT(A1,"dd/mm/yyyy") for dates, or =TEXT(B2,"0.00")&" kg" to force two decimals. The format codes match the ones in the Format Cells dialog (Ctrl+1) under Custom.
- Combine several cells at once with CONCAT. Instead of chaining many ampersands, use =CONCAT(A2," ",B2," ",C2). CONCAT also accepts ranges: =CONCAT(A2:A5) joins every cell in the range with no separator.
- Insert a separator between many values with TEXTJOIN. Type =TEXTJOIN(", ",TRUE,A2:A5). The first argument is the separator, the second (TRUE) tells Excel to skip empty cells, and the third is the range.
- Insert a value into the middle of existing text with REPLACE. If cell A1 holds "Hello name" and you want to swap "name" for a real value, use =REPLACE(A1,7,4,B1). The 7 is the starting character position, 4 is how many characters to overwrite, and B1 is the value to insert.
- Copy the formula down. Click the cell with your formula, then drag the small square at the bottom-right corner of the selection down over the rows below. Relative references (A1, B2) adjust automatically per row.
- Freeze the results as plain text if needed. Select the formula cells, press Ctrl+C, then right-click the destination and choose Paste Values (the clipboard icon with 123). The results stop updating and become ordinary text you can edit freely.
Common Mistakes
- Forgetting quotes around fixed text. =Total & A1 fails with a #NAME? error because Excel thinks Total is a name. It must be ="Total "&A1.
- Leaving out the space inside quotes. ="Total:"&A1 produces "Total:500". Put the space inside the closing quote: "Total: ".
- Not formatting dates. ="Due "&A1 where A1 is a date shows "Due 45123". Wrap it in TEXT with a date format code.
- Using plus (+) to join text. In Excel, + only does arithmetic; the & operator is what joins strings.
- Overwriting source data. Build formulas in a spare column, not in the cells you are pulling from.
Tips
- Double quotes with nothing between them ("") produce an empty string, useful for making a formula return blank instead of 0 when a source cell is empty: =IF(A1="","", "Value: "&A1).
- To include an actual quote character in the result, double it: ="She said ""hello""".
- CHAR(10) inserts a line break inside a cell; turn on Wrap Text (Home tab) to see it.
- Flash Fill (Ctrl+E after typing the first example) can insert values into text patterns without any formula, for one-off jobs.
- Name table columns and formulas read far more clearly: ="Hi "&[@Name] inside an Excel table.
Troubleshooting
- #NAME? error: you omitted the quotes around literal text, or misspelled a function name. Check spelling and that every fixed word sits inside quotes.
- The formula shows as text, not a result: the cell was formatted as Text before you typed. Change it: right-click the cell, choose Format Cells, set it to General, then press F2 and Enter to re-enter the formula.
- Dates or large numbers look wrong: wrap the cell reference in TEXT with a proper format code, as in step 3.
- CONCAT or TEXTJOIN gives #NAME?: these functions need a Microsoft 365 or Excel 2019 or later. On older versions, use the & operator or CONCATENATE instead, which work everywhere.
- Results show 0 for empty cells: guard with IF as shown in Tips, or use TEXTJOIN with TRUE to skip blanks.
Frequently Asked Questions
What is the simplest formula to insert a cell value into a string?
="Your text "&A1. The & operator joins the quoted text with the contents of A1.
Can I insert a value at a specific position inside existing text?
Yes. Use REPLACE, as in step 6, giving the start position, the number of characters to replace, and the new value.
Why does my date turn into a number when combined?
Excel stores dates as serial numbers. Format the value with TEXT and a date code, for example TEXT(A1,"dd mmm yyyy").
Is CONCATENATE still usable?
Yes, it works in all versions for backward compatibility, but CONCAT and TEXTJOIN are the modern replacements and accept ranges.
How do I insert a variable value set by VBA into a string?
In a macro, use the same & operator: Range("B1").Value = "Total: " & myTotal. The macro must be saved in a macro-enabled workbook (.xlsm).