Compare 2 col with 2 col and find the different

Hyakkivn

Board Regular
Joined
Jul 28, 2021
Messages
81
Office Version
  1. 2010
Platform
  1. Windows
Hi everyone !
I have an issue as below:
1. I have 2 sheets named: "code" and "Detail"
2. In sheet code, range("Q2:R-lastRow") store the base radians of vehicle route.
3. In sheet Detail, range("G2:H-lastRow") store the everyday-route of vehicles.
4. Q and G store departure point, R and H store destination.
I would like a solution that compare Gi:Hi with Qj:Rj. if there is/there are Gi:Hi that doesn't fit Qj:Rj, notice the position of that Gi:Hi. If every row fit, just tell" Every row is fit.
5. j = 2 to 250, i = 3 to 42000.
Thanks in advance
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Couldn't you achieve that by just adding a column to the Detail sheet with Countifs and then filtering on that column for zero or not zero ?
Excel Formula:
=COUNTIFS(code!Q2:Q250,G3,code!R2:R250,H3)
 
Upvote 0
Solution

Forum statistics

Threads
1,224,823
Messages
6,181,183
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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