ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Combine text (https://www.excelbanter.com/excel-discussion-misc-queries/141127-combine-text.html)

Lisa

Combine text
 
Does anyone know a macro that would combine these cells into one?
Thanks in advance

Actual Output
10001 Need
Your
Help

10002 Thank
You in
Advance

Desired Output
10001 Need Your Help

10002 Thank You in Advance



Gord Dibben

Combine text
 
Do you want a macro?

It can be done without a macro using the ampersand.

=A1 & " " & B1 & " " & B2 & " " & B3


Gord Dibben MS Excel MVP

On Tue, 1 May 2007 12:20:02 -0700, Lisa wrote:

Does anyone know a macro that would combine these cells into one?
Thanks in advance

Actual Output
10001 Need
Your
Help

10002 Thank
You in
Advance

Desired Output
10001 Need Your Help

10002 Thank You in Advance



Lisa

Combine text
 
It is a huge report and it would take a long time to combine all the cells.
The only problem is that the rows are not consistent. I tried to use the
€śif€ť and then €śconcatenate€ť didnt work. The report looks like this.
Row 10001 €“ Help
Row 10002 Need
Your
Help
Row 10003 Thanks



"Gord Dibben" wrote:

Do you want a macro?

It can be done without a macro using the ampersand.

=A1 & " " & B1 & " " & B2 & " " & B3


Gord Dibben MS Excel MVP

On Tue, 1 May 2007 12:20:02 -0700, Lisa wrote:

Does anyone know a macro that would combine these cells into one?
Thanks in advance

Actual Output
10001 Need
Your
Help

10002 Thank
You in
Advance

Desired Output
10001 Need Your Help

10002 Thank You in Advance




Gord Dibben

Combine text
 
Lisa

Copying the formulas would not take long, but if the data is inconsistent then
that throws a wrinkle into it.

I'll look at whipping up a macro but others here are pretty handy with the
formulas so hang in.

Someone can help.


Gord

On Tue, 1 May 2007 13:14:01 -0700, Lisa wrote:

It is a huge report and it would take a long time to combine all the cells.
The only problem is that the rows are not consistent. I tried to use the
“if” and then “concatenate” didn’t work. The report looks like this.
Row 10001 – Help
Row 10002 Need
Your
Help
Row 10003 Thanks



"Gord Dibben" wrote:

Do you want a macro?

It can be done without a macro using the ampersand.

=A1 & " " & B1 & " " & B2 & " " & B3


Gord Dibben MS Excel MVP

On Tue, 1 May 2007 12:20:02 -0700, Lisa wrote:

Does anyone know a macro that would combine these cells into one?
Thanks in advance

Actual Output
10001 Need
Your
Help

10002 Thank
You in
Advance

Desired Output
10001 Need Your Help

10002 Thank You in Advance





Lisa

Combine text
 
Any help would be greatly appreciated.

"Gord Dibben" wrote:

Lisa

Copying the formulas would not take long, but if the data is inconsistent then
that throws a wrinkle into it.

I'll look at whipping up a macro but others here are pretty handy with the
formulas so hang in.

Someone can help.


Gord

On Tue, 1 May 2007 13:14:01 -0700, Lisa wrote:

It is a huge report and it would take a long time to combine all the cells.
The only problem is that the rows are not consistent. I tried to use the
€śif€ť and then €śconcatenate€ť didnt work. The report looks like this.
Row 10001 €“ Help
Row 10002 Need
Your
Help
Row 10003 Thanks



"Gord Dibben" wrote:

Do you want a macro?

It can be done without a macro using the ampersand.

=A1 & " " & B1 & " " & B2 & " " & B3


Gord Dibben MS Excel MVP

On Tue, 1 May 2007 12:20:02 -0700, Lisa wrote:

Does anyone know a macro that would combine these cells into one?
Thanks in advance

Actual Output
10001 Need
Your
Help

10002 Thank
You in
Advance

Desired Output
10001 Need Your Help

10002 Thank You in Advance







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

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