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>
ABCConcate
yDodgec100yDodgec100
yCapc101yCapc101
nCircusc102nCircusc102
nWarrenc103nWarrenc103
yTookerc104yTookerc104
yDodgec100yDodgec100

<colgroup>







</colgroup><tbody>
</tbody>
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
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.

ABCDConcate
yDodgec100yardyDodgec100
yCapc101fenceyCapc101
nCircusc102
nWarrenc103
yTookerc104dogyTookerc104
yDodgec100fenceyDodgec100

<colgroup><col><col><col span="2"><col></colgroup><tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,214,905
Messages
6,122,178
Members
449,071
Latest member
cdnMech

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