PC Review


Reply
Thread Tools Rate Thread

Concatenate cells with carriage returns

 
 
=?Utf-8?B?Um9i?=
Guest
Posts: n/a
 
      3rd Oct 2005
Hi all,

I want to concatenate text in three columns, which would normally be simple.
However, if we take the cells across the three columns, each contains a set
of data using carriage returns (Alt-Enter).

To put some context on the problem, A is First Name, B is Middle Name, C is
Surname.

The data would look like:
A B C
1 David Robert Hughes
Mark Dave Marriott
Martin Benjamin Murray
2 Shaun Andrew Flannagan
Alison Jane Martin

So I would like to combine the data into some sort of output that will lead
to the following, with each :
1 David Robert Hughes
Mark Dave Marriott
Martin Benjamin Murray
2 Shaun Andrew Flannagan
Alison Jane Martin

It is worth noting that some cells may contain 5 entries using carriage
returns, while others may have 2.

Is anyone able to help?

Many thanks,

Rob
 
Reply With Quote
 
 
 
 
=?Utf-8?B?UmF5IEE=?=
Guest
Posts: n/a
 
      3rd Oct 2005
One way
Use text to columns with the carruage return as the delimiter. Then
concatenate as normal
HTH

"Rob" wrote:

> Hi all,
>
> I want to concatenate text in three columns, which would normally be simple.
> However, if we take the cells across the three columns, each contains a set
> of data using carriage returns (Alt-Enter).
>
> To put some context on the problem, A is First Name, B is Middle Name, C is
> Surname.
>
> The data would look like:
> A B C
> 1 David Robert Hughes
> Mark Dave Marriott
> Martin Benjamin Murray
> 2 Shaun Andrew Flannagan
> Alison Jane Martin
>
> So I would like to combine the data into some sort of output that will lead
> to the following, with each :
> 1 David Robert Hughes
> Mark Dave Marriott
> Martin Benjamin Murray
> 2 Shaun Andrew Flannagan
> Alison Jane Martin
>
> It is worth noting that some cells may contain 5 entries using carriage
> returns, while others may have 2.
>
> Is anyone able to help?
>
> Many thanks,
>
> Rob

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA: Concatenate with carriage returns =?Utf-8?B?Um9i?= Microsoft Excel Programming 2 4th Oct 2005 01:41 PM
Concatenate columns with cell data containing Carriage Returns =?Utf-8?B?Um9i?= Microsoft Excel Worksheet Functions 3 4th Oct 2005 08:49 AM
referencing cells with carriage returns David Microsoft Excel Discussion 1 19th Dec 2004 08:12 PM
Merging Cells adding Carriage Returns Colin Vicary Microsoft Excel Misc 3 16th Sep 2004 02:41 PM
Concatenate with carriage returns neopolitan Microsoft Excel Worksheet Functions 2 23rd Jun 2004 04:50 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:23 AM.