View Single Post
  #6   Report Post  
Posted to microsoft.public.excel.misc
neda5
 
Posts: n/a
Default sumif with two conditions

Thanks. Can I make that formula to check only if the first column is less
than 4, not the whole table?

"Bob Phillips" wrote:

=SUMPRODUCT((A1:E1=6)*(A2:E8<4)*(A2:E8))

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"neda5" wrote in message
...
Hi,
I am trying to come up with a formula that would add all the 06 numbers
with a code under 4.
Code 06 06 06 07 07 07
1 - - - - - -
2 - 5 - - - -
3 - 5 7 - - -
4 - 5 7 - - -
5 - 5 - 7 7 -
6 - 3 7 - 7 -
7 - 2 7 - 7 -

Can anyone help me?
Thanks in advance.
Neda