CONCATENATE and CONCAT Functions in Excel: How to Join Text

CONCATENATE and CONCAT Functions in Excel How to Join Text

Have you ever received an Excel sheet where first names and last names are stored in separate columns, but you need the full names in a single column?

Do you need to copy and type each name manually? Not at all! You can use Flash Fill (Ctrl + E) to combine the names automatically by recognising a pattern.

But what if the original names change regularly or new records are added? Flash Fill won’t automatically update the combined results. In such cases, using an Excel formula is a better option.

Excel provides functions such as CONCATENATE and CONCAT that help you combine text from multiple cells into one. Since these are formulas, the results update automatically when the source data changes.

You can use these functions to combine names, addresses, product details, and other text without typing everything manually.

In this article, let’s learn how to use the CONCATENATE and CONCAT functions in Excel with simple examples. We will also compare both functions with Flash Fill so you can understand when to use each method.

What Is the CONCATENATE Function in Excel?

The CONCATENATE function in Excel combines two or more text strings into a single text string.

For example, suppose cell A2 contains “Prasad” and cell B2 contains “Ram”.

You can use the CONCATENATE function to combine both names into one cell.

Formula:

=CONCATENATE(A2,B2)

Result:

PrasadRam

Notice that Excel combines the text without adding a space automatically.

If you want a space between the names, you need to include it in the formula.

=CONCATENATE(A2,” “,B2)

Result:

Prasad Ram

CONCATENATE Function Syntax:

The syntax of the CONCATENATE function is:

=CONCATENATE(text1, [text2], …)

Where:

  • text1: The first text value or cell reference you want to combine.
  • text2: The second text value or cell reference. This argument is optional.
  • …: You can include additional text values or cell references.

You can combine up to 255 text arguments using CONCATENATE.

Example 1: Combine First Name and Last Name

Suppose you have a list of employees where first names and last names are stored in separate columns.

First NameLast Name
AnanyaRao
RahulKumar
PriyaSharma
ArjunReddy
SnehaDas

You want to combine both names into a single column.

Follow these steps:

1. Select cell C2.

2. Enter the following formula:

=CONCATENATE(A2,” “,B2)

3. Press Enter.

Combine First Name and Last Name with CONCATENATE Function in Excel

4. Drag the fill handle down to copy the formula to the remaining rows.

Excel combines the first name and last name with a space between them.

Example 2: Combine Text from Multiple Cells

You can use CONCATENATE to combine text from more than two cells.

Suppose you have an address stored in separate columns.

House No.StreetCityPIN Code
12-45Beach RoadVizag530001
5-22MG RoadHyderabad500001
8-10Park StreetKolkata700016

You want to combine the complete address into a single cell.

Enter this formula in E2:

=CONCATENATE(A2,”, “,B2,”, “,C2,” – “,D2)

Result:

12-45, Beach Road, Vizag – 530001

You can drag the formula down to combine the addresses in the remaining rows.

Combine Text from Multiple Cells using CONCATENATE Function in Excel

This is useful when you receive data in separate columns but need to create a complete address in one cell.

Example 3: Combine Text with Numbers

You can also combine text and numbers using CONCATENATE.

Suppose you have product names and their prices in separate columns.

ProductPrice
Laptop45000
Monitor18000
Keyboard2000
Mouse1500

You want to display the product name and price together.

Enter this formula in C2:

=CONCATENATE(A2,” – ₹”,B2)

Result:

`Laptop – ₹45000`

You can copy the formula down to combine the remaining product details.

Combine Text with Numbers using CONCATENATE Function in Excel

If you want to display prices with commas, such as ₹45,000, use the TEXT function:

=CONCATENATE(A2,” – ₹”,TEXT(B2,”#,##0″))

Result:

Laptop – ₹45,000

Example 4: Combine Text with a Formula Result

Suppose you calculate the total sales in cell B2 and want to display a message along with the result.

For example, cell B2 contains the value 75000.

Enter this formula:

=CONCATENATE("Total Sales: ₹",TEXT(B2,"#,##0"))

Result:

Total Sales: ₹75,000

Combine Text with a Formula Result using CONCATENATE Function in Excel

You can use this method to create simple messages, reports, and summaries.

What Is the CONCAT Function in Excel?

The CONCAT function is the updated version of the CONCATENATE function.

It performs the same basic task of combining text from multiple cells or text strings into one.

For example:

=CONCAT(A2,” “,B2)

This formula combines the first name and last name with a space between them.

The result is:

Prasad Ram

The CONCAT function is available in newer versions of Excel, including Excel 2019 and Microsoft 365.

CONCAT Function Syntax:

The syntax of the CONCAT function is:

=CONCAT(text1, [text2], …)

Where:

  • text1: The first text value or cell reference you want to combine.
  • text2: Additional text values or cell references. These arguments are optional.
  • …: You can include more text values or cell references.

Unlike CONCATENATE, CONCAT can also accept a range of cells as an argument.

For example:

=CONCAT(A2:C2)

This combines the contents of cells A2, B2, and C2.

Note: CONCAT does not automatically insert spaces, commas, or other separators between the combined values. You need to include them in the formula if required.

For example, if you want to combine the values in A2, B2, and C2 with commas between them, use:

=TEXTJOIN(“, “,TRUE,A2:C2)

This adds a comma and space between the values and ignores empty cells.

CONCAT vs. CONCATENATE in Excel:

Both functions combine text, but there are a few differences.

FeatureCONCATENATECONCAT
PurposeCombines textCombines text
AvailabilityOlder Excel versions and newer versionsNewer Excel versions
Range referencesNot supported as a single range argumentSupported
SyntaxAnanyaRaoAnanyaRao
Recommended for new formulasOlder compatibilityYes

Which function should you use?

For new Excel formulas, CONCAT is generally the better choice.

However, if you are working with older Excel versions or existing workbooks that use CONCATENATE, you can continue using it.

Common Mistakes When Using CONCATENATE and CONCAT:

Here are a few things to remember when using these functions.

1. Forgetting spaces between words

Formula:

=CONCAT(A2,B2)

Result:

PrasadRam

To add a space, use:

`=CONCAT(A2,” “,B2)`

2. Expecting automatic separators

Excel does not automatically add commas, hyphens, or spaces between combined values.

Include them manually in the formula.

3. Combining numbers with unwanted formatting

When you combine numbers with text, Excel may display the underlying number rather than its original number format.

For example, a date may appear as its serial number.

To preserve a date format, use the TEXT function:

=CONCAT(“Date: “,TEXT(A2,”dd-mm-yyyy”))

CONCAT vs. Flash Fill in Excel: What’s the Difference?

Both CONCAT and Flash Fill can help you combine text from different cells in Excel. However, they work differently.

CONCAT / CONCATENATEFlash Fill
Uses a formula to combine text.Recognises a pattern from an example you provide.
Results update automatically when source data changes.Results do not update automatically when source data changes.
You need to enter a formula.No formula is required.
Useful when you want dynamic results.Useful for quickly combining or rearranging text.

Example:

Suppose Column A contains first names and Column B contains last names.

  • Using CONCAT: Enter `=CONCAT(A2,” “,B2)` to combine the names. Copy the formula down to the remaining rows.
  • Using Flash Fill: Type the first combined name manually in Column C, select the next cell, and press Ctrl + E. Excel recognises the pattern and fills the remaining names.

Which one should you use?

Use CONCAT when you want the combined results to update automatically whenever the original data changes. Use Flash Fill when you want to combine or rearrange data quickly without using formulas.

To learn more, check out our detailed guide: Flash Fill in Excel: How to Use It With Simple Examples

Frequently Asked Questions:

1. What is the difference between CONCAT and CONCATENATE?

Both functions combine text from multiple cells. CONCAT is the newer function and supports combining ranges directly, while CONCATENATE is the older function.

2. Does CONCAT automatically add spaces between words?

No. You must add spaces manually using quotation marks.

For example:

=CONCAT(A2,” “,B2)

3. Can I combine more than two cells using CONCAT?

Yes. You can combine multiple cells or a range of cells.

For example:

=CONCAT(A2:D2)

4. Can I combine text and numbers using CONCAT?

Yes. You can combine text and numbers in the same formula.

For example:

=CONCAT(“Sales: ₹”,A2)

5. Is CONCATENATE still available in Excel?

Yes. CONCATENATE is still available in newer Excel versions for compatibility with older workbooks. However, CONCAT is generally recommended for new formulas.

6. What is the difference between CONCAT and TEXTJOIN?

CONCAT combines text from multiple cells but does not automatically add separators.

TEXTJOIN lets you specify a separator, such as a space, comma, or hyphen, and can optionally ignore empty cells.

For example:

=TEXTJOIN(“, “,TRUE,A2:C2)

This combines the values in A2:C2 with commas between them and ignores empty cells.

Conclusion:

The CONCATENATE and CONCAT functions in Excel make it easy to combine text from multiple cells into one.

You can use them to combine first and last names, create complete addresses, join product details, and prepare simple reports.

If you are using a newer version of Excel, CONCAT is generally the better choice. If you work with older Excel files, CONCATENATE is still useful.

If you only need to combine or rearrange data quickly, Flash Fill is another useful option.

Once you understand these functions, combining text in Excel becomes much easier!


Discover more from Excellopedia

Subscribe to get the latest posts sent to your email.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.