Find differences in 2 columns in 2 different workbooks

honkin

Active Member
Joined
Mar 20, 2012
Messages
286
Office Version
  1. 2016
Platform
  1. MacOS
I have a sheet that records results of horseracing and I use a formula to alert me to any races with a discrepancy between the number of runners listed and the number of placegetters.

=COUNTIFS(A:A,A18,C:C,C18,H:H,H18)=F18

A is the date; C is the time; H is the name of the racecourse and F is the number of runners.

The idea here is that sometimes there are horses which do not run and the data should reflect that, but sometimes something has gone awry from the data download end, so this helps to alert me. As an example, if the number of runners shows as 12, yet there are only 11 placings showing, then 1 runner didn't actually start, but the data has not been updated correctly. I can then go and look and manually update the race

So I would like to carry it across so I can actually compare a single column in 2 different sheets in different workbooks. Just as with the above formula, the things which will identify the runners is the date (A) and time (C). The difference here is I will need to match the actually horse, so I need to use the name (Q) as well, so A, C & Q instead of A, C & H as previously. If those things all match, then the selections are identical. The column I am trying to compare is AR in both sheets. I simply want a T or F if the cells in AR match, or even just a No if they don't match, what handles it best.

The location of both workbooks is '/Users/SOS/Documents/My Documents/Horse/[July.xlsx]July' The filename will change frequently, but that won't be an issue once I have a working formula

So in essence, how would I amend the above code to be able to tell me if column AR in the sheet I am in matches column AR in the other sheet?

Thanks in advance
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,152,127
Messages
5,768,288
Members
425,460
Latest member
Astros1243

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
Top