DigitalZugzwang
New Member
- Joined
- Jul 27, 2017
- Messages
- 20
In the table below is for a job tracking project. Job No, defines the job. Site, where the job happened. Act, the activity that took place. Comp, the component involved in the activity. Finally, costc, which are the cost centers for the implementation of the act+comp.
What I'm trying to do is:
1st - extract the site based on job number. I can do this with {=index([site],match(0,if($b$1=[job no],countif($g$1:g1,[site],""),0)) I do wonder if there is a better way than an array as the table gets larger?
2nd - How to extract and concatenate the act and related comp for each site of the job. This is the part I'm totally stuck on.
[TABLE="width: 530"]
<colgroup><col width="99" style="width:74pt" span="4"> <col width="134" style="width:100pt"> </colgroup><tbody>[TR]
[TD="width: 99, bgcolor: #5B9BD5"]site[/TD]
[TD="width: 99, bgcolor: #5B9BD5"]act[/TD]
[TD="width: 99, bgcolor: #5B9BD5"]comp[/TD]
[TD="width: 99, bgcolor: #5B9BD5"]costc[/TD]
[TD="width: 134, bgcolor: #5B9BD5"]Job No[/TD]
[/TR]
[TR]
[TD]Test[/TD]
[TD]Install[/TD]
[TD]Antenna[/TD]
[TD]Labor[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Test[/TD]
[TD="bgcolor: transparent"]install[/TD]
[TD="bgcolor: transparent"]Antenna[/TD]
[TD="bgcolor: transparent"]Materials[/TD]
[TD="bgcolor: transparent, align: right"]1[/TD]
[/TR]
[TR]
[TD]Test[/TD]
[TD]install[/TD]
[TD]Antenna[/TD]
[TD]Equipment[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Test[/TD]
[TD="bgcolor: transparent"]Decom[/TD]
[TD="bgcolor: transparent"]Lines[/TD]
[TD="bgcolor: transparent"]Labor[/TD]
[TD="bgcolor: transparent, align: right"]1[/TD]
[/TR]
[TR]
[TD]Test[/TD]
[TD]Decom[/TD]
[TD]Radio[/TD]
[TD]Labor[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]OMG[/TD]
[TD="bgcolor: transparent"]Maintain[/TD]
[TD="bgcolor: transparent"]Antenna[/TD]
[TD="bgcolor: transparent"]Labor[/TD]
[TD="bgcolor: transparent, align: right"]2[/TD]
[/TR]
[TR]
[TD]OMG[/TD]
[TD]Maintain[/TD]
[TD]Radio[/TD]
[TD]Labor[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]OMG[/TD]
[TD="bgcolor: transparent"]Maintain[/TD]
[TD="bgcolor: transparent"]Lines[/TD]
[TD="bgcolor: transparent"]Labor[/TD]
[TD="bgcolor: transparent, align: right"]2[/TD]
[/TR]
[TR]
[TD]Test[/TD]
[TD]Install[/TD]
[TD]Lines[/TD]
[TD]Labor[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Test[/TD]
[TD="bgcolor: transparent"]Install[/TD]
[TD="bgcolor: transparent"]Lines[/TD]
[TD="bgcolor: transparent"]Equipment[/TD]
[TD="bgcolor: transparent, align: right"]2[/TD]
[/TR]
[TR]
[TD]SmellsBad[/TD]
[TD]decom[/TD]
[TD]Antenna[/TD]
[TD]Labor[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]SmellsBad[/TD]
[TD="bgcolor: transparent"]decom[/TD]
[TD="bgcolor: transparent"]Antenna[/TD]
[TD="bgcolor: transparent"]Equipment[/TD]
[TD="bgcolor: transparent, align: right"]1[/TD]
[/TR]
[TR]
[TD]SmellsBad[/TD]
[TD]decom[/TD]
[TD]Antenna[/TD]
[TD]Materials[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Need1more[/TD]
[TD="bgcolor: transparent"]Maintain[/TD]
[TD="bgcolor: transparent"]Antenna[/TD]
[TD="bgcolor: transparent"]Labor[/TD]
[TD="bgcolor: transparent, align: right"]3[/TD]
[/TR]
[TR]
[TD]Need1more[/TD]
[TD]Maintain[/TD]
[TD]Radio[/TD]
[TD]Labor[/TD]
[TD="align: right"]3[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Need1more[/TD]
[TD="bgcolor: transparent"]Maintain[/TD]
[TD="bgcolor: transparent"]Radio[/TD]
[TD="bgcolor: transparent"]Equipment[/TD]
[TD="bgcolor: transparent, align: right"]3[/TD]
[/TR]
[TR]
[TD]ROLF[/TD]
[TD]Install[/TD]
[TD]Radio[/TD]
[TD]Labor[/TD]
[TD="align: right"]3[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]ROLF[/TD]
[TD="bgcolor: transparent"]Install[/TD]
[TD="bgcolor: transparent"]Radio[/TD]
[TD="bgcolor: transparent"]Equipment[/TD]
[TD="bgcolor: transparent, align: right"]3[/TD]
[/TR]
[TR]
[TD]ROLF[/TD]
[TD]Install[/TD]
[TD]Radio[/TD]
[TD]Materials[/TD]
[TD="align: right"]3[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]OMG[/TD]
[TD="bgcolor: transparent"]Install[/TD]
[TD="bgcolor: transparent"]Lines[/TD]
[TD="bgcolor: transparent"]Labor[/TD]
[TD="bgcolor: transparent, align: right"]4[/TD]
[/TR]
[TR]
[TD]OMG[/TD]
[TD]Install[/TD]
[TD]Lines[/TD]
[TD]Equipment[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]OMG[/TD]
[TD="bgcolor: transparent"]Install[/TD]
[TD="bgcolor: transparent"]Antenna[/TD]
[TD="bgcolor: transparent"]Labor[/TD]
[TD="bgcolor: transparent, align: right"]4[/TD]
[/TR]
</tbody>[/TABLE]
So doing this for Job No 1 should result in:
[TABLE="width: 247"]
<colgroup><col width="113" style="width:85pt"> <col width="134" style="width:100pt"> </colgroup><tbody>[TR]
[TD="width: 113, bgcolor: transparent"]Site[/TD]
[TD="width: 134, bgcolor: transparent"]Description[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Test[/TD]
[TD="bgcolor: transparent"]Install: Antenna; Decom: Lines, Radio[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]SmellsBad[/TD]
[TD="bgcolor: transparent"]Decom: Antenna[/TD]
[/TR]
</tbody>[/TABLE]
Thank you in advanced for any and all help, advice, and/or insight. This has been killing me for days!
What I'm trying to do is:
1st - extract the site based on job number. I can do this with {=index([site],match(0,if($b$1=[job no],countif($g$1:g1,[site],""),0)) I do wonder if there is a better way than an array as the table gets larger?
2nd - How to extract and concatenate the act and related comp for each site of the job. This is the part I'm totally stuck on.
[TABLE="width: 530"]
<colgroup><col width="99" style="width:74pt" span="4"> <col width="134" style="width:100pt"> </colgroup><tbody>[TR]
[TD="width: 99, bgcolor: #5B9BD5"]site[/TD]
[TD="width: 99, bgcolor: #5B9BD5"]act[/TD]
[TD="width: 99, bgcolor: #5B9BD5"]comp[/TD]
[TD="width: 99, bgcolor: #5B9BD5"]costc[/TD]
[TD="width: 134, bgcolor: #5B9BD5"]Job No[/TD]
[/TR]
[TR]
[TD]Test[/TD]
[TD]Install[/TD]
[TD]Antenna[/TD]
[TD]Labor[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Test[/TD]
[TD="bgcolor: transparent"]install[/TD]
[TD="bgcolor: transparent"]Antenna[/TD]
[TD="bgcolor: transparent"]Materials[/TD]
[TD="bgcolor: transparent, align: right"]1[/TD]
[/TR]
[TR]
[TD]Test[/TD]
[TD]install[/TD]
[TD]Antenna[/TD]
[TD]Equipment[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Test[/TD]
[TD="bgcolor: transparent"]Decom[/TD]
[TD="bgcolor: transparent"]Lines[/TD]
[TD="bgcolor: transparent"]Labor[/TD]
[TD="bgcolor: transparent, align: right"]1[/TD]
[/TR]
[TR]
[TD]Test[/TD]
[TD]Decom[/TD]
[TD]Radio[/TD]
[TD]Labor[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]OMG[/TD]
[TD="bgcolor: transparent"]Maintain[/TD]
[TD="bgcolor: transparent"]Antenna[/TD]
[TD="bgcolor: transparent"]Labor[/TD]
[TD="bgcolor: transparent, align: right"]2[/TD]
[/TR]
[TR]
[TD]OMG[/TD]
[TD]Maintain[/TD]
[TD]Radio[/TD]
[TD]Labor[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]OMG[/TD]
[TD="bgcolor: transparent"]Maintain[/TD]
[TD="bgcolor: transparent"]Lines[/TD]
[TD="bgcolor: transparent"]Labor[/TD]
[TD="bgcolor: transparent, align: right"]2[/TD]
[/TR]
[TR]
[TD]Test[/TD]
[TD]Install[/TD]
[TD]Lines[/TD]
[TD]Labor[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Test[/TD]
[TD="bgcolor: transparent"]Install[/TD]
[TD="bgcolor: transparent"]Lines[/TD]
[TD="bgcolor: transparent"]Equipment[/TD]
[TD="bgcolor: transparent, align: right"]2[/TD]
[/TR]
[TR]
[TD]SmellsBad[/TD]
[TD]decom[/TD]
[TD]Antenna[/TD]
[TD]Labor[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]SmellsBad[/TD]
[TD="bgcolor: transparent"]decom[/TD]
[TD="bgcolor: transparent"]Antenna[/TD]
[TD="bgcolor: transparent"]Equipment[/TD]
[TD="bgcolor: transparent, align: right"]1[/TD]
[/TR]
[TR]
[TD]SmellsBad[/TD]
[TD]decom[/TD]
[TD]Antenna[/TD]
[TD]Materials[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Need1more[/TD]
[TD="bgcolor: transparent"]Maintain[/TD]
[TD="bgcolor: transparent"]Antenna[/TD]
[TD="bgcolor: transparent"]Labor[/TD]
[TD="bgcolor: transparent, align: right"]3[/TD]
[/TR]
[TR]
[TD]Need1more[/TD]
[TD]Maintain[/TD]
[TD]Radio[/TD]
[TD]Labor[/TD]
[TD="align: right"]3[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Need1more[/TD]
[TD="bgcolor: transparent"]Maintain[/TD]
[TD="bgcolor: transparent"]Radio[/TD]
[TD="bgcolor: transparent"]Equipment[/TD]
[TD="bgcolor: transparent, align: right"]3[/TD]
[/TR]
[TR]
[TD]ROLF[/TD]
[TD]Install[/TD]
[TD]Radio[/TD]
[TD]Labor[/TD]
[TD="align: right"]3[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]ROLF[/TD]
[TD="bgcolor: transparent"]Install[/TD]
[TD="bgcolor: transparent"]Radio[/TD]
[TD="bgcolor: transparent"]Equipment[/TD]
[TD="bgcolor: transparent, align: right"]3[/TD]
[/TR]
[TR]
[TD]ROLF[/TD]
[TD]Install[/TD]
[TD]Radio[/TD]
[TD]Materials[/TD]
[TD="align: right"]3[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]OMG[/TD]
[TD="bgcolor: transparent"]Install[/TD]
[TD="bgcolor: transparent"]Lines[/TD]
[TD="bgcolor: transparent"]Labor[/TD]
[TD="bgcolor: transparent, align: right"]4[/TD]
[/TR]
[TR]
[TD]OMG[/TD]
[TD]Install[/TD]
[TD]Lines[/TD]
[TD]Equipment[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]OMG[/TD]
[TD="bgcolor: transparent"]Install[/TD]
[TD="bgcolor: transparent"]Antenna[/TD]
[TD="bgcolor: transparent"]Labor[/TD]
[TD="bgcolor: transparent, align: right"]4[/TD]
[/TR]
</tbody>[/TABLE]
So doing this for Job No 1 should result in:
[TABLE="width: 247"]
<colgroup><col width="113" style="width:85pt"> <col width="134" style="width:100pt"> </colgroup><tbody>[TR]
[TD="width: 113, bgcolor: transparent"]Site[/TD]
[TD="width: 134, bgcolor: transparent"]Description[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Test[/TD]
[TD="bgcolor: transparent"]Install: Antenna; Decom: Lines, Radio[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]SmellsBad[/TD]
[TD="bgcolor: transparent"]Decom: Antenna[/TD]
[/TR]
</tbody>[/TABLE]
Thank you in advanced for any and all help, advice, and/or insight. This has been killing me for days!