View Single Post
  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Shane Devenshire[_2_] Shane Devenshire[_2_] is offline
external usenet poster
 
Posts: 3,346
Default Help with SUMPRODUCT Function

Hi,

Actually you can simplify your formula in the current case to read:

=SUMPRODUCT((Data!K1:K3000="AL")*Data!AB1:AB3000)

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"MattyP" wrote:

Hello -
I'm in need of some help. I need to count the number of occurences (rows)
in a Worksheet, based on two criteria (column entries) in that row.

I've been trying to use the 'SUMPRODUCT' function, but keep winding up with
a value of 0 (although I know the answer should be 0, when I count portions
manually). The formula I've been trying to use is below:

=SUMPRODUCT((Data!K1:K3000="AL")*(Data!AB1:AB3000= "TRUE"))

Where "Data!" is the tab the information is on (the report/detail I'm
attempting to compile in on another tab), column K identifies the state (in
this case AL), and column AB is a flag for whether or not a product has been
included (the only values are True or False).

I've tried everything I can think of, but still can't seem to get this to
work. Any help would be most appreciated !

Thanks for your help,
- Matt