Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Excel: How to insert carriage returns in a formula to manipulate t

I know that Alt-Enter inserts a carriage return in a cell, however, I need to
do this programatically, gathering text from cell one, inserting the carriage
return, then text from cell 2.

Cell A1 contains the text "LINE ONE "
Cell A2 contains the text "LINE TWO"

=A1&A2 will give you LINE ONE LINE TWO

But, what I need is:
LINE ONE
LINE TWO

Using Word Wrap is not an answer I can use, the formula needs to contain a
carriage return. Many thanks!

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Excel: How to insert carriage returns in a formula to manipulate t

=A1 & CHAR(10) & A2


Gord Dibben MS Excel MVP

On Thu, 21 Jun 2007 08:01:04 -0700, Cardinal2B
wrote:

I know that Alt-Enter inserts a carriage return in a cell, however, I need to
do this programatically, gathering text from cell one, inserting the carriage
return, then text from cell 2.

Cell A1 contains the text "LINE ONE "
Cell A2 contains the text "LINE TWO"

=A1&A2 will give you LINE ONE LINE TWO

But, what I need is:
LINE ONE
LINE TWO

Using Word Wrap is not an answer I can use, the formula needs to contain a
carriage return. Many thanks!


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing carriage returns from excel Luvsql Excel Worksheet Functions 9 March 20th 07 05:59 PM
Formula for Carriage Returns Excel Believer Excel Discussion (Misc queries) 4 December 21st 06 04:37 PM
Inserting carriage returns in Excel cells Alyce Excel Discussion (Misc queries) 5 September 13th 06 03:46 PM
Carriage Returns Excel 2003 Zoddy Excel Discussion (Misc queries) 0 August 15th 06 01:35 PM
Carriage returns in the formula bar? rubeus Excel Worksheet Functions 4 July 6th 06 06:05 PM


All times are GMT +1. The time now is 01:06 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"