Hi there, I think the below may solve it.

=IF(ISBLANK(BE1),AM1,Value wanted)