How would I script to allow value to be entered in N only if corresponding M has a value, otherwise N would return text, “need M”. This text would appear only if I had tried to enter a value in N without a M value, otherwise N is blank.
M3, 4, 5 have values, therefore N3, 4, 5 would allow entry of values 10, 20, 30. But if I try to enter a value [40] in N6, it would not allow any value but return a text since M6 has no value/entry. If I enter value in M6, then value is allowed in N6.
N7 is blank because no entry was attempted. If M3 is deleted, then N3 returns text.
Solution must not allow this function to be overwritten when changing or adding values to M & N
Attached sample