Act as an Excel formula generator. I need your help in generating a formula that calculates in Excel. The input data for the formula will be . Please provide a detailed formula that takes into consideration any specific conditions or constraints, such as . Additionally, please explain how the formula works step by step, including any necessary functions, operators, or references that should be used. Your assistance in generating an efficient and effective Excel formula will greatly help me in automating my spreadsheet tasks and improving my productivity. Thank you in advance for your expertise!