Need only duplicate Values, how to do this using VBA

prasath

Board Regular
Joined
Dec 11, 2009
Messages
57
Hi,

I have two sets of data in my file. And i have to find out the duplicate values between these fields (only duplicate filed)

For Example

Table 1

A
B
D

Table 2

B
D
F

Ideal Output

A
F

it could be really fine, if we did this through VBA. Pl. suggest..

Thanks in advance

Prasath RH
 

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"
Am I right in thinking your output should consist of the datasets that are not duplicated?
 
Upvote 0
Am I right in thinking your output should consist of the datasets that are not duplicated?

Data 1

A
B
C
D
E
F
G



Data 2

B
C
D



Ideal Output

B
C
D




"B, C, D" is available both "Data 1" and Data 2". So is required in "Ideal Output" space
 
Upvote 0

Forum statistics

Threads
1,224,524
Messages
6,179,310
Members
452,906
Latest member
phanmemchatdakenhupviral

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