CONCAT in Excel: How to Combine Text and Cells
In this article
To use CONCAT in Excel, enter the formula =CONCAT(text1, [text2], ...) into a cell, selecting the individual cells or ranges you wish to merge. This function allows you to join multiple strings of text, numbers, or cell references into one single cell, eliminating the need to manually type combined data or use the older, more limited CONCATENATE function.
Combining data is a fundamental task for anyone managing databases, contact lists, or financial reports. Whether you are merging a "First Name" column and a "Last Name" column into a "Full Name" field, or creating unique ID codes by joining a department prefix with an employee number, CONCAT provides a streamlined way to handle text manipulation. Unlike its predecessor, CONCAT supports range selection, meaning you can highlight a whole block of cells to merge them instantly rather than clicking every single cell one by one.
What You'll Need
- A computer with Microsoft Excel installed (Microsoft 365, Excel 2019, or newer versions).
- A dataset containing the text or numbers you want to combine.
- Basic familiarity with entering formulas into the Excel formula bar.
Step-by-Step
- Prepare Your Data: Ensure your data is organized in columns. For example, if you want to create full addresses, have your street, city, state, and zip code in separate columns (A, B, C, and D).
- Select the Target Cell: Click on the empty cell where you want the combined result to appear. This is typically the first cell of a new column to the right of your source data.
- Start the Formula: Type
=CONCAT(into the cell. This tells Excel you are initiating the concatenation process. - Select the First Item: Click on the first cell you want to include (e.g., cell A2) or type a specific piece of text inside quotation marks (e.g., "Project ").
- Add a Separator (Crucial Step): CONCAT does not automatically add spaces or commas between items. To add a space, type a comma to separate the arguments, then type
" "(a space enclosed in double quotes). For example, if you are combining first and last names, your formula would look like=CONCAT(A2, " ", B2). - Select Additional Items: Continue adding commas and selecting cells or typing text strings until all necessary components are included. If you have a large range of cells to merge without separators, you can simply highlight the range (e.g.,
=CONCAT(A2:D2)). - Close and Execute: Type the closing parenthesis
)and press Enter. The combined text will now appear in the cell. - Apply to Other Rows: To apply this logic to the rest of your list, hover your mouse over the bottom-right corner of the cell until a small black cross (the fill handle) appears. Click and drag the handle down to the bottom of your data set.
Common Mistakes
The most frequent error users make with the CONCAT function is forgetting the separators. Because CONCAT merges text exactly as it finds it, combining "John" and "Doe" results in "JohnDoe". Always remember to insert " " for spaces or ", " for comma-separated lists between your cell references.
Another common mistake is forgetting the double quotation marks around manual text. In Excel formulas, any text that is not a cell reference or a function name must be wrapped in quotes. Typing =CONCAT(A2, space, B2) will result in a #NAME? error because Excel thinks "space" is a named range that doesn't exist. It must be " ".
Some users attempt to use CONCAT to merge cells physically (like the "Merge & Center" button on the Home tab). It is important to understand that CONCAT is a formula that creates a new value based on existing ones; it does not physically merge the cells on the grid. If you delete the source cells after using CONCAT, the formula will return a #REF! error because the data it relies on is gone.
Tips
Use TEXTJOIN for Complex Lists: If you are combining a long list of items and need the same separator (like a comma and a space) between every single one, use the TEXTJOIN function instead of CONCAT. TEXTJOIN allows you to define the delimiter once at the start and can automatically ignore empty cells, which prevents your final result from having awkward double spaces or trailing commas.
Combining Dates and Numbers: When you use CONCAT on a cell containing a date, Excel often converts the date into its underlying serial number (e.g., "45291" instead of "2024-01-01"). To fix this, wrap the date cell in the TEXT function. For example: =CONCAT("Date: ", TEXT(A2, "mm/dd/yyyy")). This forces Excel to keep the date in a readable format.
The Ampersand Shortcut: For very simple combinations of two or three cells, you can use the ampersand symbol (&) instead of a formal function. =A2 & " " & B2 achieves the exact same result as =CONCAT(A2, " ", B2) and is often faster to type.
Troubleshooting
If your formula is not working as expected, first check for the #NAME? error. This almost always means you have a typo in the function name or you forgot to put quotation marks around a piece of manual text. Double-check that you typed CONCAT and not CONCATENATE (though both work, CONCAT is the modern standard) and that all text strings are enclosed in quotes.
If you see a #VALUE! error, it typically indicates that the formula is trying to process a data type it cannot handle, though this is rare with CONCAT since it treats almost everything as text. Check if any of the cells you are referencing contain errors themselves; if cell A2 has a #DIV/0! error, the CONCAT formula referencing it will also fail.
If the result looks correct but the formatting is wrong (e.g., currency symbols disappeared), remember that CONCAT strips away the "visual" formatting of a cell and only takes the raw data. To bring back currency symbols or specific decimal places, use the TEXT function within your CONCAT formula, such as =CONCAT("Total: ", TEXT(B2, "$#,##0.00")).
Frequently Asked Questions
What is the difference between CONCAT and CONCATENATE?
CONCAT is the updated version of CONCATENATE. The primary difference is that CONCAT allows you to select a range of cells (e.g., A1:A10), whereas CONCATENATE requires you to select each cell individually.
Can CONCAT combine cells from different worksheets?
Yes. When selecting your cells for the formula, simply click over to the other worksheet tab and select the desired cell. Excel will automatically add the sheet name to the formula, such as =CONCAT(Sheet1!A2, " ", Sheet2!A2).
How do I add a line break inside a CONCAT formula?
To start a new line within a single cell, use the CHAR(10) function. Your formula would look like =CONCAT(A2, CHAR(10), B2). Note that you must enable "Wrap Text" in the Home tab for the line break to be visible.
Is there a limit to how many cells CONCAT can join?
CONCAT can handle a very large number of arguments, but the ultimate limit is the maximum number of characters allowed in a single Excel cell (32,767 characters). If your combined text exceeds this, the result will be truncated.
Can I use CONCAT with numbers?
Yes, CONCAT treats numbers as text strings. If you combine 10 and 20, the result will be "1020", not 30. If you want to add the numbers mathematically, use the SUM function instead.