Good day,

Use the following for Row#1 of your data

=IF(L1="",N1-A1,N1-L1)
Show your appreciation - Click the star icon if this post has been helpful