How can I insert a carriage return and line feed into a cell ?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to display a statistic with its t_stat in the same cell, one over
the other.
 
Try pressing Alt+Enter
or
Format the cell to wrap from Format|Cells

tj
 
In a concatenation you can use
="line one" & char(10) & "line two" & char(10) & "line three"

You will have to turn on cell wrap for such cells
Format, cells, aligment, cell wrap
Failure to turn on cell wrap will show the square printer's bullets
associated with unprintable characters.

If you are just typing text then use At+Enter for the new line
and Excel will turn on cell wrap for you.

In VBA you would use CHR(10) or vbLF
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top