Combine two or more columns by using a function
Let's say you have two or more columns of data that you want to combine in a single column, such as the name and address of a person. To combine two or more columns, use the CONCATENATE function. You can also use the CHAR function and an ASCII code to insert a character, such as a line break, when you're combining the data.
Example
The example may be easier to understand if you copy it to a blank worksheet.
How to copy an example
- Create a blank workbook or worksheet.
- Select the example in the Help topic.
Note Do not select the row or column headers.
Selecting an example from Help
- Press CTRL+C.
- In the worksheet, select cell A1, and press CTRL+V.
- To switch between viewing the results and viewing the formulas that return the results, press CTRL+` (grave accent), or on the
Formulastab, in theFormula Auditinggroup, click theShow Formulasbutton.
Note To see the result without breaking the lines of the name or address, expand the width of column A to at least 17.00 units or 124 pixels.
|
|
Function details
ASCII character chart