Im having trouble figuring out how to count unique values using three sets of criteria. for example:
[TABLE="width: 330"]
<tbody>[TR]
[TD="width: 110"]employee_id[/TD]
[TD="width: 110"]job_no[/TD]
[TD="width: 110"]union_id[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 330"]
<colgroup><col width="110" style="width:83pt"> <col width="110" style="width:83pt"> <col width="110" style="width:83pt"> </colgroup><tbody>[TR]
[TD="width: 110"]STE58[/TD]
[TD="width: 110"] 110080[/TD]
[TD="width: 110"]NYPLA[/TD]
[/TR]
[TR]
[TD]STE58[/TD]
[TD] 110080[/TD]
[TD]NYPLA[/TD]
[/TR]
[TR]
[TD]HAN56[/TD]
[TD] 110082[/TD]
[TD]NYPLA[/TD]
[/TR]
[TR]
[TD]STE58[/TD]
[TD] 110082[/TD]
[TD]NYPLA[/TD]
[/TR]
[TR]
[TD]JEF27[/TD]
[TD] 110082[/TD]
[TD]LITA[/TD]
[/TR]
[TR]
[TD]HAN56[/TD]
[TD] 110082[/TD]
[TD]NYPLA[/TD]
[/TR]
[TR]
[TD]HAN56[/TD]
[TD] 110082[/TD]
[TD]NYPLA[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 330"]
<tbody>[TR]
[TD="width: 110"]BRI80[/TD]
[TD="width: 110"] 110082[/TD]
[TD="width: 110"]NYTA[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 330"]
<colgroup><col width="110" style="width:83pt"> <col width="110" style="width:83pt"> <col width="110" style="width:83pt"> </colgroup><tbody>[TR]
[TD="width: 110"]STE35[/TD]
[TD="width: 110"] 120260[/TD]
[TD="width: 110"]LICA[/TD]
[/TR]
[TR]
[TD]SCH72[/TD]
[TD] 120260[/TD]
[TD]LICA[/TD]
[/TR]
</tbody>[/TABLE]
All the above data is on sheet one and I want to display the results on sheet 2. I need to know how many unique row records there are for each job_no.
[TABLE="width: 377"]
<colgroup><col><col><col><col><col></colgroup><tbody>[TR]
[TD] Job_no[/TD]
[TD] NYPLA[/TD]
[TD] LITA[/TD]
[TD] NYTA [/TD]
[TD] LICA[/TD]
[/TR]
[TR]
[TD="align: right"]110080[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD="align: right"]110082[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD="align: right"]120260[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]1[/TD]
[/TR]
</tbody>[/TABLE]
I would like to have the table look like this when it is all done. Any help would be greatly appreciated.
[TABLE="width: 330"]
<tbody>[TR]
[TD="width: 110"]employee_id[/TD]
[TD="width: 110"]job_no[/TD]
[TD="width: 110"]union_id[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 330"]
<colgroup><col width="110" style="width:83pt"> <col width="110" style="width:83pt"> <col width="110" style="width:83pt"> </colgroup><tbody>[TR]
[TD="width: 110"]STE58[/TD]
[TD="width: 110"] 110080[/TD]
[TD="width: 110"]NYPLA[/TD]
[/TR]
[TR]
[TD]STE58[/TD]
[TD] 110080[/TD]
[TD]NYPLA[/TD]
[/TR]
[TR]
[TD]HAN56[/TD]
[TD] 110082[/TD]
[TD]NYPLA[/TD]
[/TR]
[TR]
[TD]STE58[/TD]
[TD] 110082[/TD]
[TD]NYPLA[/TD]
[/TR]
[TR]
[TD]JEF27[/TD]
[TD] 110082[/TD]
[TD]LITA[/TD]
[/TR]
[TR]
[TD]HAN56[/TD]
[TD] 110082[/TD]
[TD]NYPLA[/TD]
[/TR]
[TR]
[TD]HAN56[/TD]
[TD] 110082[/TD]
[TD]NYPLA[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 330"]
<tbody>[TR]
[TD="width: 110"]BRI80[/TD]
[TD="width: 110"] 110082[/TD]
[TD="width: 110"]NYTA[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 330"]
<colgroup><col width="110" style="width:83pt"> <col width="110" style="width:83pt"> <col width="110" style="width:83pt"> </colgroup><tbody>[TR]
[TD="width: 110"]STE35[/TD]
[TD="width: 110"] 120260[/TD]
[TD="width: 110"]LICA[/TD]
[/TR]
[TR]
[TD]SCH72[/TD]
[TD] 120260[/TD]
[TD]LICA[/TD]
[/TR]
</tbody>[/TABLE]
All the above data is on sheet one and I want to display the results on sheet 2. I need to know how many unique row records there are for each job_no.
[TABLE="width: 377"]
<colgroup><col><col><col><col><col></colgroup><tbody>[TR]
[TD] Job_no[/TD]
[TD] NYPLA[/TD]
[TD] LITA[/TD]
[TD] NYTA [/TD]
[TD] LICA[/TD]
[/TR]
[TR]
[TD="align: right"]110080[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD="align: right"]110082[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD="align: right"]120260[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]1[/TD]
[/TR]
</tbody>[/TABLE]
I would like to have the table look like this when it is all done. Any help would be greatly appreciated.