How to Combine Cells with Different Formats into One Cell with Keeping Format in Excel

Sometimes we need to combine texts in different cells into one cell. It is easy if we use =A1&B1 to combine cells, and we can get proper result if cells have the same cell formatting. But if different formatted numbers, dates or times exist in cells, like content1 in cell A1 is Text, content2 in cell B1 is Date, above formula doesn’t work. If we want to resolve this problem, we can read this article, it will help you to combine cells with different formatting into one cell and at the same time keep their own format properly. It provides two ways to choose, the first one is to strengthen above formula with adding TEXT function, another one is by using Microsoft Word.

Method 1: Combine Cells with Keeping Cell Formatting by Formula


First, see some examples below.

Example 1: A1-Text & B1-Date

Combine Cells with Different Formats 1

Obviously, formatted date value is changed after combining the two cells. And we cannot change it to previous date in format settings.

Example 2: A2-Text & B2-Number (Percentage)

Combine Cells with Different Formats 2

We can see that value keeps but format is changed. Above all, we need to strengthen the formula by add Text function, details please see below steps.

Step 1: In C1, enter the formula =A1&” “&TEXT(B1,”m/d/yyyy”). Text function can change date, number format to text, so it can display original value in combined cell. For Text function, there are two parameters, one is value, another one is format text, for date, you can also enter mm/dd/yyyy, dddd to display original value.

Step 2: Click Enter and check final result.

Step 3: In C2, enter the formula =A2&” “&TEXT(B2,”0%”). You just need to type number format into Text function to keep B1 original data formatting.

Comment:

You can enter Text Function in Help to check more text formats online.

Method 2: Combine Cells with Keeping Cell Formatting by Microsoft Word


For applying the first method, you need to know the data formatting for all cells. If you don’t know the data formatting, you can choose method 2 to combine cells, see below steps for more details.

Step 1: Copy table from excel to word. Launch word, and create a blank document, then paste copied table on it.

Step 2: Select the table on word document. This is important, otherwise Layout tab below is not displayed.

Combine Cells with Different Formats 7

Step 3: Click Layout tab in Table Tools. There are two “Layout” tabs, make sure you select the proper one.

Combine Cells with Different Formats 8

Step 4: Click Layout->Convert to Text in Data group.

Combine Cells with Different Formats 9

Step 5: Select Commas on Convert Table to Text. Then click OK.

Combine Cells with Different Formats 10

Verify that comma is added between two values. And you may find that texts are combined into one cell.

Combine Cells with Different Formats 11

Step 6: Copy above table and paste it back to excel worksheet.

Combine Cells with Different Formats 12

Step 7 (Optional): If you want to remove comma between two data, you can use replace function. Press Ctrl+H to pops up Find and Replace dialog. Enter comma into Find what, space into Replace with, then click Replace All.

Combine Cells with Different Formats 13

Verify that comma is removed.

Combine Cells with Different Formats 14

Comment:

In step 5, if you select Tab as text separator, the two data is still displayed into two cells after pasting it back to excel.

 

 

 

Related Posts

If Cell is This Value or That Value

IF function is frequently used in Excel worksheet to return you expect “true value” or “false value” based on the result of logical test. If you want to see if a cell is A or B, and if one of ...

If Value is Greater Than A Certain Value
If Value is Greater Than A Certain Value 1

IF function is frequently used in Excel worksheet to return you expect “true value” or “false value” based on the logical test result. If you want to see if a value in one cell is greater than a specific value, ...

If Cell is Not Blank
If Cell is Not Blank 6

IF function is frequently used in Excel worksheet to return you expect “true value” or “false value” based on the result of created logical test. If you want to see if a cell is blank or not, and leave some ...

VBA Macro For VLOOKUP From Another Sheet
vba macro for vlookup from another sheet1

In the previous post, you should know that how to fix or remove the #N/A error when using VLOOKUP formula to lookup value from another sheet. And this post will show you how to use VBA code to vlookup data ...

If Cell is Blank
If Cell is Blank_1

IF function is frequently used in Excel worksheet to return you expect “true value” or “false value” based on the result of created logical test. If you want to see if a cell is blank or not, and leave some ...

If Cell Equals Certain Text String
If cell equals certain text_1

IF function is frequently used in Excel worksheet to return you expect “true value” or “false value” based on the result of created logical test. If you want to see if cell equals a certain text string like “Win”, you ...

If Cell Contains Either Text1 or Text2
If cell contains text1 or text2_1

IF function is frequently used in Excel worksheet to return “true value” or “false value” based on the logical test result. If you want to see if cell contains certain substring1 like “abc” or substring2 like “def”, and returns true ...

If Cell Contains Certain Text OR Equals Certain Text

IF cell equals certain text IF function is frequently used in Excel worksheet to return “true value” or “false value” based on the logical test result. If you want to test values to see if they equal certain text like ...

VLOOKUP From Another Sheet Not Working
vlookup from another sheet not working3

In the previous post, you should know that how to fix or remove the #N/A error when using VLOOKUP formula to lookup value from another sheet. And this post will show you reasons why your VLOOKUP formula is not working ...

If Cell Begins with One of Three Supplied Characters
If Cell Begins with One of Three Supplied Characters

If you want to test values to see if they begin with some given specific characters like “x”, ”y”, or “z”, you can create a formula with COUNTIF and SUM functions to return results. EXAMPLE You can see “TRUE” or ...

Sidebar