Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Concatentate text and insert blank line

For each row, I have text in 3 columns that I want to concatenate into one
cell with a return after each line.

Example, given a row with the following...

A1 - "This is"
A2 - "my"
A3 = "sample date"

I'm trying to write a concatenate formula so that the contents of each
source cell (A1 thru A3) appears on a line by itself, but all within a single
cell so the output is:

This is
my
sample data

How do I concatenate text with a new line code?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Concatentate text and insert blank line

Try the below ...and check wordwrap for the formula cell..
FormatCellsAlignmentWordWrap

=A1&CHAR(10)&A2&CHAR(10)&A3

If this post helps click Yes
---------------
Jacob Skaria


"Bethany" wrote:

For each row, I have text in 3 columns that I want to concatenate into one
cell with a return after each line.

Example, given a row with the following...

A1 - "This is"
A2 - "my"
A3 = "sample date"

I'm trying to write a concatenate formula so that the contents of each
source cell (A1 thru A3) appears on a line by itself, but all within a single
cell so the output is:

This is
my
sample data

How do I concatenate text with a new line code?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,722
Default Concatentate text and insert blank line

First, make sure word wrap is enable for the cell, and that the row is tall
enough to display all 3 lines. Then, the formula is:

=A1&CHAR(10)&A2&CHAR(10)&A3

CHAR(10) is a line feed
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Bethany" wrote:

For each row, I have text in 3 columns that I want to concatenate into one
cell with a return after each line.

Example, given a row with the following...

A1 - "This is"
A2 - "my"
A3 = "sample date"

I'm trying to write a concatenate formula so that the contents of each
source cell (A1 thru A3) appears on a line by itself, but all within a single
cell so the output is:

This is
my
sample data

How do I concatenate text with a new line code?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Concatentate text and insert blank line

You can do it like this:

=A1&CHAR(10)&A2&CHAR(10)&A3

You need to set the cell format to Wrap Text.

Hope this helps.

Pete

On Nov 10, 4:39*pm, Bethany wrote:
For each row, I have text in 3 columns that I want to concatenate into one
cell with a return after each line. *

Example, given a row with the following...

A1 - "This is"
A2 - "my"
A3 = "sample date"

I'm trying to write a concatenate formula so that the contents of each
source cell (A1 thru A3) appears on a line by itself, but all within a single
cell so the output is:

This is
my
sample data

How do I concatenate text with a new line code?


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Concatentate text and insert blank line

Bingo! That's what I needed... I just didn't know the code for the line feed
(nor was I sure if the concatentate function would support it.)

Thanks!

"Jacob Skaria" wrote:

Try the below ...and check wordwrap for the formula cell..
FormatCellsAlignmentWordWrap

=A1&CHAR(10)&A2&CHAR(10)&A3

If this post helps click Yes
---------------
Jacob Skaria


"Bethany" wrote:

For each row, I have text in 3 columns that I want to concatenate into one
cell with a return after each line.

Example, given a row with the following...

A1 - "This is"
A2 - "my"
A3 = "sample date"

I'm trying to write a concatenate formula so that the contents of each
source cell (A1 thru A3) appears on a line by itself, but all within a single
cell so the output is:

This is
my
sample data

How do I concatenate text with a new line code?



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Concatentate text and insert blank line

I got the word wrap, but didn't know the code for the line feed (nor was I
sure if the concatentate function would support it.) thanks for your help!

Thanks!

"Luke M" wrote:

First, make sure word wrap is enable for the cell, and that the row is tall
enough to display all 3 lines. Then, the formula is:

=A1&CHAR(10)&A2&CHAR(10)&A3

CHAR(10) is a line feed
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Bethany" wrote:

For each row, I have text in 3 columns that I want to concatenate into one
cell with a return after each line.

Example, given a row with the following...

A1 - "This is"
A2 - "my"
A3 = "sample date"

I'm trying to write a concatenate formula so that the contents of each
source cell (A1 thru A3) appears on a line by itself, but all within a single
cell so the output is:

This is
my
sample data

How do I concatenate text with a new line code?

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
How do I insert a blank line when category changes castleds Excel Discussion (Misc queries) 2 September 27th 06 09:10 PM
insert a blank in every second line of a row EliseT Excel Discussion (Misc queries) 6 June 5th 06 01:43 PM
Insert blank line macro laidebug Excel Worksheet Functions 1 April 14th 06 11:56 PM
Insert Blank Line Sherry Excel Discussion (Misc queries) 8 January 31st 06 03:37 PM
auto insert blank line Little pete Excel Discussion (Misc queries) 4 August 29th 05 09:48 PM


All times are GMT +1. The time now is 05:57 PM.

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

About Us

"It's about Microsoft Excel"