How to find the Match with the ranges

xlhelp15

Board Regular
Joined
Sep 12, 2014
Messages
115
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
  3. Web
Hello All - Please help me for the below request.

I need to match values from RowA with remaining Columns(RowB to RowE) and it needs to return "Yes" if values match within that range and return "NO" when there is no match in that.

for eg,
if I take value, 553987601100 that is found in cells(8,8) and it needs to return YES, if not return NO.

Your timely help is greatly appreciated !

[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD="align: center"]RowA[/TD]
[TD="align: center"]RowB[/TD]
[TD="align: center"]RowC[/TD]
[TD="align: center"]RowD[/TD]
[TD="align: center"]RowE[/TD]
[/TR]
[TR]
[TD]553987601100
[/TD]
[TD]281840401112
[/TD]
[TD]711073801173
[/TD]
[TD]846035901140
[/TD]
[TD]714205401379
[/TD]
[/TR]
[TR]
[TD]715845501625
[/TD]
[TD]639427901076
[/TD]
[TD]507852901117
[/TD]
[TD]507852901117
[/TD]
[TD]846035901140
[/TD]
[/TR]
[TR]
[TD]902702801017
[/TD]
[TD]270493601138
[/TD]
[TD]507852901117
[/TD]
[TD]714205401379
[/TD]
[TD]864770201178
[/TD]
[/TR]
[TR]
[TD]864770201201
[/TD]
[TD]687484701023
[/TD]
[TD]902702801017
[/TD]
[TD]711073801173
[/TD]
[TD]714205401379
[/TD]
[/TR]
[TR]
[TD]921575001002
[/TD]
[TD]507852901117
[/TD]
[TD]711073801173
[/TD]
[TD]507852901117
[/TD]
[TD]507852901117
[/TD]
[/TR]
[TR]
[TD]864770201171
[/TD]
[TD]864770201201
[/TD]
[TD]714205401379
[/TD]
[TD]708994701229
[/TD]
[TD]846035901140
[/TD]
[/TR]
[TR]
[TD]508993001157
[/TD]
[TD]846035901140
[/TD]
[TD]507852901117
[/TD]
[TD]715845501625
[/TD]
[TD]507852901117
[/TD]
[/TR]
[TR]
[TD]864770201178
[/TD]
[TD]507852901117
[/TD]
[TD]708994701229
[/TD]
[TD]851739501077
[/TD]
[TD]553987601100
[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Hello All - Please help me for the below request.

I need to match values from RowA with remaining Columns(RowB to RowE) and it needs to return "Yes" if values match within that range and return "NO" when there is no match in that.

for eg,
if I take value, 553987601100 that is found in cells(8,8) and it needs to return YES, if not return NO.

Your timely help is greatly appreciated !

[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD="align: center"]RowA[/TD]
[TD="align: center"]RowB[/TD]
[TD="align: center"]RowC[/TD]
[TD="align: center"]RowD[/TD]
[TD="align: center"]RowE[/TD]
[/TR]
[TR]
[TD]553987601100
[/TD]
[TD]281840401112
[/TD]
[TD]711073801173
[/TD]
[TD]846035901140
[/TD]
[TD]714205401379
[/TD]
[/TR]
[TR]
[TD]715845501625
[/TD]
[TD]639427901076
[/TD]
[TD]507852901117
[/TD]
[TD]507852901117
[/TD]
[TD]846035901140
[/TD]
[/TR]
[TR]
[TD]902702801017
[/TD]
[TD]270493601138
[/TD]
[TD]507852901117
[/TD]
[TD]714205401379
[/TD]
[TD]864770201178[/TD]
[/TR]
[TR]
[TD]864770201201
[/TD]
[TD]687484701023
[/TD]
[TD]902702801017[/TD]
[TD]711073801173
[/TD]
[TD]714205401379
[/TD]
[/TR]
[TR]
[TD]921575001002
[/TD]
[TD]507852901117
[/TD]
[TD]711073801173
[/TD]
[TD]507852901117
[/TD]
[TD]507852901117
[/TD]
[/TR]
[TR]
[TD]864770201171
[/TD]
[TD]864770201201[/TD]
[TD]714205401379
[/TD]
[TD]708994701229
[/TD]
[TD]846035901140
[/TD]
[/TR]
[TR]
[TD]508993001157
[/TD]
[TD]846035901140
[/TD]
[TD]507852901117
[/TD]
[TD]715845501625[/TD]
[TD]507852901117
[/TD]
[/TR]
[TR]
[TD]864770201178
[/TD]
[TD]507852901117
[/TD]
[TD]708994701229
[/TD]
[TD]851739501077
[/TD]
[TD]553987601100[/TD]
[/TR]
</tbody>[/TABLE]
You need to create a table. Then in B column:

=IF(COUNTIF(Table1[[RowB]:[RowE]],[@RowA])>0,"YES","NO")

It basically counts how many instances of the rowA entry is in the other rows and returns a number. If it's more than 0, you get YES.
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,853
Members
452,361
Latest member
d3ad3y3

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