Hello,
I need to extract a summary from a large data set (I have mentioned an example).
The summary should add up the hours based on location, date and service. Some of the services are to be combined, in the example, you will notice that the hours for Domestic RRD and CTL RRD are added together for the same location and date.
Any help would be appreciated!
Thank you!
[TABLE="width: 640"]
<tbody>[TR]
[TD]Location[/TD]
[TD]Date[/TD]
[TD]Service[/TD]
[TD]Hours[/TD]
[/TR]
[TR]
[TD]TYC[/TD]
[TD]12/1/2017[/TD]
[TD]Domestic RRD [/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]TYC[/TD]
[TD]12/1/2017[/TD]
[TD]INTL RRD[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]TYC[/TD]
[TD]12/2/2017[/TD]
[TD]Domestic RRD [/TD]
[TD]2.5[/TD]
[/TR]
[TR]
[TD]TYC[/TD]
[TD]12/2/2017[/TD]
[TD]CTL RRD[/TD]
[TD]0.75[/TD]
[/TR]
[TR]
[TD]CAS[/TD]
[TD]12/1/2017[/TD]
[TD]Domestic RRD [/TD]
[TD]3.5[/TD]
[/TR]
[TR]
[TD]CAS[/TD]
[TD]12/2/2017[/TD]
[TD]INTL RRD[/TD]
[TD]9.5[/TD]
[/TR]
[TR]
[TD]CAS[/TD]
[TD]12/2/2017[/TD]
[TD]Domestic RRD [/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]CAS[/TD]
[TD]12/2/2017[/TD]
[TD]CTL RRD[/TD]
[TD]1.25[/TD]
[/TR]
</tbody><colgroup><col><col><col><col></colgroup>[/TABLE]
[TABLE="width: 640"]
<tbody>[TR]
[TD]Output:[/TD]
[TD="colspan: 3"]Should be on next sheet[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Location[/TD]
[TD]Date[/TD]
[TD]Service[/TD]
[TD]Hours[/TD]
[/TR]
[TR]
[TD]TYC[/TD]
[TD]12/1/2017[/TD]
[TD]Domestic [/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]TYC[/TD]
[TD]12/2/2017[/TD]
[TD]Domestic [/TD]
[TD]3.25[/TD]
[/TR]
[TR]
[TD]TYC[/TD]
[TD]12/1/2017[/TD]
[TD]INTL[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]CAS[/TD]
[TD]12/1/2017[/TD]
[TD]Domestic [/TD]
[TD]3.5[/TD]
[/TR]
[TR]
[TD]CAS[/TD]
[TD]12/2/2017[/TD]
[TD]INTL[/TD]
[TD]9.5[/TD]
[/TR]
[TR]
[TD]CAS[/TD]
[TD]12/2/2017[/TD]
[TD]Domestic [/TD]
[TD]2.25[/TD]
[/TR]
</tbody><colgroup><col><col><col><col></colgroup>[/TABLE]
I need to extract a summary from a large data set (I have mentioned an example).
The summary should add up the hours based on location, date and service. Some of the services are to be combined, in the example, you will notice that the hours for Domestic RRD and CTL RRD are added together for the same location and date.
Any help would be appreciated!
Thank you!
[TABLE="width: 640"]
<tbody>[TR]
[TD]Location[/TD]
[TD]Date[/TD]
[TD]Service[/TD]
[TD]Hours[/TD]
[/TR]
[TR]
[TD]TYC[/TD]
[TD]12/1/2017[/TD]
[TD]Domestic RRD [/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]TYC[/TD]
[TD]12/1/2017[/TD]
[TD]INTL RRD[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]TYC[/TD]
[TD]12/2/2017[/TD]
[TD]Domestic RRD [/TD]
[TD]2.5[/TD]
[/TR]
[TR]
[TD]TYC[/TD]
[TD]12/2/2017[/TD]
[TD]CTL RRD[/TD]
[TD]0.75[/TD]
[/TR]
[TR]
[TD]CAS[/TD]
[TD]12/1/2017[/TD]
[TD]Domestic RRD [/TD]
[TD]3.5[/TD]
[/TR]
[TR]
[TD]CAS[/TD]
[TD]12/2/2017[/TD]
[TD]INTL RRD[/TD]
[TD]9.5[/TD]
[/TR]
[TR]
[TD]CAS[/TD]
[TD]12/2/2017[/TD]
[TD]Domestic RRD [/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]CAS[/TD]
[TD]12/2/2017[/TD]
[TD]CTL RRD[/TD]
[TD]1.25[/TD]
[/TR]
</tbody><colgroup><col><col><col><col></colgroup>[/TABLE]
[TABLE="width: 640"]
<tbody>[TR]
[TD]Output:[/TD]
[TD="colspan: 3"]Should be on next sheet[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Location[/TD]
[TD]Date[/TD]
[TD]Service[/TD]
[TD]Hours[/TD]
[/TR]
[TR]
[TD]TYC[/TD]
[TD]12/1/2017[/TD]
[TD]Domestic [/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]TYC[/TD]
[TD]12/2/2017[/TD]
[TD]Domestic [/TD]
[TD]3.25[/TD]
[/TR]
[TR]
[TD]TYC[/TD]
[TD]12/1/2017[/TD]
[TD]INTL[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]CAS[/TD]
[TD]12/1/2017[/TD]
[TD]Domestic [/TD]
[TD]3.5[/TD]
[/TR]
[TR]
[TD]CAS[/TD]
[TD]12/2/2017[/TD]
[TD]INTL[/TD]
[TD]9.5[/TD]
[/TR]
[TR]
[TD]CAS[/TD]
[TD]12/2/2017[/TD]
[TD]Domestic [/TD]
[TD]2.25[/TD]
[/TR]
</tbody><colgroup><col><col><col><col></colgroup>[/TABLE]