Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Excel CONCATENATE with Space: Step-by-Step Guide

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To put a space between concatenated values in Excel, add a text string containing a space as one of the arguments. For example, =CONCATENATE(A2," ",B2) or =A2&" "&B2 joins the contents of A2 and B2 with a single space. The space is simply a literal string in double quotes, so you can place it anywhere in the formula. This guide shows the exact steps for both the CONCATENATE function and the newer CONCAT and TEXTJOIN functions, plus how to handle extra spaces that come from your source data.

What You'll Need

  • Excel 2016 or later, Microsoft 365, or Excel for the web. CONCATENATE works in all versions; CONCAT and TEXTJOIN are available in Excel 2019, Microsoft 365, and Excel for the web.
  • Source data in separate cells (for example, first names in column A and last names in column B).
  • Basic familiarity with entering formulas and using the fill handle.

Step-by-Step

  1. Identify the cells to join. Suppose first names are in A2:A10 and last names are in B2:B10. You want a full name with a space between them.
  2. Click the cell where the result should appear, such as C2.
  3. Type the CONCATENATE formula with a space argument. Enter =CONCATENATE(A2," ",B2). The quotation marks contain one space character. Do not type a space outside the quotes; that would cause a syntax error.
  4. Press Enter. The cell now shows the first name, a space, and the last name.
  5. Copy the formula down. Drag the fill handle from C2 down to C10, or double-click the fill handle. Excel adjusts the cell references for each row.
  6. Optional: use the ampersand instead. The formula =A2&" "&B2 produces the same result and is often faster to type. The space is still a quoted string between the ampersands.
  7. Optional: use CONCAT for multiple cells. In Excel 2019 or Microsoft 365, =CONCAT(A2," ",B2) works like CONCATENATE but accepts ranges. For joining many cells with a consistent separator, use =TEXTJOIN(" ",TRUE,A2:C2), where the first argument is the delimiter, the second ignores empty cells, and the third is the range.
  8. Convert formulas to values if needed. Select the results, press Ctrl+C, then right-click and choose Paste Special > Values. This removes the formulas so the text stays fixed if the source cells change.

Menu labels and function availability can differ slightly by Excel version, device, and region. On Excel for the web, the Formulas tab lists the same text functions; on mobile, type the formula directly into the formula bar.

Common Mistakes

  • Forgetting the quotation marks around the space. Writing =CONCATENATE(A2, ,B2) or =A2& &B2 causes a syntax error. The space must be inside double quotes: " ".
  • Using a comma as the delimiter in TEXTJOIN when your region uses semicolons. In some locales, Excel uses semicolons to separate arguments. If you see an error, try =TEXTJOIN(" ";TRUE;A2:C2).
  • Leaving extra spaces in the source cells. If A2 contains "John " with a trailing space, the result will have two spaces. Use TRIM on the source or wrap the whole formula in TRIM.
  • Concatenating numbers without formatting. Dates and currency values may lose their formatting when joined as text. Use TEXT to control the display, for example =A2&" "&TEXT(B2,"mm/dd/yyyy").
  • Expecting CONCATENATE to accept a range. CONCATENATE requires individual cell references; use CONCAT or TEXTJOIN for ranges.

Tips

  • To add a space between every item in a long list, TEXTJOIN is the cleanest option because you specify the delimiter once.
  • Use CHAR(10) instead of a space if you want a line break inside the cell, then turn on Wrap Text on the Home tab.
  • If you need a non-breaking space, use CHAR(160).
  • Wrap the result in TRIM to remove leading, trailing, and repeated spaces: =TRIM(A2&" "&B2).
  • For a quick preview, select the formula cell and press F2 to see which parts are text strings and which are cell references.

Troubleshooting

  • The formula returns #NAME? Check the function name spelling. CONCATENATE is one word; CONCAT and TEXTJOIN are separate functions. If TEXTJOIN is not recognized, your Excel version may not support it; use CONCATENATE or the ampersand instead.
  • The result shows a space but the values look wrong. Check for hidden characters or extra spaces in the source cells. Select a source cell and look at the formula bar.
  • The formula shows as text instead of calculating. The cell may be formatted as Text. Change the format to General, then re-enter the formula.
  • You see a #VALUE! error. One of the arguments may be an error value or an unsupported reference. Test each part separately.
  • The space disappears after copying. If you pasted only values, the formula is gone by design. Keep a copy of the formula column if you need to recalculate.

Frequently Asked Questions

How do I add a space between first and last names in Excel?

Use =A2&" "&B2 or =CONCATENATE(A2," ",B2), where A2 is the first name and B2 is the last name. Copy the formula down the column.

Can I use CONCATENATE with more than two cells and spaces?

Yes. Add a quoted space between each cell reference: =CONCATENATE(A2," ",B2," ",C2). For many cells, TEXTJOIN is simpler.

Why does my concatenated text have double spaces?

The source cells likely contain trailing or leading spaces. Wrap the formula in TRIM, or clean the source data with TRIM first.

What is the difference between CONCATENATE and TEXTJOIN?

CONCATENATE joins individual items and requires you to add separators manually. TEXTJOIN lets you specify one delimiter and a range, and can ignore empty cells.

Can I put a space between concatenated values in Excel for the web?

Yes. The same formulas work in Excel for the web. Type them into the formula bar just as you would on the desktop.

How do I add a line break instead of a space?

Use CHAR(10) in place of the space, for example =A2&CHAR(10)&B2, then enable Wrap Text on the Home tab.