Dear Excel Experts, Please help me in setting up a formula to get desired results. Attached sample Excel file and query.