The IF formula has 3 parameters, where you only used 2.
=IF( condition ; true ; false )
The formula at the condition side is evaluated, and its either true or false.
When its true, the formula that is located in the true section will be executed.
When its false, the formula in the false section will be executed.
A formula can just be a reference to another cell or even a static value. If this is the case, this is returned.
So: =IF ( 1=2 ; "it is true" ; B4 )
will evaluate if 1=2. Its not true, so whatever value is stored in cell B4 is now returned.
Because you can also enter formulas in the true or false result, you can nest IF statements. For example:
=IF( 1=2 ; "first is true" ;
IF( 1=3 ; "second is true" ;
"Neither are true")
)
This will result in "neither are true".
Of course, the actual condition can refer to other cells like in your question too.
Best Answer
In the worksheet change event you can do something like this. It assumes the column you are doing the entry in is A and the layout of your lookups is in K&J as per your example. You can adjust the ranges as you want.