Force a new line in a cell with "wrap text" on

  • Thread starter Thread starter DRARetired
  • Start date Start date
D

DRARetired

How can I put a newline command in a cell formula? I've
tried using Alt-Enter, but it doesn't work.
 
Why would you want to wrap a formula? Do you mean text, or an actual
formula?
 
In a Worksheet use CHAR(10)
in a macro use CHR(10)

Alt+Enter automatically turns on Cell Wrap. This won't
so you may have to format the cells yourself.
Format, cells, Alignment (tab), turn on wrap cells
 
The text display of a formula.
my formula is:
=TEXT(Calendar+(ROW(D2)-ROW(Calendar))*7/2+(COLUMN(D2)-
COLUMN(Calendar)),"d")& NEWLINE OFFSET(List!$C$1,(ROW(D2)-
ROW(Calendar))*7/2+(COLUMN(D2)-COLUMN(Calendar)),0)

The the first line is a date and otherlines are text.

Thanks,
Don
 
The char(10) worked.

Thanks,
Don
-----Original Message-----
In a Worksheet use CHAR(10)
in a macro use CHR(10)

Alt+Enter automatically turns on Cell Wrap. This won't
so you may have to format the cells yourself.
Format, cells, Alignment (tab), turn on wrap cells





.
 

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