I have a formula such as the following, modified for simplicity here:
=SUMPRODUCT((JAN!$D$2:$D1000<>"")*(IF(ISNA(MATCH(JAN!$D$2:$D$1000,UNITS)),1,0)))
I'm expecting this formula to parse a column, and if the cell is not empty, to see if the contents of the cell match one of the elements of an array, a named range of cells somewhere else in the file called UNITS.
Currently the worksheet JAN contains 50 items, and most, but not all, of the items in col. D are contained in the comparison array UNITS. So I am expecting to return a number somewhat less than 50 but I am getting 50. (By the way, if I reverse the true/false options to be 0,1 instead of what displays above, I return zero.).
Surely this should work, no?
=SUMPRODUCT((JAN!$D$2:$D1000<>"")*(IF(ISNA(MATCH(JAN!$D$2:$D$1000,UNITS)),1,0)))
I'm expecting this formula to parse a column, and if the cell is not empty, to see if the contents of the cell match one of the elements of an array, a named range of cells somewhere else in the file called UNITS.
Currently the worksheet JAN contains 50 items, and most, but not all, of the items in col. D are contained in the comparison array UNITS. So I am expecting to return a number somewhat less than 50 but I am getting 50. (By the way, if I reverse the true/false options to be 0,1 instead of what displays above, I return zero.).
Surely this should work, no?