Sumif???

  • Thread starter Thread starter Steve
  • Start date Start date
S

Steve

What formula do I need in G2 and H2

Range A1:F1 is yes or blank
Range A2:F2 is number positive or negative
G2 sum of negative nos where A2:F2 is neg & A1:F1 is yes
H2 sum of positive nos where A2:F2 is pos & A1:F1 is yes

Thanks
 
Hi Steve,

G2:

=SUMPRODUCT((A1:F1="YES")*(A2:F2<0)*A2:F2)

H2:

=SUMPRODUCT((A1:F1="YES")*(A2:F2>0)*A2:F2)

Biff
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Return Min & Cell address 7
Sumif with multiple criteria Pt 2 8
Help? 3
OR function 6
Date Formula 85 factor 7
SUMPRODUCT statement 6
Excel Formula Error 15
Avoiding redundant calculations 7

Back
Top