Quantcast
Channel: Excel IT Pro Discussions forum
Viewing all articles
Browse latest Browse all 11829

COUNTIF and VLOOKUP

$
0
0

I have a worksheet named CODES with 41 codes in column A and either a 1 or 0 in column B that indicates if occurrences of each of the codes should counted. 1 means the code should be counted, 0 means that the code should not be counted. I have another worksheet with column J of code occurrences. I need the total count of rows in column J having codes that should be counted. I thought I might be able to use =COUNTIF(J2:J101,"=VLOOKUP(J2:J101,'CODES'!A2:B42,1)") but that does not seem to work. What is the right way to accomplish the task? 




Viewing all articles
Browse latest Browse all 11829

Trending Articles