Enter some numbers in cells A1 an B1, then an expression in another cell, like A1+B1 then update either A1 or B1. The cell with expression should automatically update.
A1+B1