Hi there,
I have two long columns of data. One column has ID# and the other column has a year (see attachment example with fewer rows). I would like to see how many of the ID#s in one year, also exist in the other year (unique matches only).
In the attached example, the numbers 1, 2, 3, 4, & 5, (column A) all exist for both 2014 (in red) and 2015 (in blue) (column B), so I would like the output of my formula to be 5. Note that I do not want duplicate numbers counted more than once.
Also, because I have a lot of data, it is not ideal for me to select the cells manually, I would prefer to tell excel to search for matching values in two ranges that are conditional on the year in column B. I know how to do this if there are two columns, but I cannot figure out how to specify two ranges conditionally based on the year in column B.
Can someone help me? Do I have to use VBA for this (I have zero experience with VBA) or can I get away with formulas?
Many thanks in advance,
Slmayobb
Screen Shot 2017-05-06 at 10.57.07 AM.png
Bookmarks