Hi all. I have searched the forum for a solution to this but it's not coming to me. I have two tables, one is a plan, and the other is a report. In the plan I have Work Orders, Team names and planned hours by week. In the report (references a pivot table elsewhere) I have a work order, and hours charged by team. In the pivot table, I can filter out certain teams, which will then leave that section of the table blank (Row 14 in his example).What I'd like to be able to do is pull the planned hours base on the what's on the report. If the report cell is blank, ignore it in the SUM of planned hours, else, include it. Here's my data:
<colgroup><col width="64" style="width: 48pt;"><colgroup><col width="80" style="width: 60pt; mso-width-source: userset; mso-width-alt: 2925;"><colgroup><col width="79" style="width: 59pt; mso-width-source: userset; mso-width-alt: 2889;"><colgroup><col width="68" style="width: 51pt; mso-width-source: userset; mso-width-alt: 2486;" span="2"><colgroup><col width="66" style="width: 50pt; mso-width-source: userset; mso-width-alt: 2413;"><tbody>
</tbody>
In cell C18, I have only one Team criteria:
SUMIFS(INDEX($D$4:$F$9,,MATCH(C$13,$D$3:$F$3,0)),$B$4:$B$9,$D$12,$C$4:$C$9,IF(C$14="","<>",$B$14))
In cell D18, I have two Team criteria, one of which is blank. If I populate the blank team data, the formula does not work:
SUMIFS(INDEX($D$4:$F$9,,MATCH(D$13,$D$3:$F$3,0)),$B$4:$B$9,$D$12,$C$4:$C$9,IF(D$14="","<>",$B$14),$C$4:$C$9,IF(D$15="","<>",$B$15))
And last, in cell E8, I tried having all tree Team criteria, and as expected, it doesn't work either:
SUMIFS(INDEX($D$4:$F$9,,MATCH(E$13,$D$3:$F$3,0)),$B$4:$B$9,$D$12,$C$4:$C$9,IF(E$14="","<>",$B$14),$C$4:$C$9,IF(E$15="","<>",$B$15),$C$4:$C$9,IF(E$16="","<>",$B$16))
Is this something really simple that I'm missing? Thanks in advance.
A1 | B1 | C1 | D1 | E1 | F1 |
A2 | Plan | ||||
A3 | Work Order | Team | 30-Sep-18 | 7-Oct-18 | 14-Oct-18 |
A4 | 123 | Team 1 | 5.00 | 8.00 | 9.00 |
A5 | 123 | Team 2 | 10.00 | 10.00 | 8.00 |
A6 | 123 | Team 3 | 5.00 | 8.00 | 10.00 |
A7 | 456 | Team 1 | 8.00 | 4.00 | 12.00 |
A8 | 456 | Team 2 | 12.00 | 10.00 | 6.00 |
A9 | 456 | Team 3 | 6.00 | 7.00 | 4.00 |
A10 | |||||
A11 | |||||
A12 | Report | Work Order | 123 | ||
A13 | Team | 30-Sep-18 | 7-Oct-18 | 14-Oct-18 | |
A14 | Team 1 | 8.00 | 5.00 | 8.00 | |
A15 | Team 2 | ||||
A16 | Team 3 | 7.00 | 7.00 | 9.00 | |
A17 | ACTUALS | 15.00 | 12.00 | 17.00 | |
A18 | PLAN | 5.00 | 8.00 | 0.00 | |
A19 | 1 | 2 | 3 |
<colgroup><col width="64" style="width: 48pt;"><colgroup><col width="80" style="width: 60pt; mso-width-source: userset; mso-width-alt: 2925;"><colgroup><col width="79" style="width: 59pt; mso-width-source: userset; mso-width-alt: 2889;"><colgroup><col width="68" style="width: 51pt; mso-width-source: userset; mso-width-alt: 2486;" span="2"><colgroup><col width="66" style="width: 50pt; mso-width-source: userset; mso-width-alt: 2413;"><tbody>
</tbody>
In cell C18, I have only one Team criteria:
SUMIFS(INDEX($D$4:$F$9,,MATCH(C$13,$D$3:$F$3,0)),$B$4:$B$9,$D$12,$C$4:$C$9,IF(C$14="","<>",$B$14))
In cell D18, I have two Team criteria, one of which is blank. If I populate the blank team data, the formula does not work:
SUMIFS(INDEX($D$4:$F$9,,MATCH(D$13,$D$3:$F$3,0)),$B$4:$B$9,$D$12,$C$4:$C$9,IF(D$14="","<>",$B$14),$C$4:$C$9,IF(D$15="","<>",$B$15))
And last, in cell E8, I tried having all tree Team criteria, and as expected, it doesn't work either:
SUMIFS(INDEX($D$4:$F$9,,MATCH(E$13,$D$3:$F$3,0)),$B$4:$B$9,$D$12,$C$4:$C$9,IF(E$14="","<>",$B$14),$C$4:$C$9,IF(E$15="","<>",$B$15),$C$4:$C$9,IF(E$16="","<>",$B$16))
Is this something really simple that I'm missing? Thanks in advance.