ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Combine the contents of 2 cells (https://www.excelbanter.com/excel-worksheet-functions/222429-combine-contents-2-cells.html)

Patrick C. Simonds

Combine the contents of 2 cells
 
I would like to combine the contents of 2 cells. In Cell A1 is a name in
cell A2 is a number. I would like the result to look like the example below.

Brian Smith represents the value in Cell A1 and 1134 represents the value
in Cell A2

Brian Smith - 1134


T. Valko

Combine the contents of 2 cells
 
Try this:

=A1&" - "&A2

--
Biff
Microsoft Excel MVP


"Patrick C. Simonds" wrote in message
...
I would like to combine the contents of 2 cells. In Cell A1 is a name in
cell A2 is a number. I would like the result to look like the example
below.

Brian Smith represents the value in Cell A1 and 1134 represents the value
in Cell A2

Brian Smith - 1134





All times are GMT +1. The time now is 05:35 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com