Not sure I get it.
Please let us know the expected result in the first few rows.