Hi All,
I'm a little stumped on how to format some data coming out of an accounting report. The report contains a column of social security numbers and separate columns for a number of benefits for which each employee may have deductions.
I would like format this data such that for each nonzero amount in any of the benefit columns I create a separate row including the benefit name, ssn, and benefit deduction amount.
Can you point me in the right direction?
Thanks!
-jay
Unknown
[TABLE="class: head"]
<tbody>[TR="bgcolor: #888888"]
[TH]Row\Col[/TH]
[TH]
[TH]
[TH]
[TH]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
[TD="bgcolor: #D9D9D9"]Social[/TD]
[TD="bgcolor: #D9D9D9"]Benefit 1[/TD]
[TD="bgcolor: #D9D9D9"]Benefit 2[/TD]
[TD="bgcolor: #D9D9D9"]Benefit 3[/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
[TD]111-11-1111[/TD]
[TD]
[TD]
[TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
[TD]222-22-2222[/TD]
[TD]
[TD]
[TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
[TD]333-33-3333[/TD]
[TD]
[TD]
[TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
[TD]444-44-4444[/TD]
[TD]
[TD]
[TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
[TD]555-55-5555[/TD]
[TD]
[TD]
[TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: grid"]
<tbody>[TR]
[TD]Sheet: Sheet1[/TD]
[/TR]
</tbody>[/TABLE]
Unknown
[TABLE="class: head"]
<tbody>[TR="bgcolor: #888888"]
[TH]Row\Col[/TH]
[TH]
[TH]
[TH]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
[TD]Benefit 1[/TD]
[TD]111-11-1111[/TD]
[TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
[TD]Benefit 1[/TD]
[TD]333-33-3333[/TD]
[TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
[TD]Benefit 2[/TD]
[TD]333-33-3333[/TD]
[TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
[TD]Benefit 3[/TD]
[TD]333-33-3333[/TD]
[TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
[TD]Benefit 1[/TD]
[TD]444-44-4444[/TD]
[TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
[TD]Benefit 2[/TD]
[TD]444-44-4444[/TD]
[TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
[TD]Benefit 1[/TD]
[TD]555-55-5555[/TD]
[TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
[TD]Benefit 2[/TD]
[TD]555-55-5555[/TD]
[TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
[TD]Benefit 3[/TD]
[TD]555-55-5555[/TD]
[TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: grid"]
<tbody>[TR]
[TD]Sheet: Sheet2[/TD]
[/TR]
</tbody>[/TABLE]
I'm a little stumped on how to format some data coming out of an accounting report. The report contains a column of social security numbers and separate columns for a number of benefits for which each employee may have deductions.
I would like format this data such that for each nonzero amount in any of the benefit columns I create a separate row including the benefit name, ssn, and benefit deduction amount.
Can you point me in the right direction?
Thanks!
-jay
Unknown
[TABLE="class: head"]
<tbody>[TR="bgcolor: #888888"]
[TH]Row\Col[/TH]
[TH]
A
[/TH][TH]
B
[/TH][TH]
C
[/TH][TH]
D
[/TH][/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
1
[/TD][TD="bgcolor: #D9D9D9"]Social[/TD]
[TD="bgcolor: #D9D9D9"]Benefit 1[/TD]
[TD="bgcolor: #D9D9D9"]Benefit 2[/TD]
[TD="bgcolor: #D9D9D9"]Benefit 3[/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
2
[/TD][TD]111-11-1111[/TD]
[TD]
270.84
[/TD][TD]
0
[/TD][TD]
0
[/TD][/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
3
[/TD][TD]222-22-2222[/TD]
[TD]
0
[/TD][TD]
0
[/TD][TD]
0
[/TD][/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
4
[/TD][TD]333-33-3333[/TD]
[TD]
37.5
[/TD][TD]
1
[/TD][TD]
22.75
[/TD][/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
5
[/TD][TD]444-44-4444[/TD]
[TD]
20.83
[/TD][TD]
1
[/TD][TD]
0
[/TD][/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
6
[/TD][TD]555-55-5555[/TD]
[TD]
62.5
[/TD][TD]
1
[/TD][TD]
39.15
[/TD][/TR]
</tbody>[/TABLE]
[TABLE="class: grid"]
<tbody>[TR]
[TD]Sheet: Sheet1[/TD]
[/TR]
</tbody>[/TABLE]
Unknown
[TABLE="class: head"]
<tbody>[TR="bgcolor: #888888"]
[TH]Row\Col[/TH]
[TH]
A
[/TH][TH]
B
[/TH][TH]
C
[/TH][/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
1
[/TD][TD]Benefit 1[/TD]
[TD]111-11-1111[/TD]
[TD]
270.84
[/TD][/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
2
[/TD][TD]Benefit 1[/TD]
[TD]333-33-3333[/TD]
[TD]
37.5
[/TD][/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
3
[/TD][TD]Benefit 2[/TD]
[TD]333-33-3333[/TD]
[TD]
1
[/TD][/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
4
[/TD][TD]Benefit 3[/TD]
[TD]333-33-3333[/TD]
[TD]
22.75
[/TD][/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
5
[/TD][TD]Benefit 1[/TD]
[TD]444-44-4444[/TD]
[TD]
20.83
[/TD][/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
6
[/TD][TD]Benefit 2[/TD]
[TD]444-44-4444[/TD]
[TD]
1
[/TD][/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
7
[/TD][TD]Benefit 1[/TD]
[TD]555-55-5555[/TD]
[TD]
62.5
[/TD][/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
8
[/TD][TD]Benefit 2[/TD]
[TD]555-55-5555[/TD]
[TD]
1
[/TD][/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
9
[/TD][TD]Benefit 3[/TD]
[TD]555-55-5555[/TD]
[TD]
39.15
[/TD][/TR]
</tbody>[/TABLE]
[TABLE="class: grid"]
<tbody>[TR]
[TD]Sheet: Sheet2[/TD]
[/TR]
</tbody>[/TABLE]