Matching common data from 3 columns?

wisemank

Board Regular
Joined
Jun 21, 2010
Messages
129
Good Morning,

I am looking to identify the data I have from three (3) columns and verify if they are common to each other. Columns F,G & H hold the cost values for parts on 3 different cars. I want to know if the cost matches between the three cars to see if they are shared. below is an example:

[TABLE="width: 500"]
<TBODY>[TR]
[TD]Part name[/TD]
[TD]car1[/TD]
[TD]car2[/TD]
[TD]car3[/TD]
[TD]solution[/TD]
[/TR]
[TR]
[TD]window[/TD]
[TD]5.00[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]muffler[/TD]
[TD]120[/TD]
[TD]120[/TD]
[TD]45[/TD]
[TD]car 1, car2 [/TD]
[/TR]
[TR]
[TD]door handle[/TD]
[TD]16[/TD]
[TD]16[/TD]
[TD]16[/TD]
[TD]car1, car2, car3[/TD]
[/TR]
[TR]
[TD]hood[/TD]
[TD]45[/TD]
[TD]96[/TD]
[TD]45[/TD]
[TD]car 1, car3 [/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
[/TD]
[/TR]
</TBODY>[/TABLE]
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Perhaps
=REPT("car1 ", 1 < COUNTIF(A1:C1,A1))&REPT("car2 ", 1 < COUNTIF(A1:C1,B1))&REPT("car3 ", 1 < COUNTIF(A1:C1,C1))
 
Upvote 0
An alternative:

=IF(COUNTIF(B2:D2,B2)>1,B$1&", ","")&IF(COUNTIF(B2:D2,C2)>1,C$1&REPT(", ",C2=D2),"")&IF(COUNTIF(B2:D2,D2)>1,D$1,"")
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,884
Members
452,364
Latest member
springate

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