Hello experts,
I have the following the dataset.
<colgroup><col width="111" style="width: 83pt;"><col width="99" style="width: 74pt;"><col width="91" style="width: 68pt;"><col width="103" style="width: 77pt;"><col width="88" style="width: 66pt;"></colgroup><tbody>
</tbody>
And FormR has helped me achieve the following result with the given code.
Result :
<colgroup><col width="103" style="width: 77pt;"></colgroup><tbody>
</tbody>
Code :
=INDEX($A$2:$A$99,AGGREGATE(15,6,(ROW($A$2:$A$99)-ROW($A$2)+1)/((MATCH($A$2:$A$99,$A$2:$A$99,0)=ROW($A$2:$A$99)-ROW($A$2)+1)*($D$2:$D$99="P")),ROWS(E$1:E1)))
Result :
<colgroup><col width="135" style="width: 101pt;"></colgroup><tbody>
</tbody>
Code :
=INDEX($A$2:$A$99,AGGREGATE(15,6,(ROW($A$2:$A$99)-ROW($A$2)+1)/((MATCH($A$2:$A$99,$A$2:$A$99,0)=ROW($A$2:$A$99)-ROW($A$2)+1)*($D$2:$D$99="N")),ROWS(F$1:F1)))
This works brilliantly however I have a new criteria requirement. I need to separate the non production table into further 2 categories like below.
Desired result :
<colgroup><col width="135" style="width: 101pt;"><col width="87" style="width: 65pt;"><col width="112" style="width: 84pt;"></colgroup><tbody>
</tbody>
Breaks are limited to Meal Break, Comfort Break and Sick Leave. Non production codes can vary and is not limited to a list rather it will be marked with a "N" in Column D in the dataset.
Any help will be hugely appreciated.
Thank you.
I have the following the dataset.
Queue | Start Time | End Time | Production | Volumes |
Queue 1 | 19:00:00 | 20:00:00 | P | 2 |
Comfort Break | 20:00:00 | 20:10:00 | N | - |
Queue 2 | 20:10:00 | 21:30:00 | P | 3 |
Team Meeting | 21:30:00 | 22:00:00 | N | - |
Queue 1 | 22:00:00 | 22:15:00 | P | 1 |
Queue 3 | 22:15:00 | 23:30:00 | P | 5 |
Staff Reviews | 23:30:00 | 0:10:00 | N | - |
Queue 4 | 0:10:00 | 0:40:00 | P | 2 |
Meal Break | 0:40:00 | 1:30:00 | N | - |
Queue 2 | 1:30:00 | 2:00:00 | P | 1 |
<colgroup><col width="111" style="width: 83pt;"><col width="99" style="width: 74pt;"><col width="91" style="width: 68pt;"><col width="103" style="width: 77pt;"><col width="88" style="width: 66pt;"></colgroup><tbody>
</tbody>
And FormR has helped me achieve the following result with the given code.
Result :
Production |
Queue 1 |
Queue 2 |
Queue 3 |
Queue 4 |
<colgroup><col width="103" style="width: 77pt;"></colgroup><tbody>
</tbody>
Code :
=INDEX($A$2:$A$99,AGGREGATE(15,6,(ROW($A$2:$A$99)-ROW($A$2)+1)/((MATCH($A$2:$A$99,$A$2:$A$99,0)=ROW($A$2:$A$99)-ROW($A$2)+1)*($D$2:$D$99="P")),ROWS(E$1:E1)))
Result :
Non Production |
Comfort Break |
Team Meeting |
Staff Reviews |
Meal Break |
<colgroup><col width="135" style="width: 101pt;"></colgroup><tbody>
</tbody>
Code :
=INDEX($A$2:$A$99,AGGREGATE(15,6,(ROW($A$2:$A$99)-ROW($A$2)+1)/((MATCH($A$2:$A$99,$A$2:$A$99,0)=ROW($A$2:$A$99)-ROW($A$2)+1)*($D$2:$D$99="N")),ROWS(F$1:F1)))
This works brilliantly however I have a new criteria requirement. I need to separate the non production table into further 2 categories like below.
Desired result :
Non Production | Breaks | |
Team Meeting | Meal break | |
Staff Reviews | Comfort Break |
<colgroup><col width="135" style="width: 101pt;"><col width="87" style="width: 65pt;"><col width="112" style="width: 84pt;"></colgroup><tbody>
</tbody>
Breaks are limited to Meal Break, Comfort Break and Sick Leave. Non production codes can vary and is not limited to a list rather it will be marked with a "N" in Column D in the dataset.
Any help will be hugely appreciated.
Thank you.