How to find the Match with the ranges

xlhelp15

Board Regular
Joined
Sep 12, 2014
Messages
113
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 !

RowARowBRowCRowDRowE
553987601100
281840401112
711073801173
846035901140
714205401379
715845501625
639427901076
507852901117
507852901117
846035901140
902702801017
270493601138
507852901117
714205401379
864770201178
864770201201
687484701023
902702801017
711073801173
714205401379
921575001002
507852901117
711073801173
507852901117
507852901117
864770201171
864770201201
714205401379
708994701229
846035901140
508993001157
846035901140
507852901117
715845501625
507852901117
864770201178
507852901117
708994701229
851739501077
553987601100

<tbody>
</tbody>
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
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 !

RowARowBRowCRowDRowE
553987601100
281840401112
711073801173
846035901140
714205401379
715845501625
639427901076
507852901117
507852901117
846035901140
902702801017
270493601138
507852901117
714205401379
864770201178
864770201201
687484701023
902702801017711073801173
714205401379
921575001002
507852901117
711073801173
507852901117
507852901117
864770201171
864770201201714205401379
708994701229
846035901140
508993001157
846035901140
507852901117
715845501625507852901117
864770201178
507852901117
708994701229
851739501077
553987601100

<tbody>
</tbody>
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,214,891
Messages
6,122,101
Members
449,066
Latest member
Andyg666

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