Concatenate values from range + carriage return

smithjake23

New Member
Joined
Aug 29, 2011
Messages
1
I have cells P2, Q2, R2, S2, T2, and U2 that contain a formula that returns the header text from columns J, K, L, M, N, and O, respectively, when the condition "Yes" is true. An example of the formula used in P2 is as follows:

=IF(J2="YES",J1,"")

I would like to do the following in V2
(1) concatenate the text results from cells P2, Q2, R2, S2, T2, and U2
(2) Insert a carriage return between each of the returned text strings, and
(3) only concatenate the cells where text exists (i.e. will not have carriage returns from empty cells.

Is there a formula that can do this?

Thanks
Jake
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.

Forum statistics

Threads
1,224,583
Messages
6,179,681
Members
452,937
Latest member
Bhg1984

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top