Excel formula/forma...
 

Subscribe now and choose from over 30 free gifts worth up to £49 - Plus get £25 to spend in our shop

[Closed] Excel formula/formatting Q...

6 Posts
4 Users
0 Reactions
44 Views
 IHN
Posts: 19857
Full Member
Topic starter
 

I have two cells which I want to concatenate into one, but with a line break (i.e. as if I'd done Alt+Return when typing into the cell). Maybe an example would be clearer:

A1, value "Line 1"
A2, Value "Line 2"

I want A3 to be

"Line 1
Line 2"

I know [i]=A1&" "&A2[/i] will give me

"Line 1 Line 2"

Is there something like [i]=A1&"[b]excelmagickery[/b]"&A2[/i] that will put a line break in?


 
Posted : 11/11/2014 11:23 am
Posts: 54
Free Member
 

=A1 & CHAR(10) & A2

Thou you'll have to turn on Wrap Text for that cell.


 
Posted : 11/11/2014 11:25 am
Posts: 1142
Full Member
 

You'll also need to format the cell with the formula in to wrap text.
RM.


 
Posted : 11/11/2014 11:27 am
 IHN
Posts: 19857
Full Member
Topic starter
 

Is that just padding it out with blank space?


 
Posted : 11/11/2014 11:27 am
 IHN
Posts: 19857
Full Member
Topic starter
 

Ah, old school line feed. Nice.

#EDIT# and thank you 😳


 
Posted : 11/11/2014 11:33 am
 IHN
Posts: 19857
Full Member
Topic starter
 

On a similar note, is there a way I can do a find and replace, but the replacement bit being a line break?


 
Posted : 11/11/2014 11:45 am
Posts: 36
Free Member