Comparing two columns

rainmantwo

New Member
Joined
Jun 13, 2002
Messages
45
I have a ss and which I need to compare two columns - column c and column n before I concatenate them. How do I compare the two columns and if there the same, do not contcatenate them.

If this is not possible in a concatenate statement, is it possible to compare column and column n and if they match, delete the corresponding cell in column n.

I am new to Excel and VB and would appreciate any help you can offer.

Thanks - Brian
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
=if(c1=n1,"Do not concatenate",c1&n1)

edit: missed the ..delete if match bit...will leave the vba to someone else.
 
Upvote 0
Don't understand

Thanks for the help. but I do not understand. I am looking to compare to column and if they are not the same to concatenate them.

Thanks :biggrin:
 
Upvote 0

Forum statistics

Threads
1,213,538
Messages
6,114,218
Members
448,554
Latest member
Gleisner2

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