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

Match Single Criteria in Excel

No repeat statistic based on a single condition is used wildly in daily work, for example, count type of products, the duplicate types are not encountered. This article describes the way of no repeats statistics for data in a single ...

Excel Array Construction

This article will talk about how to create one-dimensional array or two-dimensional array by using some functions in Excel. When using array formulas in Excel, we often use functions to construct arrays. Generate Array with ROW or COLUMN Functions Array ...

Excel Array Operation

We have all heard of arrays. Depending on the dimensionality, they are divided into one-dimensional arrays and two-dimensional arrays. Depending on the data type, they can also be divided into numeric arrays, logical arrays, and so on. The concatenation and ...

Excel Array Matrix Operation

In Excel, we have a built-in function used to perform matrix operations. It is the MMULT function. This function accepts two arrays as parameters and returns the product of the two arrays. However, this function has a prerequisite that the ...

A1 Reference Style and R1C2 Reference in Excel

In Excel, there are two reference styles. A1 reference style and R1C2 reference style. These two reference styles can help us find the cell by the cell address. Some functions return these two addresses through the argument settings. A1 Reference ...

Sidebar