I’m trying to find a way of dynamically select a column in a table from the value in an another table. In table tb-StaffSalary I want to get the value for annual salary that matches the level and step of each person in that table (by rows). The values are stored in a table that looks like a matrix, Level in one column, then each step (1 to 10) in different columns. I’m not sure this is the most efficient data scheme though and I am open to solutions to make this more efficient. Link to the test document below.
Many thanks in advance for your insights and help.