Do you mean?
=SUMPRODUCT((A1:A20="XA")*(B1:B20="GA")*(C1:C20>0))
--
Regards
Dave Hawley
www.ozgrid.com
"PhilC" <(E-Mail Removed)> wrote in message
news:8468856B-1E29-4025-B655-(E-Mail Removed)...
> hi...I'm looking for a function that will count frequency using multiple
> variables in an unsorted data set using two variables. I can get the
> information that I need by sorting the data and then using
> Data->Autofilter
> and using the countif function ti isolate the variables individual.
> However,
> this is problematic if the data gets re-sorted.
>
> Data example
>
> A B C
> XA GM 125
> XC BA 34
> XA GM 23
> XC NY 19
> XA GM (blank)
>
> I'm looking to count the number of occurrences of XA where the value of GM
> is greater than zero, skipping blank entries. I've tried a number of
> different functions but haven't had any luck so far.
>
> any help would be appreciated.
>
> thank you
>
> phil
>