Sum Totals/Different Conditions

  • Thread starter Thread starter KS
  • Start date Start date
K

KS

Need help with the following:

Column N contains numeric values (page counts) - I need to add the sum of N
under 2 conditions. N will always contain a numeric value

1) Total of N for all records where A= Y and B= Y
2) Total of N for all records where A= Y and B= N
3) if either of the above conditions are not met, the value in N is not
included

These 2 totals will reside in two diff cells - doesn't matter where, say M1
and M2 respectively.

Thanks in advance for the help
 
Need help with the following:

Column N contains numeric values (page counts) - I need to add the sum of N
under 2 conditions. N will always contain a numeric value

1) Total of N for all records where A= Y and B= Y
2) Total of N for all records where A= Y and B= N
3) if either of the above conditions are not met, the value in N is not
included

These 2 totals will reside in two diff cells - doesn't matter where, say M1
and M2 respectively.

Thanks in advance for the help


Try these formulas:

=SUMPRODUCT((A1:A100="Y")*(B1:B100="Y")*(N1:N100))

and

=SUMPRODUCT((A1:A100="Y")*(B1:B100="N")*(N1:N100))

Change the 100's to fit the size of your data in columns A and B

Hope this helps / Lars-Åke
 
1)M1 =SUMIFS(N:N,A:A,"Y",B:B,"Y")
2)M2 = =SUMIFS(N:N,A:A,"Y",B:B,"N")

If this post helps click Yes
 

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

Sum 2
To Sum Up 2
Weight the coulum totals by level of importance? 3
sum conditional 5
Multiple Conditions 5
Addition formulas problem 12
Conditional SUMmations and averages 9
Sum Total 2

Back
Top