I have certain values and would like to write a formula which gives the desired result based on values. Please see attached excel sheet. Would really appreciate any assistance.