Use conditional logic to find the missing values dynamically (A, Z, B1, or B2). Rearrange the formula accordingly.
The formula must adapt based on which variable is null.
Implement this by checking each variable's null status and calculating it using the known values.
For example,