JohnnyAngel
Board Regular
- Joined
- Apr 18, 2011
- Messages
- 65
Looking for a formula to sum unique values with multiple criteria.
I need to sum the number of unique Store numbers, by "CHG" status, by a specific Salesperson "John", by a specific dollar amount ">0".
The formula I would imagine would look something like this:
=SUM(IF(FREQUENCY(IF(H20:H1777="CHG",IF(Q20:Q1777="John", IF(P20:P1777>0,(C20:C1777,C20:C1777)>0,1))
I appreciate your help.
<table style="width: 286px; height: 207px;" border="0" cellpadding="0" cellspacing="0"><col style="width: 49pt;" width="66" span="2"> <col style="width: 52pt;" width="69"> <col style="width: 64pt;" width="85"> <tbody><tr style="height: 13.8pt;" height="18"> <td class="xl71" style="height: 13.8pt; width: 49pt;" width="66" height="18">
</td> <td style="vertical-align: top;">
</td><td class="xl71" style="border-left: medium none; width: 49pt;" width="66">
</td> <td class="xl71" style="border-left: medium none; width: 52pt;" width="69">
</td> <td class="xl71" style="border-left: medium none; width: 64pt;" width="85">
</td> </tr> <tr style="height: 13.8pt;" height="18"> <td class="xl71" style="height: 13.8pt; border-top: medium none;" height="18">
</td> <td style="vertical-align: top;">
</td><td class="xl71" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl71" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl71" style="border-top: medium none; border-left: medium none;">
</td> </tr> <tr style="height: 13.8pt;" height="18"> <td class="xl71" style="height: 13.8pt; border-top: medium none;" height="18">
</td> <td style="vertical-align: top;">
</td><td class="xl71" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl71" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl71" style="border-top: medium none; border-left: medium none;">
</td> </tr> <tr style="height: 13.8pt;" height="18"> <td class="xl71" style="height: 13.8pt; border-top: medium none;" height="18">
</td> <td style="vertical-align: top;">
</td><td class="xl71" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl71" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl71" style="border-top: medium none; border-left: medium none;">
</td> </tr> <tr style="height: 13.8pt;" height="18"> <td class="xl71" style="height: 13.8pt; border-top: medium none;" height="18">
</td> <td style="vertical-align: top;">
</td><td class="xl71" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl71" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl71" style="border-top: medium none; border-left: medium none;">
</td> </tr> <tr style="height: 13.8pt;" height="18"> <td class="xl71" style="height: 13.8pt; border-top: medium none;" height="18">
</td> <td style="vertical-align: top;">
</td><td class="xl71" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl71" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl71" style="border-top: medium none; border-left: medium none;">
</td> </tr> <tr style="height: 13.8pt;" height="18"> <td class="xl71" style="height: 13.8pt; border-top: medium none;" height="18">
</td> <td style="vertical-align: top;">
</td><td class="xl71" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl71" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl71" style="border-top: medium none; border-left: medium none;">
</td> </tr> <tr style="height: 13.8pt;" height="18"> <td class="xl71" style="height: 13.8pt; border-top: medium none;" height="18">
</td> <td style="vertical-align: top;">
</td><td class="xl71" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl71" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl71" style="border-top: medium none; border-left: medium none;">
</td> </tr> <tr style="height: 13.8pt;" height="18"> <td class="xl71" style="height: 13.8pt; border-top: medium none;" height="18">
</td> <td style="vertical-align: top;">
</td><td class="xl71" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl71" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl71" style="border-top: medium none; border-left: medium none;">
</td> </tr> </tbody></table>
<table border="0" cellpadding="0" cellspacing="0" width="333"><col style="width: 49pt;" width="66" span="2"> <col style="width: 52pt;" width="69"> <col style="width: 49pt;" width="66" span="2"> <tbody><tr><td style="vertical-align: top;">
</td><td style="vertical-align: top;">
</td><td style="vertical-align: top;">
</td><td style="vertical-align: top;">
</td><td style="vertical-align: top;">
</td></tr><tr style="height: 13.8pt;" height="18"> <td class="xl71" style="height: 13.8pt; width: 49pt;" width="66" height="18">
</td> <td class="xl71" style="width: 49pt;" width="66">
</td> <td class="xl71" style="width: 52pt;" width="69">
</td> <td class="xl71" style="width: 49pt;" width="66">
</td> <td class="xl71" style="width: 49pt;" width="66">
</td> </tr> <tr style="height: 13.8pt;" height="18"> <td class="xl71" style="height: 13.8pt;" height="18">
</td> <td class="xl73">
</td> <td class="xl73">
</td> <td class="xl73" colspan="2" style="">
</td> </tr> <tr style="height: 13.8pt;" height="18"> <td class="xl71" style="height: 13.8pt;" align="right" height="18">
</td> <td class="xl72">
</td> <td class="xl72">
</td> <td class="xl72">
</td> <td class="xl71">
</td> </tr> <tr style="height: 13.8pt;" height="18"> <td class="xl71" style="height: 13.8pt;" align="right" height="18">
</td> <td class="xl72">
</td> <td class="xl72">
</td> <td class="xl72">
</td> <td class="xl71">
</td> </tr> <tr style="height: 13.8pt;" height="18"> <td class="xl71" style="height: 13.8pt;" align="right" height="18">
</td> <td class="xl72">
</td> <td class="xl72">
</td> <td class="xl72">
</td> <td class="xl71">
</td> </tr> <tr style="height: 13.8pt;" height="18"> <td class="xl71" style="height: 13.8pt;" align="right" height="18">
</td> <td class="xl72">
</td> <td class="xl72">
</td> <td class="xl72">
</td> <td class="xl71">
</td> </tr> <tr style="height: 13.8pt;" height="18"> <td class="xl71" style="height: 13.8pt;" align="right" height="18">
</td> <td class="xl72">
</td> <td class="xl72">
</td> <td class="xl72">
</td> <td class="xl71">
</td> </tr> <tr style="height: 13.8pt;" height="18"> <td class="xl71" style="height: 13.8pt;" align="right" height="18">
</td> <td class="xl72">
</td> <td class="xl72">
</td> <td class="xl72">
</td> <td class="xl71">
</td> </tr> <tr style="height: 13.8pt;" height="18"> <td class="xl71" style="height: 13.8pt;" align="right" height="18">
</td> <td class="xl72">
</td> <td class="xl72">
</td> <td class="xl72">
</td> <td class="xl71">
</td> </tr> </tbody></table>
I need to sum the number of unique Store numbers, by "CHG" status, by a specific Salesperson "John", by a specific dollar amount ">0".
The formula I would imagine would look something like this:
=SUM(IF(FREQUENCY(IF(H20:H1777="CHG",IF(Q20:Q1777="John", IF(P20:P1777>0,(C20:C1777,C20:C1777)>0,1))
I appreciate your help.
<table style="width: 286px; height: 207px;" border="0" cellpadding="0" cellspacing="0"><col style="width: 49pt;" width="66" span="2"> <col style="width: 52pt;" width="69"> <col style="width: 64pt;" width="85"> <tbody><tr style="height: 13.8pt;" height="18"> <td class="xl71" style="height: 13.8pt; width: 49pt;" width="66" height="18">
</td> <td style="vertical-align: top;">
</td><td class="xl71" style="border-left: medium none; width: 49pt;" width="66">
</td> <td class="xl71" style="border-left: medium none; width: 52pt;" width="69">
</td> <td class="xl71" style="border-left: medium none; width: 64pt;" width="85">
</td> </tr> <tr style="height: 13.8pt;" height="18"> <td class="xl71" style="height: 13.8pt; border-top: medium none;" height="18">
</td> <td style="vertical-align: top;">
</td><td class="xl71" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl71" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl71" style="border-top: medium none; border-left: medium none;">
</td> </tr> <tr style="height: 13.8pt;" height="18"> <td class="xl71" style="height: 13.8pt; border-top: medium none;" height="18">
</td> <td style="vertical-align: top;">
</td><td class="xl71" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl71" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl71" style="border-top: medium none; border-left: medium none;">
</td> </tr> <tr style="height: 13.8pt;" height="18"> <td class="xl71" style="height: 13.8pt; border-top: medium none;" height="18">
</td> <td style="vertical-align: top;">
</td><td class="xl71" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl71" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl71" style="border-top: medium none; border-left: medium none;">
</td> </tr> <tr style="height: 13.8pt;" height="18"> <td class="xl71" style="height: 13.8pt; border-top: medium none;" height="18">
</td> <td style="vertical-align: top;">
</td><td class="xl71" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl71" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl71" style="border-top: medium none; border-left: medium none;">
</td> </tr> <tr style="height: 13.8pt;" height="18"> <td class="xl71" style="height: 13.8pt; border-top: medium none;" height="18">
</td> <td style="vertical-align: top;">
</td><td class="xl71" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl71" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl71" style="border-top: medium none; border-left: medium none;">
</td> </tr> <tr style="height: 13.8pt;" height="18"> <td class="xl71" style="height: 13.8pt; border-top: medium none;" height="18">
</td> <td style="vertical-align: top;">
</td><td class="xl71" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl71" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl71" style="border-top: medium none; border-left: medium none;">
</td> </tr> <tr style="height: 13.8pt;" height="18"> <td class="xl71" style="height: 13.8pt; border-top: medium none;" height="18">
</td> <td style="vertical-align: top;">
</td><td class="xl71" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl71" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl71" style="border-top: medium none; border-left: medium none;">
</td> </tr> <tr style="height: 13.8pt;" height="18"> <td class="xl71" style="height: 13.8pt; border-top: medium none;" height="18">
</td> <td style="vertical-align: top;">
</td><td class="xl71" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl71" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl71" style="border-top: medium none; border-left: medium none;">
</td> </tr> </tbody></table>
<table border="0" cellpadding="0" cellspacing="0" width="333"><col style="width: 49pt;" width="66" span="2"> <col style="width: 52pt;" width="69"> <col style="width: 49pt;" width="66" span="2"> <tbody><tr><td style="vertical-align: top;">
</td><td style="vertical-align: top;">
</td><td style="vertical-align: top;">
</td><td style="vertical-align: top;">
</td><td style="vertical-align: top;">
</td></tr><tr style="height: 13.8pt;" height="18"> <td class="xl71" style="height: 13.8pt; width: 49pt;" width="66" height="18">
</td> <td class="xl71" style="width: 49pt;" width="66">
</td> <td class="xl71" style="width: 52pt;" width="69">
</td> <td class="xl71" style="width: 49pt;" width="66">
</td> <td class="xl71" style="width: 49pt;" width="66">
</td> </tr> <tr style="height: 13.8pt;" height="18"> <td class="xl71" style="height: 13.8pt;" height="18">
</td> <td class="xl73">
</td> <td class="xl73">
</td> <td class="xl73" colspan="2" style="">
</td> </tr> <tr style="height: 13.8pt;" height="18"> <td class="xl71" style="height: 13.8pt;" align="right" height="18">
</td> <td class="xl72">
</td> <td class="xl72">
</td> <td class="xl72">
</td> <td class="xl71">
</td> </tr> <tr style="height: 13.8pt;" height="18"> <td class="xl71" style="height: 13.8pt;" align="right" height="18">
</td> <td class="xl72">
</td> <td class="xl72">
</td> <td class="xl72">
</td> <td class="xl71">
</td> </tr> <tr style="height: 13.8pt;" height="18"> <td class="xl71" style="height: 13.8pt;" align="right" height="18">
</td> <td class="xl72">
</td> <td class="xl72">
</td> <td class="xl72">
</td> <td class="xl71">
</td> </tr> <tr style="height: 13.8pt;" height="18"> <td class="xl71" style="height: 13.8pt;" align="right" height="18">
</td> <td class="xl72">
</td> <td class="xl72">
</td> <td class="xl72">
</td> <td class="xl71">
</td> </tr> <tr style="height: 13.8pt;" height="18"> <td class="xl71" style="height: 13.8pt;" align="right" height="18">
</td> <td class="xl72">
</td> <td class="xl72">
</td> <td class="xl72">
</td> <td class="xl71">
</td> </tr> <tr style="height: 13.8pt;" height="18"> <td class="xl71" style="height: 13.8pt;" align="right" height="18">
</td> <td class="xl72">
</td> <td class="xl72">
</td> <td class="xl72">
</td> <td class="xl71">
</td> </tr> <tr style="height: 13.8pt;" height="18"> <td class="xl71" style="height: 13.8pt;" align="right" height="18">
</td> <td class="xl72">
</td> <td class="xl72">
</td> <td class="xl72">
</td> <td class="xl71">
</td> </tr> </tbody></table>