I've attached a sample. It got pretty messy, but it does the job. First, it counts the number of times company3 or company4 appear for any given product. Then I used an if...then to only sum where that total equaled zero.
This could be simplified a bit by creating a variable to store the Count expression.
vCount = Count({<Company = {'company3', 'company4'}>} total <Product> Product)
Then you could simplify the whole expression to be: