Morning all!
The title basically descirbes what I'm trying to achieve - I want to count all values in a range that equal any value in another range.
So I have a massive table of about 40,000 rows, and I'm counting certain colmumns based on multiple criteria. Here's one of the formulas im using:
=COUNTIFS(Faults!$L$2:$L$100537,">="&$D3,Faults!$L$2:$L$100537,"<"&$D4,Faults!$A$2:$A$100537,L$3,Faults!$J$2:$J$100537,L$4,Faults!$I$2:$I$100537,DataVal!N$5:N$24)
This formula is created dynamically with VBA depending on user input, so if possible i'd like to keep it as a 'COUNTIFS' function.
The problem is with this last bit:
Faults!$I$2:$I$100537,DataVal!N$5:N$24
It only counts values equal to the first cell in the range N5:N24, and not the whole range.
Any help would be greatly appreciated!
Cheers,
Adam
Bookmarks