I'm having a bit of trouble with countif. Sumif no problem. Here is the
situation I have.
In one column there are a list of brands, in the next 3 columns are 3
suppliers rates for each brand. Some suppliers have chosen to not complete
rates for where they do not operate so in their columns, there are zeros to
indicated no rates submitted for those particular brands. Here is a
rudimentary layout.
Brand List Supplier1 Supplier2 Supplier 3
ABC Site1
ABC Site2
ABC Site3
ABC Site4
ABC Site5
AAF Site1
AAF Site2
AAF Site3
AAF Site4
AAF Site5
Under Supplier columns all the rates are submitted but suppose Supplier 2
can only service 2 ABCs and not all 5. When the sum by Supplier is done
Supplier 2 can appear cheap but then not really because he has only quoted
on 3 ABC sites.
What I want to do is to get the sum of the rates and then divide through by
the count within each brands quoted so that other suppliers who quoted on
all ABCs are not disadvantaged and you can compare like with like. The sumif
part works fine. It's the countif that I'm having the problem with. I can
get the count of all sites by brand using countif but not the count of sites
where only some of them have been quoted. My list of sites runs into the
thousands - this is a great simplification of what I mean
Maybe a well constructed sumproduct formula may do the job. If all sites
have been quoted on then sum the rates by brand and divide through by the
count of sites for each supplier. Where fewer than all sites are quoted on,
then sum those rates by brand and divide through by the count of the sites
within that brand that have been quoted.
Any help appreciated
Bookmarks