Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I concat cellvalues with new line in MS Excel?

In excel I can introduce a new line inside a cell with a [alt enter]

Boo[alt enter]Far 

results in:

Boo Far 

Now A1 contains Boo, A2 contains Far. How can I display these values in A3 separated with a new line?

A3=A1[alt enter]&B1 

results in BooFar

A3=A1&[alt enter]B1 

results in BooFar

How can I get

Boo Far 

By using cell references?

like image 943
dr jerry Avatar asked Feb 14 '14 12:02

dr jerry


People also ask

How do I combine A1 and A2 in Excel?

For example, if we want to combine cell A1 and A2, then the combine cell formula will look like ”=A1&A2”. We can use any text in the cell quoting it in inverted commas and then selecting a cell separated by an ampersand.

How do you concatenate with alt Enter?

Concatenate Columns With Alt + Enter By Formula Kindly do as follows: Select a clear cell you will put the link result, type the recipe =A1 and CHAR(10) and A2 and CHAR(10) and A3, and drag the AutoFill Handle right to different cells as the need might arise.

How do I concatenate two text fields in Excel?

Formula Using Ampersand (&) Compatibility: All versions of Excel on all operating systems. The first way to go about combining text is by using a simple formula. To join cells together we use the ampersand symbol (&). Joining the contents of cells A2 and B2 would look like this: =A2&B2.


1 Answers

In A3 enter:

=A1 & CHAR(10) & A2 

and format A3 for wrap text

like image 187
Gary's Student Avatar answered Sep 22 '22 06:09

Gary's Student