Hi,
I'm using Excel 2013 and maintaining a table which logs changes to one or more fields. The table below illustrates an example of bonus/salary/rating that could be adjusted during the project. The "O-" prefixed fields are a lookup to the original load-up data in another table. The values that I would expect to see generated by excel are in the "E-" prefixed fields. (NOTE: at this particular client I cannot use macros/plug-ins and would prefer avoiding vba)
[TABLE="width: 500"]
<tbody>[TR]
[TD]Row[/TD]
[TD]StaffNo[/TD]
[TD]O-Bonus[/TD]
[TD]O-Salary[/TD]
[TD]O-Rating[/TD]
[TD]Bonus[/TD]
[TD]Salary[/TD]
[TD]Rating[/TD]
[TD]DateChanged[/TD]
[TD]E-Bonus[/TD]
[TD]E-Salary[/TD]
[TD]E-Rating[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]123456[/TD]
[TD]1000[/TD]
[TD]2000[/TD]
[TD][/TD]
[TD][/TD]
[TD]21000[/TD]
[TD][/TD]
[TD]1/12/2018[/TD]
[TD]1000[/TD]
[TD]21000[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]123456[/TD]
[TD]1000[/TD]
[TD]2000[/TD]
[TD][/TD]
[TD]1250[/TD]
[TD][/TD]
[TD][/TD]
[TD]2/12/2018[/TD]
[TD]1250[/TD]
[TD]21000[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]123456[/TD]
[TD]1000[/TD]
[TD]2000[/TD]
[TD][/TD]
[TD]1500[/TD]
[TD][/TD]
[TD][/TD]
[TD]3/12/2018[/TD]
[TD]1500[/TD]
[TD]21000[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]123456[/TD]
[TD]1000[/TD]
[TD]2000[/TD]
[TD][/TD]
[TD][/TD]
[TD]25000[/TD]
[TD][/TD]
[TD]4/12/2018[/TD]
[TD]1500[/TD]
[TD]25000[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]123456[/TD]
[TD]1000[/TD]
[TD]2000[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]C3[/TD]
[TD]5/12/2018[/TD]
[TD]1500[/TD]
[TD]25000[/TD]
[TD]C3[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]123456[/TD]
[TD]1000[/TD]
[TD]2000[/TD]
[TD][/TD]
[TD]900[/TD]
[TD][/TD]
[TD][/TD]
[TD]6/12/2018[/TD]
[TD]900[/TD]
[TD]25000[/TD]
[TD]C3[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]123456[/TD]
[TD]1000[/TD]
[TD]2000[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]A2[/TD]
[TD]7/12/2018[/TD]
[TD]900[/TD]
[TD]25000[/TD]
[TD]A2[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]123456[/TD]
[TD]1000[/TD]
[TD]2000[/TD]
[TD][/TD]
[TD][/TD]
[TD]15000[/TD]
[TD][/TD]
[TD]8/12/2018[/TD]
[TD]900[/TD]
[TD]15000[/TD]
[TD]A2[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]123456[/TD]
[TD]1000[/TD]
[TD]2000[/TD]
[TD][/TD]
[TD]950[/TD]
[TD]19500[/TD]
[TD]B1[/TD]
[TD]9/12/2018[/TD]
[TD]950[/TD]
[TD]19500[/TD]
[TD]B1[/TD]
[/TR]
</tbody>[/TABLE]
As you can see, on different days I'll be instructed to change values for different fields. I'm struggling of thinking of a formula that would give the value I want to see in the "E-" fields generated in the above example, i.e. the latest adjusted figure that exists, otherwise it should use the value from the original load-up table. As you can see the values in the example above can go adjusted down as well as up. In essence I'm trying to avoid having to key in the values in all those three fields every time a new row is created. Thanks in advance.
I'm using Excel 2013 and maintaining a table which logs changes to one or more fields. The table below illustrates an example of bonus/salary/rating that could be adjusted during the project. The "O-" prefixed fields are a lookup to the original load-up data in another table. The values that I would expect to see generated by excel are in the "E-" prefixed fields. (NOTE: at this particular client I cannot use macros/plug-ins and would prefer avoiding vba)
[TABLE="width: 500"]
<tbody>[TR]
[TD]Row[/TD]
[TD]StaffNo[/TD]
[TD]O-Bonus[/TD]
[TD]O-Salary[/TD]
[TD]O-Rating[/TD]
[TD]Bonus[/TD]
[TD]Salary[/TD]
[TD]Rating[/TD]
[TD]DateChanged[/TD]
[TD]E-Bonus[/TD]
[TD]E-Salary[/TD]
[TD]E-Rating[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]123456[/TD]
[TD]1000[/TD]
[TD]2000[/TD]
[TD][/TD]
[TD][/TD]
[TD]21000[/TD]
[TD][/TD]
[TD]1/12/2018[/TD]
[TD]1000[/TD]
[TD]21000[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]123456[/TD]
[TD]1000[/TD]
[TD]2000[/TD]
[TD][/TD]
[TD]1250[/TD]
[TD][/TD]
[TD][/TD]
[TD]2/12/2018[/TD]
[TD]1250[/TD]
[TD]21000[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]123456[/TD]
[TD]1000[/TD]
[TD]2000[/TD]
[TD][/TD]
[TD]1500[/TD]
[TD][/TD]
[TD][/TD]
[TD]3/12/2018[/TD]
[TD]1500[/TD]
[TD]21000[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]123456[/TD]
[TD]1000[/TD]
[TD]2000[/TD]
[TD][/TD]
[TD][/TD]
[TD]25000[/TD]
[TD][/TD]
[TD]4/12/2018[/TD]
[TD]1500[/TD]
[TD]25000[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]123456[/TD]
[TD]1000[/TD]
[TD]2000[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]C3[/TD]
[TD]5/12/2018[/TD]
[TD]1500[/TD]
[TD]25000[/TD]
[TD]C3[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]123456[/TD]
[TD]1000[/TD]
[TD]2000[/TD]
[TD][/TD]
[TD]900[/TD]
[TD][/TD]
[TD][/TD]
[TD]6/12/2018[/TD]
[TD]900[/TD]
[TD]25000[/TD]
[TD]C3[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]123456[/TD]
[TD]1000[/TD]
[TD]2000[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]A2[/TD]
[TD]7/12/2018[/TD]
[TD]900[/TD]
[TD]25000[/TD]
[TD]A2[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]123456[/TD]
[TD]1000[/TD]
[TD]2000[/TD]
[TD][/TD]
[TD][/TD]
[TD]15000[/TD]
[TD][/TD]
[TD]8/12/2018[/TD]
[TD]900[/TD]
[TD]15000[/TD]
[TD]A2[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]123456[/TD]
[TD]1000[/TD]
[TD]2000[/TD]
[TD][/TD]
[TD]950[/TD]
[TD]19500[/TD]
[TD]B1[/TD]
[TD]9/12/2018[/TD]
[TD]950[/TD]
[TD]19500[/TD]
[TD]B1[/TD]
[/TR]
</tbody>[/TABLE]
As you can see, on different days I'll be instructed to change values for different fields. I'm struggling of thinking of a formula that would give the value I want to see in the "E-" fields generated in the above example, i.e. the latest adjusted figure that exists, otherwise it should use the value from the original load-up table. As you can see the values in the example above can go adjusted down as well as up. In essence I'm trying to avoid having to key in the values in all those three fields every time a new row is created. Thanks in advance.