Match data from a table !!!

G21

New Member
Joined
Oct 17, 2010
Messages
26
Hi,
Im having 2sheets of data & in Sheet2 i have a table of data.eg -
A X
A Y
B Y

in sheet1 i have another set of data. I wanted to check those data are match with data in sheet2 table. ( both columns should match)if it match i need to mention "Yes" in 3rd column , if not "NO" .

A X YES
B X NO

pls help me to solve this .

Tks & RGDS,
G
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Hi,
Im having 2sheets of data & in Sheet2 i have a table of data.eg -
A X
A Y
B Y

in sheet1 i have another set of data. I wanted to check those data are match with data in sheet2 table. ( both columns should match)if it match i need to mention "Yes" in 3rd column , if not "NO" .

A X YES
B X NO

pls help me to solve this .

Tks & RGDS,
G
What version of Excel are you using?

Here's one way that will work in any version.

=IF(SUMPRODUCT(--(Sheet2!A$2:A$100=A2),--(Sheet2!B$2:B$100=B2))>0,"Yes","No")

Adjust the ranges to suit.

Copy down as needed.
 
Upvote 0
HI VOG, it works for a cell , but it does not work when i copy the same downwards to below cells.

HI Biff , its exactly works for my requirement.

Thanks both for your quick response ...

Really appreciate.

RGDS,
G
 
Upvote 0

Forum statistics

Threads
1,224,589
Messages
6,179,744
Members
452,940
Latest member
rootytrip

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