Conditional Concatenation

u0107

Board Regular
Joined
Dec 18, 2002
Messages
154
Hello,

I have a spreadsheet in which I have values from Column D onwards to the right. These values are texts. But since the values are populated on the basis of an array based match formula, I am unable to prevent Zero being put in the cells where the array formula does not find a match for a lookup value. Also the number of Columns in which the texts can exist differ for different rows.

Example:

D3="Sam"
E3="David"
F3="John"

D4="Jack"
E4="Victor"
F4="Mike"
G4="Juan"

and so on..

I would like to concatenate all non-blank values in Row 3 (Column D to ???) separated by (a comma and a space) and put it in the corresponding Column C of the same row.

In the example above C3 should contain "Sam, David, John" and C4 should contain "Jack, Victor, Mike, Juan"

Any suggestions please?

Thanks in advance.

Uttam
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.

Forum statistics

Threads
1,206,834
Messages
6,075,134
Members
446,123
Latest member
junkyardforme

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