Sum Totals/Different Conditions

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
 
L

Lars-Åke Aspelin

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
 
J

Jacob Skaria

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
 
K

KS

..... works like a charm... ; )

Many Thanks!

Jacob Skaria said:
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

Top