# Find differences in 2 columns in 2 different workbooks

#### honkin

##### Active Member
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?

### Excel Facts

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

Replies
5
Views
158
Replies
0
Views
150
Replies
0
Views
208
Replies
1
Views
365
Replies
9
Views
220

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.

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.

### Which adblocker are you using?

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

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