Check if value matches in a range

suzeet

New Member
Joined
Oct 8, 2018
Messages
3
Hi,
I want to match the column on a range. Suppose as in the example below, for the Sq No 1, if the Address column of first four rows (where Sq No = 1), I want to put a "YES" if matched, in the Match column

Sq NoIDAddressMatch
11500946
3410 WORTH ST

<tbody>
</tbody>
YES
11500946
3500 GASTON AVE

<tbody>
</tbody>
11500946
6401 MAPLE AVE APT 1203

<tbody>
</tbody>
1
3312005

<tbody>
</tbody>
3410 WORTH ST

<tbody>
</tbody>
YES
2590851
3410 WORTH ST

<tbody>
</tbody>
2590851
530 CLARA BARTON BLVD

<tbody>
</tbody>
2
590851

<tbody>
</tbody>
TOPA

<tbody>
</tbody>
2
3312027

<tbody>
</tbody>
3415 WORTH ST

<tbody>
</tbody>
3
1469183

<tbody>
</tbody>
144 PINE MEADOWS LN

<tbody>
</tbody>
YES
3
3312034

<tbody>
</tbody>
144 PINE MEADOWS LN

<tbody>
</tbody>
YES

<tbody>
</tbody>
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
How about this?

=IF(COUNTIFS(A$1:A$10,A1,C$1:C$10,C1)=2,"YES","")

Works fine on your sample data

BUT

make sure you test it on lots of other data as I'm not sure it's totally correct.

But it does work on your data.
 
Upvote 0

Forum statistics

Threads
1,214,991
Messages
6,122,628
Members
449,095
Latest member
bsb1122

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