John Luther
New Member
- Joined
- May 5, 2014
- Messages
- 28
Hi,
I am trying to solve a problem using sumproduct but can't quite figure it out:
I have a table (illustrated below) in which I'm trying to sum the total cost (column D) when the status (column C) is equal to or greater than 6 for any particular customer (column B) on a work order (column A). So for this data set, I do not want a sum that includes row 2 for example, even though it meets all the criteria, because the same customer on the same work order in the next row, has a status of 4. I only want to sum the cost of the "complete" orders, when every row for a customer/work order is status 6 or 7. I can do this with a helper column but I want to avoid that if possible. I hope I've been able to communicate my problem effectively. I'd appreciate any help I can get.
<colgroup><col style="mso-width-source:userset;mso-width-alt:768;width:16pt" width="21"> <col style="width:65pt" width="86" span="3"> <col style="width:65pt" width="86"> </colgroup><tbody>
</tbody>
Thanks,
John
I am trying to solve a problem using sumproduct but can't quite figure it out:
I have a table (illustrated below) in which I'm trying to sum the total cost (column D) when the status (column C) is equal to or greater than 6 for any particular customer (column B) on a work order (column A). So for this data set, I do not want a sum that includes row 2 for example, even though it meets all the criteria, because the same customer on the same work order in the next row, has a status of 4. I only want to sum the cost of the "complete" orders, when every row for a customer/work order is status 6 or 7. I can do this with a helper column but I want to avoid that if possible. I hope I've been able to communicate my problem effectively. I'd appreciate any help I can get.
A | B | C | D | |
1 | WO | CUSTOMER | STATUS | COST |
2 | 10/18/17 | ATLRAL | 6 | $395.00 |
3 | 10/18/17 | ATLRAL | 4 | $222.00 |
4 | 10/18/17 | BILSYL | 4 | $159.00 |
5 | 10/18/17 | DIATEM | 6 | $3,000.00 |
6 | 10/18/17 | DIATEM | 6 | $2,000.00 |
7 | 10/18/17 | ROBTAM | 5 | $223.00 |
8 | 10/18/17 | VALSAL | 6 | $50.00 |
9 | 10/18/17 | BILHOU | 5 | $1,852.00 |
10 | 10/18/17 | BILHOU | 6 | $2,310.00 |
11 | 10/25/17 | DAVSTO | 7 | $1,400.00 |
12 | 10/25/17 | DIATEM | 4 | $2,796.00 |
13 | 10/25/17 | FURJAM | 7 | $2,142.00 |
14 | 10/25/17 | FURJAM | 7 | $499.00 |
15 | 10/25/17 | FURJAM | 7 | $595.00 |
16 | 10/25/17 | FURJAM | 7 | $838.00 |
SUM OF COMPLETED ORDERS= | $10,524.00 |
<colgroup><col style="mso-width-source:userset;mso-width-alt:768;width:16pt" width="21"> <col style="width:65pt" width="86" span="3"> <col style="width:65pt" width="86"> </colgroup><tbody>
</tbody>
Thanks,
John