How to ignore cells while concatenating cells in Excel

Jenny310

New Member
Joined
Jan 30, 2018
Messages
8
Hi. I'm trying to concat Cell A, B, and C. However, I don't want to concat the row if column A has "N".
For example, below I would like to skip 4and 5 because column A has "N".


****** id="cke_pastebin" style="position: absolute; top: 0px; width: 1px; height: 1px; overflow: hidden; left: -1000px;">Hi. I'm trying to concat Cell A, B, and C. However, I don't want to concat the row if column A has "N".
For example, Below I would like to skip row 4 and 5 because column A has "N". (Highlighted in yellow)

Thanks,
Jenny</body>[TABLE="width: 233"]
<colgroup>







</colgroup><tbody>[TR]
[TD="width: 59"]A[/TD]
[TD="width: 99"]B[/TD]
[TD="width: 69"]C[/TD]
[TD="width: 84"]Concate[/TD]
[/TR]
[TR]
[TD]y[/TD]
[TD]Dodge[/TD]
[TD]c100[/TD]
[TD]yDodgec100[/TD]
[/TR]
[TR]
[TD]y[/TD]
[TD]Cap[/TD]
[TD]c101[/TD]
[TD]yCapc101[/TD]
[/TR]
[TR]
[TD="class: xl65"]n[/TD]
[TD="class: xl65"]Circus[/TD]
[TD="class: xl65"]c102[/TD]
[TD]nCircusc102[/TD]
[/TR]
[TR]
[TD="class: xl65"]n[/TD]
[TD="class: xl65"]Warren[/TD]
[TD="class: xl65"]c103[/TD]
[TD]nWarrenc103[/TD]
[/TR]
[TR]
[TD]y[/TD]
[TD]Tooker[/TD]
[TD]c104[/TD]
[TD]yTookerc104[/TD]
[/TR]
[TR]
[TD]y[/TD]
[TD]Dodge[/TD]
[TD]c100[/TD]
[TD]yDodgec100[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Hi Jenny310,

Welcome to MrExcel!!

Assuming the data starts in Row 1, put this in cell D1...

=IF(A1="n","",A1&B1&C1)

...and copy it down as far as you need it.

HTH

Robert
 
Upvote 0
Hi Robert, Sorry, one more question.
I added another column.
If column A is "N" or Column D is blank don't concate the row.

[TABLE="width: 380"]
<colgroup><col><col><col span="2"><col></colgroup><tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]Concate[/TD]
[/TR]
[TR]
[TD]y[/TD]
[TD]Dodge[/TD]
[TD]c100[/TD]
[TD]yard[/TD]
[TD]yDodgec100[/TD]
[/TR]
[TR]
[TD]y[/TD]
[TD]Cap[/TD]
[TD]c101[/TD]
[TD]fence[/TD]
[TD]yCapc101[/TD]
[/TR]
[TR]
[TD]n[/TD]
[TD]Circus[/TD]
[TD]c102[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]n[/TD]
[TD]Warren[/TD]
[TD]c103[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]y[/TD]
[TD]Tooker[/TD]
[TD]c104[/TD]
[TD]dog[/TD]
[TD]yTookerc104[/TD]
[/TR]
[TR]
[TD]y[/TD]
[TD]Dodge[/TD]
[TD]c100[/TD]
[TD]fence[/TD]
[TD]yDodgec100[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,173
Members
453,021
Latest member
Justyna P

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