Hello all - I'm sure that I should know how to do this but can't for the life of me work out how! I have two tabs, one shows all employees (including their unique employee number) with a separate row showing each salary period eg
<tbody>
</tbody>
the second tab shows a list of allowances paid to staff and the date that they were paid - for each allowance, I need to look up the employee's salary at the time that the allowance was paid, eg
<tbody>
</tbody>
Help!
name | employee ref | salary | period start | period end |
smith | 12345678 | 20,000 | 01/04/2013 | 31/03/2014 |
smith | 12345678 | 25,000 | 01/04/2014 | 31/03/2015 |
jones | 23456789 | 27,500 | 17/03/2014 | 31/03/2015 |
<tbody>
</tbody>
the second tab shows a list of allowances paid to staff and the date that they were paid - for each allowance, I need to look up the employee's salary at the time that the allowance was paid, eg
name | employee ref | allowance type | date paid | salary |
smith | 12345678 | overtime x1.5 | 17/08/2013 | ? |
smith | 12345678 | overtime x1.5 | 27/09/2013 | ? |
smith | 12345678 | additional hours | 03/04/2014 | ? |
<tbody>
</tbody>
Help!