How to Concatenate Text Strings in Microsoft Excel

Table of contents:

How to Concatenate Text Strings in Microsoft Excel
How to Concatenate Text Strings in Microsoft Excel
Anonim

Are you going crazy trying to manage a large Excel sheet, full of names and dates that are disconnected from each other? Do you want to create sentences automatically, using the data in your spreadsheet? The 'Chain' function is the perfect solution for you! Follow the instructions in this guide to find out how to quickly concatenate the contents of cells in your Excel sheet.

Steps

395700 1
395700 1

Step 1. Use the 'Concatenate' function to join two cells

The basic function of the 'Concatenate' formula allows you to concatenate two or more text strings together. You will be able to join up to 255 different text strings using the 'Concatenate' function alone. Here is an example:

Enter the formula

TO B. C.
1 good bye = Concatenate (A1, B1)

Observe the result

TO B. C.
1 good bye goodbye
395700 2
395700 2

Step 2. Insert blank spaces between the text strings you concatenate

If you want to concatenate two strings, leaving an empty space between them, you can do so by entering it directly in the 'Concatenate' formula in the form of a text string ““. This structure is very useful in case you are concatenating your first and last name. Eg:

Enter the formula

TO B. C.
1 John Smith = Concatenate (A1, "", B1)

Observe the result

TO B. C.
1 John Smith John Smith
395700 3
395700 3

Step 3. Insert punctuation or other text between the two strings you are joining

As seen in the previous example, you can add a blank space in the 'Concatenate' formula, as a string, by enclosing it in quotation marks. You can extend this concept and use quotation marks to add any type of text within your 'Concatenate' formula. Always remember to leave a space to the left of the strings you concatenate to get readable sentences.

Enter the formula

TO B. C.
1 Monday Friday = Concatenate (A1, "-", B1, ", closed weekends.")

Observe the result

TO B. C.
1 Monday Friday Monday - Friday, closed weekends.
395700 4
395700 4

Step 4. Concatenate a set of dates

Before you can concatenate two or more dates, you need to turn them into text using the function Text. This will prevent Excel from handling your data as numbers and not as text:

Enter the formula

TO B. C.
1 2013-14-01 2013-17-06 = Concatenate (Text (A1, "MM / DD / YYYY"), "-", Text (B1, "MM / DD / YYYY"))

Observe the result

TO B. C.
1 2013-14-01 2013-17-06 2013-14-01 - 2013-17-06
395700 5
395700 5

Step 5. Use the '&' symbol in place of the 'Concatenate' function

The '&' character performs the same function as the 'Concatenate' formula. It can be quick and useful to use it in simple or short formulas, but it could be confusing in complex or long formulas. Remember to always leave a space between the various strings if you need to get legible sentences. You will need to insert the '&' symbol between each element you want to concatenate.

Enter the formula

TO B. C.
1 John Smith = A1 & "" & B1

Observe the result

TO B. C.
1 John Smith John Smith

Recommended: