Hi,
I have been tinkering with a spread sheet in order to make it easier to navigate. The data is exported straight from our system and then dumped in (A1) the workbook.
The data layout is the same each month regarding the columns but the number of Rows differs each month.
The reason this is a problem is because I need to create a new column at the end of the data (N). N to be completed if there is a Value in Column A and I want the value to be the name from F16. So the name would be in N2:N5,N9 & N10.
This data is repeated for 2000 or so rows with different people, and the titles in A change, increase or decrease depending on whether the employee has a pension, is part of the union etc.
Help!
[TABLE="width: 1008"]
<tbody>[TR]
[TD][/TD]
[TD]A
[/TD]
[TD]B
[/TD]
[TD]C
[/TD]
[TD]D
[/TD]
[TD]E
[/TD]
[TD]F
[/TD]
[TD]G
[/TD]
[TD]H
[/TD]
[TD]I
[/TD]
[TD]J
[/TD]
[TD]K
[/TD]
[TD]L
[/TD]
[TD]M
[/TD]
[/TR]
[TR]
[TD="align: right"]1
[/TD]
[TD]Code
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Period
[/TD]
[TD]Rate
[/TD]
[TD][/TD]
[TD]Quantity
[/TD]
[TD][/TD]
[TD]Gross
[/TD]
[TD]Employer NIC
[/TD]
[TD]Total
[/TD]
[/TR]
[TR]
[TD="align: right"]2
[/TD]
[TD="colspan: 3"]ACTS - UNITE UNION
[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]2
[/TD]
[TD]xx
[/TD]
[TD][/TD]
[TD]xx
[/TD]
[TD][/TD]
[TD]xx
[/TD]
[TD]xx
[/TD]
[TD]xx
[/TD]
[/TR]
[TR]
[TD="align: right"]3
[/TD]
[TD="colspan: 2"]EE AVC xx%
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]2
[/TD]
[TD]xx
[/TD]
[TD][/TD]
[TD]xx
[/TD]
[TD][/TD]
[TD]xx
[/TD]
[TD]xx
[/TD]
[TD]xx
[/TD]
[/TR]
[TR]
[TD="align: right"]4
[/TD]
[TD="colspan: 2"]ERS AVC xx%
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]2
[/TD]
[TD]xx
[/TD]
[TD][/TD]
[TD]xx
[/TD]
[TD][/TD]
[TD]xx
[/TD]
[TD]xx
[/TD]
[TD]xx
[/TD]
[/TR]
[TR]
[TD="align: right"]5
[/TD]
[TD]PENSION
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]2
[/TD]
[TD]xx
[/TD]
[TD][/TD]
[TD]xx
[/TD]
[TD][/TD]
[TD]xx
[/TD]
[TD]xx
[/TD]
[TD]xx
[/TD]
[/TR]
[TR]
[TD="align: right"]6
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]7
[/TD]
[TD][/TD]
[TD="colspan: 2"]Sub Total 2 by
[/TD]
[TD][/TD]
[TD="colspan: 2"]Deductions
[/TD]
[TD][/TD]
[TD][/TD]
[TD]xx
[/TD]
[TD][/TD]
[TD]xx
[/TD]
[TD]xx
[/TD]
[TD]xx
[/TD]
[/TR]
[TR]
[TD="align: right"]8
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]9
[/TD]
[TD="colspan: 2"]BASIC PAY
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]2
[/TD]
[TD]xx
[/TD]
[TD][/TD]
[TD]xx
[/TD]
[TD][/TD]
[TD]xx
[/TD]
[TD]xx
[/TD]
[TD]xx
[/TD]
[/TR]
[TR]
[TD="align: right"]10
[/TD]
[TD="colspan: 2"]SAL SAC PENSION
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]2
[/TD]
[TD]xx
[/TD]
[TD][/TD]
[TD]xx
[/TD]
[TD][/TD]
[TD]xx
[/TD]
[TD]xx
[/TD]
[TD]xx
[/TD]
[/TR]
[TR]
[TD="align: right"]11
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]12
[/TD]
[TD][/TD]
[TD="colspan: 2"]Sub Total 2 by
[/TD]
[TD][/TD]
[TD]Earnings
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]xx
[/TD]
[TD][/TD]
[TD]xx
[/TD]
[TD]xx
[/TD]
[TD]xx
[/TD]
[/TR]
[TR]
[TD="align: right"]13
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]14
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]15
[/TD]
[TD="colspan: 2"]Sub Total 1 by
[/TD]
[TD][/TD]
[TD][/TD]
[TD="colspan: 2"]625540 D. Smith
[/TD]
[TD][/TD]
[TD][/TD]
[TD]xx
[/TD]
[TD][/TD]
[TD]xx
[/TD]
[TD]xx
[/TD]
[TD]xx
[/TD]
[/TR]
</tbody>[/TABLE]
I have been tinkering with a spread sheet in order to make it easier to navigate. The data is exported straight from our system and then dumped in (A1) the workbook.
The data layout is the same each month regarding the columns but the number of Rows differs each month.
The reason this is a problem is because I need to create a new column at the end of the data (N). N to be completed if there is a Value in Column A and I want the value to be the name from F16. So the name would be in N2:N5,N9 & N10.
This data is repeated for 2000 or so rows with different people, and the titles in A change, increase or decrease depending on whether the employee has a pension, is part of the union etc.
Help!
[TABLE="width: 1008"]
<tbody>[TR]
[TD][/TD]
[TD]A
[/TD]
[TD]B
[/TD]
[TD]C
[/TD]
[TD]D
[/TD]
[TD]E
[/TD]
[TD]F
[/TD]
[TD]G
[/TD]
[TD]H
[/TD]
[TD]I
[/TD]
[TD]J
[/TD]
[TD]K
[/TD]
[TD]L
[/TD]
[TD]M
[/TD]
[/TR]
[TR]
[TD="align: right"]1
[/TD]
[TD]Code
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Period
[/TD]
[TD]Rate
[/TD]
[TD][/TD]
[TD]Quantity
[/TD]
[TD][/TD]
[TD]Gross
[/TD]
[TD]Employer NIC
[/TD]
[TD]Total
[/TD]
[/TR]
[TR]
[TD="align: right"]2
[/TD]
[TD="colspan: 3"]ACTS - UNITE UNION
[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]2
[/TD]
[TD]xx
[/TD]
[TD][/TD]
[TD]xx
[/TD]
[TD][/TD]
[TD]xx
[/TD]
[TD]xx
[/TD]
[TD]xx
[/TD]
[/TR]
[TR]
[TD="align: right"]3
[/TD]
[TD="colspan: 2"]EE AVC xx%
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]2
[/TD]
[TD]xx
[/TD]
[TD][/TD]
[TD]xx
[/TD]
[TD][/TD]
[TD]xx
[/TD]
[TD]xx
[/TD]
[TD]xx
[/TD]
[/TR]
[TR]
[TD="align: right"]4
[/TD]
[TD="colspan: 2"]ERS AVC xx%
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]2
[/TD]
[TD]xx
[/TD]
[TD][/TD]
[TD]xx
[/TD]
[TD][/TD]
[TD]xx
[/TD]
[TD]xx
[/TD]
[TD]xx
[/TD]
[/TR]
[TR]
[TD="align: right"]5
[/TD]
[TD]PENSION
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]2
[/TD]
[TD]xx
[/TD]
[TD][/TD]
[TD]xx
[/TD]
[TD][/TD]
[TD]xx
[/TD]
[TD]xx
[/TD]
[TD]xx
[/TD]
[/TR]
[TR]
[TD="align: right"]6
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]7
[/TD]
[TD][/TD]
[TD="colspan: 2"]Sub Total 2 by
[/TD]
[TD][/TD]
[TD="colspan: 2"]Deductions
[/TD]
[TD][/TD]
[TD][/TD]
[TD]xx
[/TD]
[TD][/TD]
[TD]xx
[/TD]
[TD]xx
[/TD]
[TD]xx
[/TD]
[/TR]
[TR]
[TD="align: right"]8
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]9
[/TD]
[TD="colspan: 2"]BASIC PAY
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]2
[/TD]
[TD]xx
[/TD]
[TD][/TD]
[TD]xx
[/TD]
[TD][/TD]
[TD]xx
[/TD]
[TD]xx
[/TD]
[TD]xx
[/TD]
[/TR]
[TR]
[TD="align: right"]10
[/TD]
[TD="colspan: 2"]SAL SAC PENSION
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]2
[/TD]
[TD]xx
[/TD]
[TD][/TD]
[TD]xx
[/TD]
[TD][/TD]
[TD]xx
[/TD]
[TD]xx
[/TD]
[TD]xx
[/TD]
[/TR]
[TR]
[TD="align: right"]11
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]12
[/TD]
[TD][/TD]
[TD="colspan: 2"]Sub Total 2 by
[/TD]
[TD][/TD]
[TD]Earnings
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]xx
[/TD]
[TD][/TD]
[TD]xx
[/TD]
[TD]xx
[/TD]
[TD]xx
[/TD]
[/TR]
[TR]
[TD="align: right"]13
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]14
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]15
[/TD]
[TD="colspan: 2"]Sub Total 1 by
[/TD]
[TD][/TD]
[TD][/TD]
[TD="colspan: 2"]625540 D. Smith
[/TD]
[TD][/TD]
[TD][/TD]
[TD]xx
[/TD]
[TD][/TD]
[TD]xx
[/TD]
[TD]xx
[/TD]
[TD]xx
[/TD]
[/TR]
</tbody>[/TABLE]