0

Count Matching Fields

I have 2 tables:
Table "Program Component"
with fields: Program No./Component No./Number of Allowed Brand
Table "Customer Program"
with fields: Program No./Subscription No./Component No./Number of Picked Brand

The "Number of Picked Brand" could be equal or less than the "Number of Allowed Brand".
I am trying to count number of components in "Customer Program" table for a customer where the "Number of Picked Brand" are equal to "Number of Allowed Brand" from "Program Component" table and the component no. are the same between those two tables.

The following formula gives me 0 even if I could manually find the match
=NL("count","Customer Program",,"Program No.","2011","Subscription No.","123"
,"Number of Picked Brand",nl(,"Program Component","Number of Allowed Brand","Program No.","2011","Component No.","=NF(,""Component No."")))


The following gives me error: #NAME?
OR
=NL("count","Customer Program",,"Program No.","2011","Subscription No.","123"
,"Number of Picked Brand",nl(,"Program Component","Number of Allowed Brand","Program No.","2011","Component No.","=Component No."))

How I do this?

Thank you.

5 comments

Please sign in to leave a comment.