ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Can I insert 'carriage/line returns' in text string? (https://www.excelbanter.com/excel-worksheet-functions/191389-can-i-insert-carriage-line-returns-text-string.html)

DC-Frank

Can I insert 'carriage/line returns' in text string?
 
Is there a function or code to enter 'carriage returns' in a text string? I
am using concatenate functions to extract and combine text and field names
from a spreadsheet. The final (one cell) text of the row or 'record' is
easier to share/confirm with those without access to the spreadsheet since I
can then copy/paste the text from the one cell into an email. Currently, I
don't know how to force the formatting or if it is possible. Currently the
cell looks like: Name: Jim Smith Age: 29 City: New York. I'd like the text
to be formatted with line returns like this:
Name: Jim Smith
Age: 29
City: New York

Bob Phillips[_3_]

Can I insert 'carriage/line returns' in text string?
 
="Name: Jim Smith"&CHAR(10)&
"Age: 29"&CHAR(10)&
"City: New York"

--
__________________________________
HTH

Bob

"DC-Frank" wrote in message
...
Is there a function or code to enter 'carriage returns' in a text string?
I
am using concatenate functions to extract and combine text and field names
from a spreadsheet. The final (one cell) text of the row or 'record' is
easier to share/confirm with those without access to the spreadsheet since
I
can then copy/paste the text from the one cell into an email. Currently,
I
don't know how to force the formatting or if it is possible. Currently
the
cell looks like: Name: Jim Smith Age: 29 City: New York. I'd like the
text
to be formatted with line returns like this:
Name: Jim Smith
Age: 29
City: New York





All times are GMT +1. The time now is 12:14 AM.

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