Summing 2 ifs
Try this:
1's
=SUMPRODUCT(--(B1:B100="M"),--(C1:C100=1),A1:A100)
2's
=SUMPRODUCT(--(B1:B100="M"),--(C1:C100=2),A1:A100)
3's
=SUMPRODUCT(--(B1:B100="M"),--(C1:C100=3),A1:A100)
HTH,
Paul
--
"Steve" wrote in message
...
I need to add the A column if B has M and C has 1, and also for the 2's in
C
if M & the 3's in C if M.
I need 24 for my corresponding 1s
36.05 for my corresponding 2s
42.5 for my corresponding 3s
The #N/A s are not needed.
I don't think I asked this very well, but I hope it's understandable.
Thanks,
A B C
8 M 1
8 M 1
8 M 1
6.14 #N/A 1
8 M 2
8 M 2
10 M 2
10.05 M 2
8 #N/A 2
8 M 3
10.5 M 3
8 M 3
8 M 3
8 M 3
|