Hi Team,
Please refer to the attached file.
I have data in the format provided under the Data tab. I want to achieve the result as per "result" tab and eliminate all the rows that are not needed. I would like the logic to work dynamically as the data is frequently updated

Thanks