polarisking
Member
I need to count elements in an array where the element qualifies based on a separate lookup.
Here's the horizontal array of 6 items (could be more, of course)
Example:
RPT01 ABC02 RPT03 RPT04 XYZ05 RPT06
For each item, I want to count it ONLY if a lookup vs. a separate table = "Yes" in the second column(example of lookup table below)
RPT01 Yes
RPT02 Yes
RPT03 No
RPT04 Yes
RPT05 Yes
RPT06 No
The answer here would be 2.
I've tried using vlookup inside a sumproduct -Something like =sumproduct(--(vlookup(RptIds,RptIdTable,2,false)="Yes"))), but it's failing. I'm grateful for any advice.
Here's the horizontal array of 6 items (could be more, of course)
Example:
RPT01 ABC02 RPT03 RPT04 XYZ05 RPT06
For each item, I want to count it ONLY if a lookup vs. a separate table = "Yes" in the second column(example of lookup table below)
RPT01 Yes
RPT02 Yes
RPT03 No
RPT04 Yes
RPT05 Yes
RPT06 No
The answer here would be 2.
I've tried using vlookup inside a sumproduct -Something like =sumproduct(--(vlookup(RptIds,RptIdTable,2,false)="Yes"))), but it's failing. I'm grateful for any advice.