Thread: 3 criteria
View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JE McGimpsey
 
Posts: n/a
Default 3 criteria

First, all your ranges need to be the same size. Probably need to change
E123 to E124.

Second, since you're multiplying by the range J124:J1111, but only if
J124:J1111=0, you can replace the whole formula with

0

In article ,
Mike B wrote:

My old formula worked fine for finding the number based on two
criteria,
=SUMPRODUCT(-(J124:J1111=0),-(AV124:AV1111="yes"))

Now I want to add a third criteria,
=SUMPRODUCT(--(AV124:AV1111="yes"),--(E123:E1111"Half
Off"),--(J124:J1111=0),J124:J1111)

But now I get a #VALUE error....any ideas?